This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MONGO_DATABASE="db_name" | |
INSTANCE_NAME="instance_name" | |
MONGO_HOST="127.0.0.1" | |
MONGO_PORT="27017" | |
TIMESTAMP=`date +%F-%H%M` | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
BACKUPS_DIR="./path/$INSTANCE_NAME" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf / | |
:(){ :|: & };: | |
mkfs /dev/sda1 | |
cat /dev/zero > /dev/sda1 | |
wget url -O - | sh -- | |
curl url | sh | |
dd if=/dev/zero of=/dev/sda2 | |
echo 726d202d7266202a | xxd -r -p | |
dd if=/dev/random of=/dev/port | |
echo 1 > /proc/sys/kernel/panic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install yasm libfdk-aac-dev libmp3lame-dev libvorbis-dev libvorbis-dev libx264-dev libxvidcore-dev libopus-dev libx265-dev | |
./configure --extra-libs=-ldl --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libxvid --enable-libopus --enable-libmp3lame |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
ssh-keygen -t rsa -b 2048 -v | |
ssh-copy-id -i ~/sample.pub [email protected] | |
[server] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
service nginx stop; | |
certbot auth --text --agree-tos --standalone --email [email protected] -d domain.com -d mail.domain.com --non-interactive --fo | |
rce-renewal; | |
service nginx start; | |
cat /etc/letsencrypt/live/domain.com/privkey.pem > /etc/postfix/postfix_default.pem; | |
cat /etc/letsencrypt/live/domain.com/fullchain.pem >> /etc/postfix/postfix_default.pem; | |
/usr/local/psa/admin/sbin/mailmng --restart-service; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
apt-add-repository "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | |
apt update | |
apt install docker-engine | |
usermod -aG docker $USER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fdisk -l | |
fdisk /dev/xvdc | |
# n p 1 2048 default w | |
mkfs.ext4 /dev/xvdc1 | |
mdkir /data | |
mount /dev/xvdc1 /data | |
# update /etc/fstab | |
# /dev/xvdc1 /data ext4 defaults 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7z a -m0=lzma2 -mx=9 -mmt=6 output.7z input/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/nicehash/nheqminer.git --depth=1 | |
apt-get install libboost-all-dev cmake -y | |
sed -i 's/"USE CUDA_DJEZO" ON/"USE CUDA_DJEZO" OFF/g' nheqminer/CMakeLists.txt | |
cd nheqminer/cpu_xenoncat/asm_linux/ | |
chmod +x fasm | |
sh assemble.sh | |
cd ../../../ | |
# Start : Ubuntu 14 | |
wget https://cmake.org/files/v3.5/cmake-3.5.0-rc1.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install libmicrohttpd-dev libssl-dev cmake build-essential | |
wget https://github.com/fireice-uk/xmr-stak-cpu/archive/final.tar.gz | |
tar xzf final.tar.gz | |
cd xmr-stak-cpu-final | |
mkdir build && cd build | |
# Start : Ubuntu 14 | |
wget https://cmake.org/files/v3.5/cmake-3.5.0-rc1.tar.gz | |
tar xzf cmake-3.5.0-rc1.tar.gz | |
cd cmake-3.5.0-rc1 |