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
# System Management | |
#cinst ccleaner | |
#cinst chocolateypackageupdater | |
#cinst rufus | |
# Dev Env | |
#cinst jdk7 | |
#cinst jdk8 | |
#cinst nodejs | |
cinst python |
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
pacman -S --noconfirm base-devel wget git | |
# desktop environment | |
pacman -S --noconfirm xfce4 xorg-server xf86-video-fbdev | |
# networkmanager | |
pacman -S --noconfirm NetworkManager nm-applet xfce4-notifyd | |
# yaourt | |
cd /tmp |
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
var FindProxyForURL = function(init, profiles) { | |
return function(url, host) { | |
"use strict"; | |
var result = init, scheme = url.substr(0, url.indexOf(":")); | |
do { | |
result = profiles[result]; | |
if (typeof result === "function") result = result(url, host, scheme); | |
} while (typeof result !== "string" || result.charCodeAt(0) === 43); | |
return result; | |
}; |
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
#!/usr/bin/env bash | |
tunnel_v2ray_server_docker() { | |
CONFIG_PATH=/etc/v2ray/config.json | |
tunnel_v2ray_server_config | |
CONTAINER_NAME=v2ray | |
CONTAINER_ID=`docker ps -aq --filter=name=$CONTAINER_NAME` | |
[ -z "$CONTAINER_ID" ] || docker rm -f $CONTAINER_ID | |
docker run -d \ |
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
#!/usr/bin/env bash | |
tunnel_v2ray_client_docker() { | |
SERVER_PORT=1080 | |
CONFIG_PATH=/etc/v2ray/config.json | |
tunnel_v2ray_client_config | |
CONTAINER_NAME=v2ray | |
CONTAINER_ID=`docker ps -aq --filter=name=$CONTAINER_NAME` | |
[ -z "$CONTAINER_ID" ] || docker rm -f $CONTAINER_ID |
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
vrrp_script chk_haproxy { | |
script "killall -0 haproxy" # verify the pid existance. `killall -0 haproxy` or `pidof haproxy` | |
interval 2 # check every 2 seconds | |
weight 2 # add 2 points of prio if OK | |
} | |
vrrp_instance VI_1 { | |
interface eth0 # interface to monitor | |
state MASTER | |
virtual_router_id 51 # Assign one ID for this route |