# Corey Goldberg 2018
# purpose: download latest release of Selenium Standalone Server
# requires:
# * `curl`
# * `xpath` utility from the `XML::XPath` Perl module. On Debian,
# this is provided by the `libxml-xpath-perl` package.
View check_root.bash
# add this to the beginning of a bash script to ensure it can only be run with root access.
if [[ $EUID -ne 0 ]]; then
echo "permission denied."
echo "$(basename $0) must be run as root."
exit 1

Keybase proof

I hereby claim:

  • I am cgoldberg on github.
  • I am cgoldberg ( on keybase.
  • I have a public key ASDk5SpG1Ab5cbPjZP2kcdVjLxyEN2_QbT-RMz1E_r5tuAo

To claim this, I am signing this object:

View sniff.txt
============= HOST: ==========\n
local_ip: %{local_ip}\n
local_port: %{local_port}\n
remote_ip: %{remote_ip}\n
remote_port: %{remote_port}\n
======= CONNECTION: ==========\n
#!/usr/bin/env bash
# Installer for WebDrivers
# ------------------------
# - Binary webdrivers are required to drive Firefox and Chrome browsers from Selenium.
# - This script will fetch the 64-bit binaries (geckodriver/chromedriver) for MacOS or Linux.
set -e
# download and install latest geckodriver for linux or mac.
# required for selenium to drive a firefox browser.
json=$(curl -s
if [[ $(uname) == "Darwin" ]]; then
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("macos"))')
elif [[ $(uname) == "Linux" ]]; then
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("linux64"))')

Comparing p-lists (iOS Property List Files)

In OS X and iOS programming frameworks, property list files are used to store information about bundles and applications. Analyzing .plist files can tell you a lot about an application. It is often useful to compare content and view modifications to .plist files to understand what has changed between versions of an application.

  • list paths of .plist files modified between 2 branches
1. install ubuntu deps:
sudo apt-get python-pip
sudo apt-get install firefox
sudo apt-get install chromium-browser
def num_cpu_cores():
with open('/proc/cpuinfo') as f:
import os
def got_root():
"""check if we are running as root."""
if os.geteuid() == 0:
return True
return False