Skip to content

Instantly share code, notes, and snippets.

View stevemcquaid's full-sized avatar

Stephen McQuaid stevemcquaid

View GitHub Profile
@johnwgillis
johnwgillis / How to setup GPG for git.md
Last active October 9, 2025 12:16
How to setup GPG for signing commits with Git, SourceTree, and GitHub on Mac

How to setup GPG for signing commits with Git, SourceTree, and GitHub on Mac

  1. Install GPG tools
    1. Install GPG tools and setup pin entry by running:
    brew install gnupg pinentry-mac
    mkdir -m 700 -p ~/.gnupg
    echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
    killall gpg-agent
    
@unp
unp / fb_profile_extractor.rb
Created January 23, 2019 02:17
Extracts user names and profile URLs from Facebook group members' page
require 'nokogiri'
require 'csv'
doc = File.open("members.htm") do |f|
html = Nokogiri.HTML(f)
CSV.open("users.csv", "w") do |csv|
csv << ['Name', 'Profile Link']
users = html.css('.uiProfileBlockContent').map do |profile_block|
link = profile_block.css('a').first['href'].match(/(https:\/\/www.facebook.com\/.*)\?/)[1]
name = profile_block.css('a').first.text.strip
@wsargent
wsargent / docker_cheat.md
Last active September 23, 2025 16:14
Docker cheat sheet