https://serverfault.com/questions/617398/is-there-a-way-to-see-the-execution-tree-of-systemd
On NixOS:
> systemctl get-default
multi-user.target
https://serverfault.com/questions/617398/is-there-a-way-to-see-the-execution-tree-of-systemd
On NixOS:
> systemctl get-default
multi-user.target
The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.
However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on
#!/usr/bin/env bash | |
set -o pipefail | |
slow_compute_hash() { | |
find "$1" -type f -exec md5sum {} \; | sort -k 2 | md5sum | |
} | |
fast_compute_hash() { | |
find "$1" -type f -print0 | sort -z | xargs -0 md5sum | md5sum | |
} |
lnav -i https://gist.github.com/80d1d179c5706f85b281a5558217a5fe.git
# or
lnav -i [email protected]:80d1d179c5706f85b281a5558217a5fe.git
//this makes a 8gb RAM DISK | |
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://16384000` |
Check if empty | |
if [ -z "$var" ] | |
then | |
echo "\$var is empty" | |
else | |
echo "\$var is NOT empty" | |
fi | |
OR |
sudo yum install gcc-c++ make | |
sudo curl -sL https://rpm.nodesource.com/setup_16.x | sudo bash - | |
sudo yum install -y nodejs | |
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo | |
sudo yum install yarn |
#first create the file this will make a 4gb file. do 20 count for 2gb etc.. | |
sudo dd if=/dev/zero of=/swapfile bs=128M count=32 | |
chmod 600 /swapfile | |
#format the file properly with mkswap | |
sudo mkswap /swapfile | |
#tell your system to activate it | |
swapon /swapfile | |
#test swap file | |
swapon -s | |
#if no errors add to fstab so it auto mounts: |
enable amazon-linux-extras | |
enable epel extras | |
adduser nginx | |
update yum | |
upgrade yum | |
##get katest nginx | |
cd /tmp/ |