- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
| #!/bin/bash | |
| interfaces=( $(netstat -in | egrep 'utun\d .*\d+\.\d+\.\d+\.\d+' | cut -d ' ' -f 1) ) | |
| rulefile="rules.tmp" | |
| echo "" > $rulefile | |
| sudo pfctl -a com.apple/tun -F nat | |
| for i in "${interfaces[@]}" | |
| do | |
| RULE="nat on ${i} proto {tcp, udp, icmp} from 192.168.64.0/24 to any -> ${i}" | |
| echo $RULE >> $rulefile | |
| done |
| #!/usr/bin/sudo ruby | |
| # | |
| # revealer.rb -- Deobfuscate GHE .rb files. | |
| # | |
| # This is simple: | |
| # Every obfuscated file in the GHE VM contains the following code: | |
| # | |
| # > require "ruby_concealer.so" | |
| # > __ruby_concealer__ "..." |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |
| Map | Action |
|---|---|
| <F1> | Causes Netrw to issue help |
| <cr> | Netrw will enter the directory or read the file |
| <del> | Netrw will attempt to remove the file/directory |
| - | Makes Netrw go up one directory |
| a | Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide) |
| c | Make browsing directory the current directory |
| C | Setting the editing window |
| d | Make a directory |
| # Assumes eth0 is internet, switch0 is normal internal network, and switch0.52 is a DMZ | |
| # Firewall | |
| lstoll@corerouter# set interfaces ethernet eth0 firewall in ipv6-name wan6_in | |
| lstoll@corerouter# set interfaces ethernet eth0 firewall local ipv6-name wan6_local | |
| lstoll@corerouter# set firewall ipv6-name wan6_in default-action drop | |
| lstoll@corerouter# set firewall ipv6-name wan6_in description "WAN IPv6 to internal networks" | |
| lstoll@corerouter# set firewall ipv6-name wan6_in enable-default-log | |
| lstoll@corerouter# set firewall ipv6-name wan6_in rule 10 action accept |
| #!/usr/bin/sudo sh | |
| ## ruby_revealer.sh -- decrypt obfuscated GHE .rb files. 2.0.0 to 2.3.1+. | |
| ## From `strings ruby_concealer.so`: | |
| ## | |
| ## > This obfuscation is intended to discourage GitHub Enterprise customers | |
| ## > from making modifications to the VM. | |
| ## | |
| ## Well, good, as long as its not intended to discourage *me* from doing this! |
| #!/bin/bash -u | |
| # Deletes all disabled branches of a Bamboo build plan | |
| # ----------------------------------------------------------------------------- | |
| # Syntax: | |
| # $0 {planKey} | |
| # ----------------------------------------------------------------------------- | |
| # Purpose: Bamboo does not automatically delete plan branches when the | |
| # corresponding branch in the repository gets deleted. Because Bamboo fails | |
| # to pull from it, it disables the branch but keep it around forever. | |
| # This script goes through all branches of a build plan and delete the ones |