Skip to content

Instantly share code, notes, and snippets.

View suidroot's full-sized avatar

Ben Mason suidroot

View GitHub Profile
@suidroot
suidroot / create-interface.sublime-snippet
Created April 15, 2014 22:12
Cisco Router Interface Sublime Text Snippet
<snippet>
<content><![CDATA[
interface ${1:FastEthernet} ${2:0/0/0}
description ${3:SomeDescription}
${4}
!
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>interface</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@suidroot
suidroot / create-vlan.sublime-snippet
Created April 15, 2014 22:13
Cisco VLAN Creation Sublime Text Snippet
<snippet>
<content><![CDATA[
vlan ${1:1}
name ${2:name}
!
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>vlan</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.Cisco</scope> -->
@suidroot
suidroot / vyatta-route
Created May 13, 2014 01:38
Vyatta Test Routing Table
set interfaces loopback lo address '192.168.1.1/32'
set protocols static route 1.1.1.0/24 next-hop 192.168.1.1
set protocols static route 1.1.2.0/24 next-hop 192.168.1.1
set protocols static route 1.1.3.0/24 next-hop 192.168.1.1
set protocols static route 1.1.4.0/24 next-hop 192.168.1.1
set protocols static route 1.1.5.0/24 next-hop 192.168.1.1
set protocols static route 1.1.6.0/24 next-hop 192.168.1.1
set protocols static route 1.1.7.0/24 next-hop 192.168.1.1
set protocols static route 1.1.8.0/24 next-hop 192.168.1.1
@suidroot
suidroot / ASA-VPN-BLOG
Created December 1, 2014 22:43
ASA VPN Blog
ciscoasa# sh run
: Saved
:
ASA Version 8.4(2)
!
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
@suidroot
suidroot / SRX-VPN-Blog
Created December 1, 2014 23:09
SRX VPN Blog
root> show configuration
## Last commit: 2014-12-01 01:56:39 UTC by root
version 12.1X47-D10.4;
system {
root-authentication {
encrypted-password "$1$8fS5JWdL$EXfcEOme1QfZUjfKv757U."; ## SECRET-DATA
}
services {
ssh;
web-management {
@suidroot
suidroot / tivo-decode.sh
Created November 30, 2015 17:43
Decode TIVO files
for file in *.TiVo
do
/Applications/cTiVo.app/Contents/MacOS/tivodecode --mak YOURMAKHERE -o "${file%.TiVo}.mpg" "$file"
done
@suidroot
suidroot / Vyatta VPN failover
Created December 1, 2015 16:59
Vyatta VPN failover commands
set interfaces bonding bond1 vrrp vrrp-group 1 run-transition-scripts backup '/config/scripts/ipsec-stop'
set interfaces bonding bond1 vrrp vrrp-group 1 run-transition-scripts fault '/config/scripts/ipsec-stop'
set interfaces bonding bond1 vrrp vrrp-group 1 run-transition-scripts master '/config/scripts/ipsec-restart'
@suidroot
suidroot / update.sh
Created December 23, 2015 20:15
Update OS packages
#!/bin/sh
# Update Python, Ports, brew, and OS x
# MAC Ports update
port selfupdate
port upgrade outdated
# Python PIP updates
pip list --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U
@suidroot
suidroot / gist:f1c2ae24badd68c8617d
Last active January 4, 2016 03:48
RTL-SDR decoder links
https://github.com/mutability/dump978 -
https://github.com/bemasher/rtlamr - Smart Meter
https://github.com/antirez/dump1090 - ADSB Decoder
https://github.com/Evrytania/LTE-Cell-Scanner
https://github.com/EliasOenal/multimon-ng
https://github.com/gat3way/rtl_acars_ng
@suidroot
suidroot / create-asa-acl.sublime-snippet
Created April 15, 2014 22:10
Sublime Text 2 ASA ACL Snippet
<snippet>
<content><![CDATA[
access-list ${1:NAME} extended ${2:permit} ${3:ip} ${4:source} ${5:source-port} ${6:destination} ${7:destination-port}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>access-list</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>