Skip to content

Instantly share code, notes, and snippets.

View rdelmotte's full-sized avatar

Romain Delmotte rdelmotte

View GitHub Profile
@rdelmotte
rdelmotte / vpn_kill_switch.sh
Created July 15, 2019 11:03
Synolgy PIA VPN Kill Switch
#!/bin/bash
dl_managers=("xxx")
rls_trackers=("xxx" "xxx")
vpn_interface="ppp1"
vpn_conf_id="pXXXXXX"
vpn_conf_name="xxx"
vpn_conf_proto="pptp"
exit_code=0
@rdelmotte
rdelmotte / gist:3047608
Created July 4, 2012 14:18
PuTTy Session
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\HOSTNAME]
"Present"=dword:00000001
"HostName"="HOSTNAME"
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001
"SSHLogOmitPasswords"=dword:00000001
"SSHLogOmitData"=dword:00000000
"Protocol"="ssh"
@rdelmotte
rdelmotte / .bashrc
Last active October 6, 2015 02:48
.bashrc
# Sample .profile for SuSE Linux
# rewritten by Christian Steinruecken <cstein@suse.de>
#
# This file is read each time a login shell is started.
# All other interactive shells will only read .bashrc; this is particularly
# important for language settings, see below.
test -z "$PROFILEREAD" && . /etc/profile || true
# Most applications support several languages for their output.
@rdelmotte
rdelmotte / gist:2765021
Last active October 5, 2015 06:38
.screenrc
startup_message off # Show copyright during strartup?
caption splitonly "%{.B}%?%F%{.r}%?%-w%L>%{= yW} %n*%t %{-}%52<%+w %50=%n%f%t"
hardstatus alwayslastline "%{kW}%-w%L>%{= yw} %n*%t %{-}%52<%+w %=%H %l %m/%d %C%a"
termcapinfo xterm|xterm-color|xterms|xs|rxvt ti@:te@
#caption always "%{+b}%{= kb} %-Lw%{= kW}%n%f* %t%{-}%+Lw%< %{bw} %C%a %Y%m%d %H:%l"
# Support alternate screens so that, for example, when you
# quit out of vi, the display is redrawn as it was before vi
# redrew the full screen.
altscreen on
syntax on
set ruler
set background=light
" colorscheme solarized
set nocompatible
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
@rdelmotte
rdelmotte / gist:2160551
Created March 22, 2012 17:36
Urban Terror config file
// Player
name TiTan
seta cg_selectedPlayerName "TiTan"
racered 1
raceblue 1
cg_rgb "0 0 0"
seta funblue "ninja,shades,bartsbl"
seta funred "ninja,shades,bartsrd"
set gear GaAAVRW // AK-103, .50 Desert Eagle, Kevlar Vest, Kevlar Helmet, Laser Sight