README.md : changed codeblock type from bash to sh

This commit is contained in:
saundersp 2024-07-27 16:52:54 +02:00
parent 33a93135bc
commit 40e4edc574

View File

@ -16,7 +16,7 @@ Now you can just connect using ssh \$HOST_NAME
## Pythons commands ## Pythons commands
```bash ```sh
# Update every packages # Update every packages
pip freeze | cut -d = -f 1 | xargs -n1 pip install -U pip freeze | cut -d = -f 1 | xargs -n1 pip install -U
# Uninstall every packages # Uninstall every packages
@ -25,7 +25,7 @@ pip freeze | cut -d = -f 1 | xargs -n1 pip uninstall -y
## Docker commands ## Docker commands
```bash ```sh
# Remove every images # Remove every images
docker images --format="{{.ID}}" | xargs docker rmi docker images --format="{{.ID}}" | xargs docker rmi
# Remove every containers # Remove every containers
@ -50,7 +50,7 @@ for(lib in .libPaths()) lapply(my_packages$Package, remove.packages, lib = lib)
## Setup Git SSH key ## Setup Git SSH key
```bash ```sh
# Generate a SSH key pair # Generate a SSH key pair
ssh-keygen -t rsa -b 4096 -o -a 100 -C "email@example.com" -f ~/.ssh/$KEY_NAME ssh-keygen -t rsa -b 4096 -o -a 100 -C "email@example.com" -f ~/.ssh/$KEY_NAME
ssh-keygen -t ed25519 -a 100 -C "email@example.com" -f ~/.ssh/$KEY_NAME ssh-keygen -t ed25519 -a 100 -C "email@example.com" -f ~/.ssh/$KEY_NAME
@ -79,7 +79,7 @@ cat KEY_FILE | ssh REMOTE "cat >> ~/authorized_keys"
## QEMU cheat sheet ## QEMU cheat sheet
```bash ```sh
# Creating the disk image # Creating the disk image
qemu-img create -f qcow2 DISK_NAME.img 15G qemu-img create -f qcow2 DISK_NAME.img 15G
@ -95,7 +95,7 @@ qemu-system-x86_64 $DISK_NAME.img \
### IP Host (eth1 has internet, eth0 is remote) ### IP Host (eth1 has internet, eth0 is remote)
```bash ```sh
# Enable kernel port forwarding # Enable kernel port forwarding
sysctl -w net.ipv4.ip_forward=1 sysctl -w net.ipv4.ip_forward=1
# Enable at reboot # Enable at reboot
@ -115,7 +115,7 @@ iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
### IP Remote ### IP Remote
```bash ```sh
connmanctl connmanctl
config <eth0> --ipv4 manual 192.168.137.2 255.255.255.0 192.168.137.1 --nameservers <DNS-SERVER> config <eth0> --ipv4 manual 192.168.137.2 255.255.255.0 192.168.137.1 --nameservers <DNS-SERVER>
``` ```
@ -126,7 +126,7 @@ config <eth0> --ipv4 manual 192.168.137.2 255.255.255.0 192.168.137.1 --nameserv
In Windows you must have _Adobe Digital Editions_ and _Calibre_ using Chocolatey In Windows you must have _Adobe Digital Editions_ and _Calibre_ using Chocolatey
```bash ```sh
choco install -y adobedigitaleditions calibre choco install -y adobedigitaleditions calibre
``` ```
@ -145,7 +145,7 @@ choco install -y adobedigitaleditions calibre
## Loop devices ## Loop devices
```bash ```sh
# Create loop device to $BLOCK_PATH of 4G # Create loop device to $BLOCK_PATH of 4G
dd if=/dev/zero of=$BLOCK_PATH bs=1M count=4096 dd if=/dev/zero of=$BLOCK_PATH bs=1M count=4096
# Create loop filesystem # Create loop filesystem
@ -162,7 +162,7 @@ rm $BLOCK_PATH
## Install img.xz ## Install img.xz
```bash ```sh
xzcat $IMG_FILE | dd of=/dev/$DEVICE bs=64k oflag=dsync status=progress xzcat $IMG_FILE | dd of=/dev/$DEVICE bs=64k oflag=dsync status=progress
``` ```
@ -179,7 +179,7 @@ root hard nofile 64000
## Verify a PGP Signature ## Verify a PGP Signature
```bash ```sh
mkdir /home/$USER/.XDG/data/gnupg mkdir /home/$USER/.XDG/data/gnupg
chmod 700 /home/$USER/.XDG/data/gnupg chmod 700 /home/$USER/.XDG/data/gnupg
gpg --import $PUBLIC_KEY gpg --import $PUBLIC_KEY