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
<?xml version="1.0" encoding="UTF-8"?> | |
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/encoding/ AnyConnectProfile.xsd"> | |
<ClientInitialization> | |
<AutoUpdate>true</AutoUpdate> | |
<BypassDownloader>true</BypassDownloader> | |
<UseStartBeforeLogon>false</UseStartBeforeLogon> | |
<StrictCertificateTrust>false</StrictCertificateTrust> | |
<RestrictPreferenceCaching>false</RestrictPreferenceCaching> | |
<RestrictTunnelProtocols>IPSec</RestrictTunnelProtocols> |
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 | |
# libSystem - this script does nothing all by itself. | |
function addUfw { | |
aptitude -y install ufw | |
ufw logging on | |
ufw default deny | |
ufw allow ssh | |
ufw enable | |
rm /etc/rsyslog.d/20-ufw.conf |
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
printf "%s\n" "Setting up vanilla enviroment" | |
# BSD | |
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
# OSX Server Specific | |
PATH="$PATH:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin" | |
# sanity locale | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 |
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
daemon | |
pidfile /var/run/3proxy.pid | |
nscache 65536 | |
nserver 208.67.222.222 | |
nserver 208.67.220.220 | |
config /etc/3proxy/3proxy.conf | |
monitor /etc/3proxy/3proxy.conf | |
monitor /etc/3proxy/counters | |
monitor /etc/3proxy/passwd |
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
function FindProxyForURL(url, host) { | |
// Apple Device compatibility, they will skip SOCKS5 for SOCKS. | |
var local_address = "192.168.88.0"; | |
var local_subnet = "255.255.255.0"; | |
var PROXY = "SOCKS5 __ADDRESS__:__PORT__; SOCKS __ADDRESS__:__PORT__"; | |
var OLDMILL = "SOCKS5 __ADDRESS__:__PORT__; SOCKS __ADDRESS__:__PORT__"; | |
var domain_list = [ ".ytimg.com" | |
,".youtube.com" | |
,".greatfire.org" | |
,"gist.github.com" |
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
ascii_composer: | |
good_old_caps_lock: true | |
switch_key: | |
Caps_Lock: clear | |
Control_L: noop | |
Control_R: noop | |
Eisu_toggle: clear | |
Shift_L: inline_ascii | |
Shift_R: commit_text | |
config_version: 0.36.custom.3025064750 |
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
[General] | |
# warning, notify, info, verbose | |
loglevel = notify | |
[Proxy] | |
# http, https, socks5 | |
Proxy = custom, 1.2.3.4, 443, rc4-md5, password, http://server/custom.module | |
[Rule] | |
# Block privacy trackers |
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
# DNS-O-Matic Dynamic IP Endpoint update script for Mikrotik RouterOS. | |
# | |
# Author: Quan Zhou <[email protected]> | |
# | |
# Description: | |
# Update IP address of specified hostname through dnsomatic.com | |
# You need a dnsomatic.com account and whatsoever ddns service | |
# supported by them. | |
# | |
# Tested ands works with Mikrotik RouterOS 6.32 |
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
# Change to the name of interface that gets the dynamic IP address | |
:local inetinterface "pppoe-out1"; | |
# use search & replace all on myEndpoint for multiple hosts | |
:global myEndpoint; | |
:if ([/interface get $inetinterface value-name=running]) do={ | |
# Get the current IP on the interface | |
:local currentIP [/ip address get [find interface="$inetinterface" disabled=no] address]; |
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 | |
function snmpGetIP | |
{ | |
local SNMP_HOST=$1 | |
local SNMP_COMM=$2 | |
local SNMP_IFID=$3 | |
snmpwalk -Os -c ${SNMP_COMM} -v 2c ${SNMP_HOST} ipAdEntIf | grep "INTEGER: ${SNMP_IFID}" | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | |
} |