Skip to content

Instantly share code, notes, and snippets.

View loveJesus's full-sized avatar

Love JESUS loveJesus

View GitHub Profile
@loveJesus
loveJesus / same_device_nat.sh
Created August 5, 2012 02:58
simple same device nat and port forwarding
#Jesus Christ is the Son of God
#I am indebted to the Lord for saving my life, He is awesome. He still does miracles, restores your heart and mind, and provides day to day sanity and wellbeing, direction and Wisdom. Its wonderful, praise His awesome deed of sending His Son, who died on the cross and became a curse so we could become His righteoussness. How great, how awesome is He!
#suppose eth0 is connected to the internet through a gateway/ip, but also a local network.
#this might be the case with a bridged VirtualBox connection, or a switch connecting a router and local computers
#This supposes that the internet connection is established, and a local network on 192.168.1.0/24 and port forwarding 1194 udp connection (openvpn)
#first the nat
iptables -A FORWARD -i eth0 -d 192.168.1.0/24 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -s 192.168.1.0/24 -o eth0 -j ACCEPT
@loveJesus
loveJesus / three_gateways_to_internet
Created August 5, 2012 04:34
Three gateways to the internet
#The Lord is my Shepherd, I shall not want
#He makes me lie down in green pastures
#He leads me besides quiet waters
#!/bin/bash
#This file is to setup a load balancing across 3 gateways to the internet
#First make sure to add the lines
#echo 200 t1 >> /etc/iproute2/rt_tables
#echo 201 t2 >> /etc/iproute2/rt_tables
#echo 202 t3 >> /etc/iproute2/rt_tables
@loveJesus
loveJesus / gist:3261758
Created August 5, 2012 04:54
HTML: Simple Blank
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<style type="text/css">
</style>
pJr.employments=[
{ pos:"Engineer",
link:"www.crowdstar.com",
date:"feb 2014 current",
loc:"USA",
proj:[
{tech:["PHP","HTML5","MySQL","Memcached","GIT/Gitlab","Jenkins","Asana"],
desc:"Survey system",
when:"Sept 2014",
notes:"Made simple mvc system, staging/prod system"}
@loveJesus
loveJesus / busyroot.sh
Created October 20, 2015 17:56 — forked from weakish/busyroot.sh
#sh script to set up a #chroot #busybox #ssh environment
#!/bin/sh
# by Jakukyo Friel <weakish@gmail.com> under GPL v2.
### Set up a chroot busybox SSH environment
## requires
# wget -- to download pubkey and busybox
# sharutils -- to generate random password
## Config
@loveJesus
loveJesus / God is good, download latest sublime text 3 dev and update on Linux.sh
Last active May 13, 2016 17:20
God is good, download latest sublime text 3 dev and update on Linux
#Hallelujah
flLoveJesus=`mktemp`.bz2
wget `curl https://www.sublimetext.com/3dev | grep tarball | tail -n 1 | sed -r 's/.*also.*href="(.*).bz2".*/\1/g'`.bz2 -O $flLoveJesus
cd /tmp
rm -rf st3LoveJesus
tar xvf $flLoveJesus
mv sublime_text_3 st3LoveJesus
cd st3LoveJesus
cp -r * /opt/st3LoveJesus
God is good, simply wonderful
setw -g mode-keys vi
bind r source-file ~/.tmux.conf
#unbind C-b
#set -g prefix M-e
#bind M-e send-prefix
#set -g session-name 'Hallelujah-#S'
set -sg escape-time 0
bind -n M-h select-pane -L
bind -n M-j select-pane -D
@loveJesus
loveJesus / .vimrc
Last active January 25, 2017 04:22
"Hallelujah
set nocompatible " be iMproved, required
nmap <C-N><C-N> :set invnumber<CR>
set pastetoggle=<F3>
nmap <C-O> :NERDTreeTabsToggle<CR>
syntax on
filetype off " required
set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab
syntax on
filetype plugin indent on
#!/hallelujah/bin/bash
#echo "Do unto others as you would have them do unto you"
xLoveJesus=`cat /dev/urandom | xxd -l 2 -ps`
nLoveJesus=`ruby -e "puts 0x$xLoveJesus"`
nLoveJesus=`ruby -e "puts rand(32000)"`
#fix for diatheke bug on ubuntu
diatheke -b WEB -k $nLoveJesus | sed s/^:.*$// | sed '/^$/d' | awk '!a[$0]++' | paste -sd ' '