System & Network Admin

System & Network Admin

2075 bookmarks
Custom sorting
Linux: Hide Your Shell Passwords with sshpass
Linux: Hide Your Shell Passwords with sshpass
Hard-coding is never the answer. Instead, use sshpass when you need to put a password in your Bash script.
·thenewstack.io·
Linux: Hide Your Shell Passwords with sshpass
A Cheat Sheet to Database Access Control: PostgreSQL
A Cheat Sheet to Database Access Control: PostgreSQL
Configuring security in Postgres is often a highly manual task, but automation helps simplify and standardize managing access permissions.
·thenewstack.io·
A Cheat Sheet to Database Access Control: PostgreSQL
How to Learn Nix, Part 49: nix-direnv is a huge quality of life improvement
How to Learn Nix, Part 49: nix-direnv is a huge quality of life improvement
The reason I discovered an ancient blog post the other day was that I had something new to say about Nix for the first time in over two years. The thing I want to say is this: nix-direnv is great. It fixes roughly every problem that I’ve had with nix-shell, and does so in a much nicer way than my previous ad-hoc solutions.
·ianthehenry.com·
How to Learn Nix, Part 49: nix-direnv is a huge quality of life improvement
A Practical Guide to GNU sed With Examples
A Practical Guide to GNU sed With Examples
The CLI sed is often misunderstood. Yet, it can be very useful to edit automatically a bunch of files directly in the shell or in a script.
·thevaluable.dev·
A Practical Guide to GNU sed With Examples
Testcontainers
Testcontainers
Testcontainers is an opensource framework for providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
·testcontainers.com·
Testcontainers
How to change the Swappiness of your Linux system
How to change the Swappiness of your Linux system
Swappiness is the kernel parameter that defines how much (and how often) your Linux kernel will copy RAM contents to swap. This parameters default va...
·howtoforge.com·
How to change the Swappiness of your Linux system
How to use sys.argv in Python - GeeksforGeeks
How to use sys.argv in Python - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
·geeksforgeeks.org·
How to use sys.argv in Python - GeeksforGeeks
How to Create a Directory in Python - AskPython
How to Create a Directory in Python - AskPython
In this tutorial, we will see how to do precisely that. We will learn several ways to create a directory in Python.
·askpython.com·
How to Create a Directory in Python - AskPython
Bandwidth Measurement using netcat on Linux
Bandwidth Measurement using netcat on Linux
There are various implementations. I am using nmap-ncat on rockOS 8 on both hosts. Netcat's using TCP by default and this test is not limited by disk I/O from what I understood. That said, it is not
·ittavern.com·
Bandwidth Measurement using netcat on Linux
PSSH - Run Commands on Multiple Remote Linux Systems
PSSH - Run Commands on Multiple Remote Linux Systems
PSSH is a small Python-based program, which allows you to execute commands on multiple Linux remote servers in parallel at the same time using the single shell.
·tecmint.com·
PSSH - Run Commands on Multiple Remote Linux Systems
Clone a Git repository into a specific folder | Techie Delight
Clone a Git repository into a specific folder | Techie Delight
This post will discuss how to clone a Git repository into a specific folder... The standard approach to clone is repository is using the git-clone command.
·techiedelight.com·
Clone a Git repository into a specific folder | Techie Delight
Getting started with rsync - Comprehensive Guide
Getting started with rsync - Comprehensive Guide
rsync is a CLI tool that covers various use cases. Transfering data, creating backups or archives, mirroring data sets, integrity checks, and many more. Reference for this article: rsync version 3.2.
·ittavern.com·
Getting started with rsync - Comprehensive Guide
Daemonize: running a Python script as a daemon - Ronan Lopes
Daemonize: running a Python script as a daemon - Ronan Lopes
A daemon is a program that runs in background in your operational system. They’re usually processes that runs for an undefined amount of time executing tasks that don’t depend on the user. On a UNIX system, you may have some examples as syslogd (logging system) and sshd (handles remote connections by SSH protocol) – you can notice that both of them end with letter “d”, indicating they run as a daemon. In a previous post I showed how to implement a Bot for collecting daily points on Gokano with Mechanize and suggested as a future work to daemonize that algorithm. In that kind of application, it’s not practical to keep the console open while the script runs, once you usually want to keep it running indefinitely. You could also want to run that script on a remote server (like an Amzon EC2 machine, for example) through SSH. Once you daemonize it, you can run it and close the connection without killing the process. In python, there are many libraries to daemonize your code. In my tests, I personally liked Daemonize a little bit more. With a few lines of code you can configure your script to run on background. You can install Daemonize through …
·ronanlopes.me·
Daemonize: running a Python script as a daemon - Ronan Lopes
Working With Files in Python – Real Python
Working With Files in Python – Real Python
In this tutorial, you'll learn how you can work with files in Python by using built-in modules to perform practical tasks that involve groups of files, like renaming them, moving them around, archiving them, and getting their metadata.
·realpython.com·
Working With Files in Python – Real Python