Skip to content

Instantly share code, notes, and snippets.

View jsz0's full-sized avatar

Jeff Szarka jsz0

  • New England
View GitHub Profile
@jsz0
jsz0 / gist:1d94b576171ee050eab7cb401661ef71
Created November 22, 2018 10:24
FortiGate ICMPv4 Services
edit "ICMPv4 echo"
set category "Network Services"
set protocol ICMP
set color 15
set icmptype 8
unset icmpcode
next
edit "ICMPv4 echo-reply"
set category "Network Services"
set protocol ICMP
@jsz0
jsz0 / .bash_profile
Created October 9, 2015 03:38 — forked from duksis/.bash_profile
Default CentOS bash_profile and bashrc files
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
@jsz0
jsz0 / osx-bash-profile-aliases
Created October 4, 2015 01:44
OSX .bash_profile aliases
alias showdisks='diskutil list'
alias showdiskio="sudo iotop -P -C 5 10"
alias showlogs='multitail -i /var/log/system.log -i /var/log/org.openzfsonosx.zed.log'
alias newfinder='open ./'
alias showip="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
alias showpubip="dig +short myip.opendns.com @resolver1.opendns.com"
alias showcpu="sysctl -n machdep.cpu.brand_string"
alias flushspotlight="sudo mdutil -avE"
alias flushdns="sudo killall -HUP mDNSResponder"
@jsz0
jsz0 / openvpn-server-min-route.conf
Last active October 4, 2015 01:38
OpenVPN server minimum route config
# clients to /32 host
local 10.0.20.239
port 3100
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
@jsz0
jsz0 / cisco-asa-ipv6-notes.txt
Last active October 3, 2015 22:06
Cisco ASA IPv6 Notes
ASA# show ipv6 interface Inside
Inside is up, line protocol is up
IPv6 is enabled, link-local address is fe80::213:c4ff:fe80:b4ec
Global unicast address(es):
xxxx:xxx:xx:xxxx::1, subnet is xxxx:xxx:xx:xxxx::::/64
Joined group address(es):
ff02::1
ff02::2
ff02::1:ff00:1
ff02::1:ff80:b4ec
@jsz0
jsz0 / openvpn-client-embeded.opvpn
Created October 3, 2015 21:53
OpenVPN client ca/cert/key embed
# append to client.opvpn
<ca>
-----BEGIN CERTIFICATE-----
blah blah blah
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
@jsz0
jsz0 / brew-install.sh
Last active April 20, 2020 14:19
my default brew/cask installs
# firsrun:
# install xcode-cli-tools
# xcode-select --install
# install homebrew
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install caskroom
# brew install caskroom/cask/brew-cask
# update/install:
@jsz0
jsz0 / grc.conf.sipcalc
Created October 3, 2015 21:20
grc color enhancement for sipcalc 1.1.6
# ipv4 addr
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=magenta
======
# ipv6 addr
regexp=(\b[0-9a-fA-F]{1,4}(\:\:?[0-9a-fA-F]{1,4})+|::1)
colours=magenta
======
# netmask-hex
regexp=\s[0-9a-fA-F]+$
@jsz0
jsz0 / grc.conf.ifconfig
Created October 3, 2015 21:18
grc color enhancement for osx/ifconfig
# ipv4 addr
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=italic blue
======
# ipv6 addr
regexp=(\b[0-9a-fA-F]{1,4}(\:\:?[0-9a-fA-F]{1,4})+|::1)
colours=italic blue
======
# hwaddr
regexp=(\d|[a-f]){2}(\:(\d|[a-f]){2}){5}
@jsz0
jsz0 / grc.conf.diskutil
Created October 3, 2015 21:14
grc color enhancement for osx/diskutil
# verbs
regexp=(<verb>|list|merge|rename|resize|split|info|eject|verify|erase|repair|Filesystems|Volume|Optical|Partitions?|partition|Erase|secure|zero|random|listFilesystems|activity|mountDisk|mount|Disk|reformat|enableJournal|disableJournal|moveJournal|enableOwnership|disableOwnership|coreStorage|appleRAID)
colours=green
=====
# options
regexp=(<options>)
colours=yellow
=====
# headers
regexp=(TYPE.NAME|SIZE|IDENTIFIER)