README.md : changed codeblock type from bash to sh
This commit is contained in:
parent
33a93135bc
commit
40e4edc574
20
README.md
20
README.md
@ -16,7 +16,7 @@ Now you can just connect using ssh \$HOST_NAME
|
||||
|
||||
## Pythons commands
|
||||
|
||||
```bash
|
||||
```sh
|
||||
# Update every packages
|
||||
pip freeze | cut -d = -f 1 | xargs -n1 pip install -U
|
||||
# Uninstall every packages
|
||||
@ -25,7 +25,7 @@ pip freeze | cut -d = -f 1 | xargs -n1 pip uninstall -y
|
||||
|
||||
## Docker commands
|
||||
|
||||
```bash
|
||||
```sh
|
||||
# Remove every images
|
||||
docker images --format="{{.ID}}" | xargs docker rmi
|
||||
# Remove every containers
|
||||
@ -50,7 +50,7 @@ for(lib in .libPaths()) lapply(my_packages$Package, remove.packages, lib = lib)
|
||||
|
||||
## Setup Git SSH key
|
||||
|
||||
```bash
|
||||
```sh
|
||||
# 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 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
|
||||
|
||||
```bash
|
||||
```sh
|
||||
# Creating the disk image
|
||||
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)
|
||||
|
||||
```bash
|
||||
```sh
|
||||
# Enable kernel port forwarding
|
||||
sysctl -w net.ipv4.ip_forward=1
|
||||
# Enable at reboot
|
||||
@ -115,7 +115,7 @@ iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
|
||||
|
||||
### IP Remote
|
||||
|
||||
```bash
|
||||
```sh
|
||||
connmanctl
|
||||
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
|
||||
|
||||
```bash
|
||||
```sh
|
||||
choco install -y adobedigitaleditions calibre
|
||||
```
|
||||
|
||||
@ -145,7 +145,7 @@ choco install -y adobedigitaleditions calibre
|
||||
|
||||
## Loop devices
|
||||
|
||||
```bash
|
||||
```sh
|
||||
# Create loop device to $BLOCK_PATH of 4G
|
||||
dd if=/dev/zero of=$BLOCK_PATH bs=1M count=4096
|
||||
# Create loop filesystem
|
||||
@ -162,7 +162,7 @@ rm $BLOCK_PATH
|
||||
|
||||
## Install img.xz
|
||||
|
||||
```bash
|
||||
```sh
|
||||
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
|
||||
|
||||
```bash
|
||||
```sh
|
||||
mkdir /home/$USER/.XDG/data/gnupg
|
||||
chmod 700 /home/$USER/.XDG/data/gnupg
|
||||
gpg --import $PUBLIC_KEY
|
||||
|
Loading…
x
Reference in New Issue
Block a user