Skip to content

Instantly share code, notes, and snippets.

View qzm's full-sized avatar
🚀
I may be slow to respond.

Aaron Qiu qzm

🚀
I may be slow to respond.
View GitHub Profile
@qzm
qzm / aria2.conf
Last active April 27, 2024 04:59
Best aria2 Config
### 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
@qzm
qzm / ufw.sh
Last active February 25, 2024 02:56
UFW配置
# ------- 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
@qzm
qzm / docker-compose.yml
Created May 12, 2020 09:51
kodexplorer
version: '2'
services:
kodexplorer:
image: 'baiyuetribe/kodexplorer'
restart: always
environment:
- DEFAULT_EMAIL=mail@example.com
- VIRTUAL_HOST=cloud.domain.com
- VIRTUAL_PORT=80
@qzm
qzm / docker-compose.yml
Last active May 31, 2023 08:58
Atlassian docker-compose (JIRA,Confluence,Bitbucket) with nginx and letsencrypt
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
@qzm
qzm / Jenkinsfile
Last active April 2, 2023 18:36
Vue.js / Jenkinsfile /Pipelines
pipeline {
agent {
docker {
image 'node'
}
}
stages {
stage('Clone Sources') {
steps {
@qzm
qzm / web.sh
Created April 14, 2021 04:00
get website server
curl -sSI $1 | grep -i 'server:' | sed -r "s/server:\ (\w|)/\1/i"
@qzm
qzm / pritunl.sh
Last active March 8, 2021 05:24
Install Pritunl
#!/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
@qzm
qzm / yum-cron.sh
Created March 7, 2021 12:17
Install yum-cron
# 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
@qzm
qzm / xfce-xrdp.sh
Last active February 27, 2021 16:56
install xfce4 and xrdp
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
@qzm
qzm / .gitignore
Last active February 3, 2021 09:21
.yarnrc fo Chinese developer
node_modules/