This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
everything{ 'worst': | |
cant => even, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ohessten% security find-certificate -a /System/Library/Keychains/SystemRootCertificates.keychainc >osx_system_roots.pem | |
ohessten% /path/to/homebrew/bin/openssl s_client -CAfile osx_system_roots.pem -verify 5 -connect sketchy.example.org:443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[3036:~]% go build pflog.go | |
[3036:~]% otool -L pflog | |
pflog: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This. | |
# Is. | |
# Awful. | |
# write that file as: | |
# round=<0|1|2> | |
# oldpass=1234 | |
# newpass=4321 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% export| egrep -i 'OSX|SDK' | |
MACOSX_DEPLOYMENT_TARGET=10.8 | |
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk | |
macosx_deployment_target=10.8 | |
% VERSIONER_PYTHON_PREFER_32_BIT=no arch -x86_64 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python /usr/local/bin/pyinstaller --console --clean --onefile --distpath /tmp/dist/ --workpath /tmp/work/ demo_pyinstaller.py | |
15 INFO: wrote /Users/bhughes/demo_pyinstaller.spec | |
33 WARNING: You are running 64-bit Python: created binaries will only work on Mac OS X 10.6+. | |
If you need 10.4-10.5 compatibility, run Python as a 32-bit binary with this command: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
import sys | |
import time | |
import signal | |
import subprocess | |
import multiprocessing | |
# from xml.dom import minidom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am barn on github. | |
* I am barn (https://keybase.io/barn) on keybase. | |
* I have a public key whose fingerprint is 8D57 9E3C 877D E203 8919 616D 2576 D730 2CAF DACA | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if_em0="vlan100" | |
if_em1="vlan101" | |
if_maje="vlan20" | |
if_admin="vlan140" | |
if_be="vlan150" | |
if_be_dmz="vlan160" | |
if_be_wlan="vlan180" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ "$(sw_vers -productVersion)" == "10.9.5" ] \ | |
&& wget http://support.apple.com/downloads/DL1769/en_US/BashUpdateMavericks.dmg \ | |
&& hdiutil attach BashUpdateMavericks.dmg \ | |
&& sudo installer -target / -pkg '/Volumes/OS X bash update/BashUpdateMavericks.pkg' -verbose \ | |
&& hdiutil eject '/Volumes/OS X bash update' \ | |
&& rm BashUpdateMavericks.dmg \ | |
&& echo "Done." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taken from | |
# https://www.getchef.com/blog/2014/09/30/detecting-repairing-shellshock-with-chef/ | |
# and https://gist.github.com/juliandunn/5bdd11618077573787f8#file-bash-rb | |
# for the CVE-2014-6271 et al Bash vulns. | |
# Regrettably, that's an ohai 7 version, so that doesn't work. Ohai 6 for lyfe. | |
# | |
provides 'languages/bash' | |
require_plugin 'languages' |