This file contains 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
### Basic ### | |
# The directory to store the downloaded file. | |
dir=${HOME}/Downloads | |
# Downloads the URIs listed in FILE. | |
input-file=${HOME}/.aria2/aria2.session | |
# Save error/unfinished downloads to FILE on exit. | |
save-session=${HOME}/.aria2/aria2.session | |
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0 | |
save-session-interval=60 | |
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5 |
This file contains 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
# ------- Debian ------- | |
sudo apt-get install ufw -y | |
# ------- CentOS ------- | |
sudo yum install epel-release -y | |
sudo yum install --enablerepo="epel" ufw -y | |
# ------- Config ------- | |
sudo ufw allow ssh | |
sudo ufw allow http |
This file contains 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
version: '2' | |
services: | |
kodexplorer: | |
image: 'baiyuetribe/kodexplorer' | |
restart: always | |
environment: | |
- DEFAULT_EMAIL=mail@example.com | |
- VIRTUAL_HOST=cloud.domain.com | |
- VIRTUAL_PORT=80 |
This file contains 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
version: '2' | |
services: | |
watchtower: | |
image: containrrr/watchtower | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /root/.docker/config.json:/config.json | |
command: nginx-proxy nginx-proxy-le |
This file contains 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
pipeline { | |
agent { | |
docker { | |
image 'node' | |
} | |
} | |
stages { | |
stage('Clone Sources') { | |
steps { |
This file contains 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
curl -sSI $1 | grep -i 'server:' | sed -r "s/server:\ (\w|)/\1/i" |
This file contains 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 | |
# makecache | |
yum makecache | |
# Install Dependencies | |
yum install yum-cron tuned centos-release -y | |
# config yum-cron | |
sed -i 's|^download_updates = no|download_updates = yes|' /etc/yum/yum-cron.conf | |
sed -i 's|^apply_updates = no|apply_updates = yes|' /etc/yum/yum-cron.conf |
This file contains 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
# Install yum-cron | |
yum update -y | |
yum install yum-cron -y | |
sed -i 's|^download_updates = no|download_updates = yes|' /etc/yum/yum-cron.conf | |
sed -i 's|^apply_updates = no|apply_updates = yes|' /etc/yum/yum-cron.conf | |
sudo systemctl start yum-cron | |
sudo systemctl enable yum-cron |
This file contains 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 update && sudo apt -y upgrade | |
sudo apt-get install xrdp | |
sudo apt -y install xfce4 | |
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak | |
# sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini | |
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini | |
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini | |
sudo /etc/init.d/xrdp start |
This file contains 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
node_modules/ |
NewerOlder