View iptables.rules.sh
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# http://www.thegeekstuff.com/scripts/iptables-rules
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
View iptables.v4
# Generated by iptables-save v1.6.0 on Thu Dec 7 20:15:26 2017
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [7:532]
:LOGGING - [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -i ens7 -p icmp -j DROP
-A INPUT -i ens3 -p icmp -j DROP
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
View xstartup.sh
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
autocutsel -fork
# Support clipboard copy/paste functions
vncconfig -nowin &
export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
View gist:e4dd00851d1a8c86f6f312fa9e91f863
# For tmux versions after 2.1
#
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
set-window-option -g window-status-current-bg yellow
setw -g mouse on
View gist:e4573eec9b3705b0b55d211a6f580b42
# For tmux version prior to 2.1
#
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
set-window-option -g window-status-current-bg yellow
setw -g mode-mouse on