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
SOCKSPort 9050 | |
ExcludeNodes {ru} | |
ExcludeExitNodes {ru},{kz},{by},{cn},{kg},{tj},{uz},{ir} | |
Log notice file /var/log/tor/notices.log |
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
if $programname == 'yggdrasil' then /var/log/yggdrasil.log | |
& stop |
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
/var/log/yggdrasil.log { | |
daily | |
missingok | |
rotate 2 | |
compress | |
olddir /var/log/old | |
dateext | |
dateformat -%Y-%m-%d.log | |
notifempty | |
create 640 syslog adm |
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
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run -b '~/.tmux/plugins/tpm/tpm' | |
set-option -g default-shell /bin/zsh | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
set -g @plugin 'jimeh/tmux-themepack' | |
set -g @themepack 'powerline/double/blue' |
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
#!/usr/bin/env bash | |
if [ -z "$1" ]; then | |
echo "No domain for check" | |
exit 1 | |
fi | |
/usr/lib/nagios/plugins/check_http -j HEAD --ssl -H $1 > /tmp/$1.check 2>&1 | |
if [ $? -eq 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
## NOTE! this works for me but has recieved very limited testing! | |
## Enable auto updates for GITEA: | |
# shell script to check github repo for "latest" tag and compare to current running gitea version | |
# assumes systemd is in use to manage gitea service | |
# assumes gitea binary file lives at: /usr/local/bin/gitea | |
# assumes Ubuntu 18.04 is in use (but should work on any debian / apt system) | |
# assumes your local gitea api instance is reachable at: "http://192.168.4.22:3000/api/v1/version" | |
# assumes your ok with downloading the latest binary from github without any validation | |
# |
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
[Unit] | |
Description=Shadowsocks-rust Default Server Service | |
Documentation=https://github.com/shadowsocks/shadowsocks-rust | |
After=network.target | |
[Service] | |
Type=simple | |
DynamicUser=yes | |
LimitNOFILE=32768 | |
ExecStart=/usr/local/bin/ssserver --config /etc/shadowsocks-rust/config.json --log-without-time |
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
{ | |
"server":"127.0.0.1", | |
"server_port":8389, | |
"local_port":3181, | |
"password":"YOUR_PASSWORD_HERE", | |
"timeout":60, | |
"method":"aes-256-gcm", | |
"plugin":"v2ray-plugin", | |
"plugin_opts": "server", | |
"fast_open":true, |
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
#!/usr/sbin/nft -f | |
flush ruleset | |
define CF_IPS = { | |
173.245.48.0/20, | |
103.21.244.0/22, | |
103.22.200.0/22, | |
103.31.4.0/22, | |
141.101.64.0/18, |
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/sh | |
AMOUNT=10 | |
WHAT=paras | |
START=true | |
while getopts ":n:wpbls" opt; do | |
case $opt in | |
n) | |
AMOUNT=$OPTARG |