Cheat Sheet tentang Linux dan beberapa bahasa pemograman (go, mysql, nodeJS, dst)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bernardus Ivan Hertanto edc63cb9cb edit link 1 year ago
README.MD edit link 1 year ago
debian.md edit link 1 year ago
docker.md edit link 1 year ago
mysql.md edit link 1 year ago
raspberrypi.md edit link 1 year ago
ubuntu.md tambah dan pisahkan 1 year ago

README.MD

Cheat Sheets

SSH Key Gen

ssh-keygen -t rsa -b 4096 -C "user id or email"

Check Key ssh -T git@github.com

MD5deep

md5deep -rels * > checksums.md5
md5deep -rx checksums.md5 *

Tmux

    tmux setting
    tmux set -g mouse on \
    tmux set -g history-limit 9999
    tmux show -g | cat > ~/.tmux.conf

find word ignore-case

grep -i --color

ps aux | grep -i docker | grep -v grep

sudo ntfsfix /dev/sdb1

Docker

Installing Docker

sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common

curl -fsSL [https://download.docker.com/linux/ubuntu/gpg](https://download.docker.com/linux/ubuntu/gpg) | sudo apt-key add -

sudo apt-key fingerprint 0EBFCD88

sudo groupadd docker
sudo usermod -aG docker \$USER

S3cmd

s3cmd --config

s3cmd ls
Upload

s3cmd put file.txt s3://pines
s3cmd put -r folder s3://pines
s3cmd put --acl-public --guess-mime-type -r folder s3://pines


Download
s3cmd get file s3://pines


GOLang

Setting Unix and Linux

export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$HOME/go/bin
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin

md5deep

md5deep -lres * > checksum.md5
md5deep -rx checksum.md5 *

compress


make compress and split acrhive 4gb max per package

tar czpvf - /path/to/archive | split -d -b 4096M - tardisk
cat tardisk* | tar xzpvf -

tar cvzf - dir/ | split --bytes=200MB - sda1.backup.tar.gz.
cat sda1.backup.tar.gz.* | tar xzvf -

zip -0 -s 2g -r backup.zip directory

Extract a .tar file:

tar -xvf foo.tar

Extract and uncompress a tar.gz file:

tar -xvzf foo.tar.gz

Extract and uncompress a tar.bz2 file:

tar -xvjf foo.tar.bz2

crate tar.gz

tar -czvf filename.tar.gz /path/to/dir1

GIT

git reset --hard HEAD^


Manjaro

git clone https://aur.archlinux.org/nordvpn-bin
cd nordvpn-bin/
sudo pacman build nordvpn-bin
sudo pacman build nordvpn-bin.install 
sudo pacman build nordvpn-bin .
pamac build nordvpn-bin
mpw-cli
cd <ke dalam mpw-cli dir>
./build
./install