Skip to content

Instantly share code, notes, and snippets.

View heathdbrown's full-sized avatar

Heath Brown heathdbrown

View GitHub Profile
@heathdbrown
heathdbrown / .gitignore
Created June 16, 2024 03:18
Golang gitignore
# Created by https://www.toptal.com/developers/gitignore/api/windows,macos,visualstudiocode,linux,go,dotenv,data
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,macos,visualstudiocode,linux,go,dotenv,data
### Data ###
*.csv
*.dat
*.efx
*.gbr
*.key
*.pps
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64/jre/bin/keytool -import -alias jenkins.fpd.cat.com -keystore cacerts -file jenkins_cert.txt
@heathdbrown
heathdbrown / gist:fb77646aa2885e5718cc68001573dac8
Created February 1, 2020 14:45
Test Connectivity from Windows no telnet using PowerShell
https://docs.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=win10-ps
Test-NetConnection -ComputerName <HOST> -InformationLevel "Detailed" -Port <PORT>
@heathdbrown
heathdbrown / bogon-ipv4.csv
Last active June 12, 2020 02:01
BogonIPs
Address Block Name RFC Allocation Date Termination Date Source Destination Forwardable Globally Reachable Reserved-by-Protocol
0.0.0.0/8 "This host on this network" [RFC1122], Section 3.2.1.3 1981-09 N/A True False False False True
10.0.0.0/8 Private-Use [RFC1918] 1996-02 N/A True True True False False
100.64.0.0/10 Shared Address Space [RFC6598] 2012-04 N/A True True True False False
127.0.0.0/8 Loopback [RFC1122], Section 3.2.1.3 1981-09 N/A False [1] False [1] False [1] False [1] True
169.254.0.0/16 Link Local [RFC3927] 2005-05 N/A True True False False True
172.16.0.0/12 Private-Use [RFC1918] 1996-02 N/A True True True False False
192.0.0.0/24 [2] IETF Protocol Assignments [RFC6890], Section 2.1 2010-01 N/A False False False False False
192.0.0.0/29 IPv4 Service Continuity Prefix [RFC7335] 2011-06 N/A True True True False False
192.0.0.8/32 IPv4 dummy address [RFC7600] 2015-03 N/A True False False False False
@heathdbrown
heathdbrown / vaping
Created September 9, 2017 19:52
vaping error on Ubuntu
pluginmgr hook.compile(vaping.plugins) __init__.py:24
Traceback (most recent call last):
File "/usr/local/bin/vaping", line 9, in <module>
load_entry_point('vaping==0.3.0', 'console_scripts', 'vaping')()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
@heathdbrown
heathdbrown / vaping
Created September 9, 2017 19:34
Vaping Error when installing on raspberrypi
------------------------------------------------------------
/usr/bin/pip run on Sat Sep 9 19:30:55 2017
Downloading/unpacking vaping
Getting page https://pypi.python.org/simple/vaping/
URLs to search for versions for vaping:
* https://pypi.python.org/simple/vaping/
Analyzing links from page https://pypi.python.org/simple/vaping/
Found link https://pypi.python.org/packages/14/58/5d404eb95269eb8a395371541804aaa0d4308be57ab388a1ab9165967f55/vaping-0.2.0.tar.gz#md5=82bb7c8be81caf5fe9c121350c928ce6 (from https://pypi.python.org/simple/vaping/), version: 0.2.0
Found link https://pypi.python.org/packages/90/bd/6b4779ec676d91962c6205c0cfe53821659cf0d5702895e13eee5ac1e1e1/vaping-0.3.0.tar.gz#md5=6de58dbe620f707cc2089e3d3eb8022d (from https://pypi.python.org/simple/vaping/), version: 0.3.0
Using version 0.3.0 (newest of versions: 0.3.0, 0.2.0)
ubuntu@ubuntu-xenial:~/batfish/tools$ batfish_build_all
Buildfile: /home/ubuntu/batfish/projects/batfish-common-protocol/build.xml
compile:
checkJarBuild:
jar:
all:
==> default: [javac] The system is out of resources.
==> default: [javac] Consult the following stack trace for details.
==> default: [javac] java.lang.OutOfMemoryError: Java heap space
==> default: [javac] at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:153)
==> default: [javac] at com.sun.tools.javac.util.Position.makeLineMap(Position.java:77)
==> default: [javac] at com.sun.tools.javac.parser.JavaTokenizer.getLineMap(JavaTokenizer.java:763)
==> default: [javac] at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:127)
==> default: [javac] at com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:3173)
==> default: [javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:628)
==> default: [javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:665)
root@server-01:~/ansible/inventory# pip install git+git://github.com/rackspace/pyrax.git
Collecting git+git://github.com/rackspace/pyrax.git
Cloning git://github.com/rackspace/pyrax.git to /tmp/pip-BjpPmM-build
Requirement already satisfied (use --upgrade to upgrade): python-novaclient==2.27.0 in /usr/local/lib/python2.7/dist-packages (from pyrax==1.9.7)
Requirement already satisfied (use --upgrade to upgrade): rackspace-novaclient in /usr/local/lib/python2.7/dist-packages (from pyrax==1.9.7)
Requirement already satisfied (use --upgrade to upgrade): keyring in /usr/local/lib/python2.7/dist-packages (from pyrax==1.9.7)
Requirement already satisfied (use --upgrade to upgrade): requests<3,>=2.2.1 in /usr/lib/python2.7/dist-packages (from pyrax==1.9.7)
Requirement already satisfied (use --upgrade to upgrade): six<2,>=1.9.0 in /usr/lib/python2.7/dist-packages (from pyrax==1.9.7)
Requirement already satisfied (use --upgrade to upgrade): mock in /usr/local/lib/python2.7/dist-packages (from pyrax==1.9.7)
Requiremen
http://damyanon.net/fix-pip-list-assertionerror/
curl -O https://bootstrap.pypa.io/get-pip.py
chmod +x get-pip.py
python get-pip.py
#After install pip list fails; pip --version fails
# updated packages
apt-get update -y; apt-get upgrade -y
reboot