Skip to content

Instantly share code, notes, and snippets.

View sdondley's full-sized avatar

Steve Dondley sdondley

View GitHub Profile
@sdondley
sdondley / tmux split-window subcommand.md
Last active March 18, 2024 22:28
Super Guide to the split-window tmux Subcommand (and Beyond)

Super Guide to the split-window tmux Subcommand (and Beyond)

Guide overview

tmux, like other great software, is deceptive. On the one hand, it's fairly easy to get set up and start using right away. On the other hand, it's difficult to take advantage of tmux's adanced power features without spending some quality alone time with the manual. But the problem with manuals is that they aren't geared toward beginners. They are geared toward helping seasoned developers and computer enthusiasts quickly obtain the

@duhaime
duhaime / headless.py
Last active February 16, 2023 23:19
Python Selenium Headless Chrome OSX
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.binary_location = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver', chrome_options=chrome_options)
driver.get("http://www.duo.com")
@andyjack
andyjack / installing-net-ssleay-with-homebrew-openssl.md
Last active August 18, 2022 14:29
Installing Net::SSLeay with openssl from homebrew (OS X)

Installing Net::SSLeay with openssl from homebrew (macOS)

You don't need to do anything fancy other than running cpanm - with the most recent Net::SSLeay things should Just Work.

Updated 2020-Mar-10

I realized that since Net::SSLeay is looking in known places (including homebrew's install locations) for openssl, it means that my instructions that set up environment variables are no longer necessary! The following will install the module:

# openssl 1.0.2d
@pdostal
pdostal / spam
Created December 25, 2014 21:41
Spamassassin bug GPG validation failed
# http://krischan.eu/index.php/2014/04/21/spamassassin-bug-gpg-validation-failed/
wget http://spamassassin.apache.org/updates/GPG.KEY
sa-update --import GPG.KEY
chown -R spamd:root /var/lib/spamassassin/sa-update-keys
chmod -R 775 /var/lib/spamassassin/sa-update-keys
sa-update -D
#!/bin/bash
show_usage () {
echo "Usage: `basename $0` [START [END]]"
echo
echo "Steps through the commit history from START to END,"
echo "then returns to the branch or commit from before execution."
echo
echo "START defaults to the root commit (beginning of history)."
echo "END defaults to current branch/commit."