Skip to content

Instantly share code, notes, and snippets.

View benwoody's full-sized avatar

Ben Woodall benwoody

View GitHub Profile
@ianrenton
ianrenton / fedi-mutuals-callsigns.py
Last active January 3, 2025 20:47
Scrape callsigns of ham radio folks from your fedi mutuals
# Find callsigns of all the ham radio folks you are mutuals with on fedi (may only work with Mastodon)
# and produce a list so you can add them to HamAlert or something.
# Ian Renton, January 2025
# Public Domain software
import re
import requests
USERNAME='ian'
INSTANCE='https://mastodon.radio'
@F21
F21 / signing-gpg-keys.md
Last active April 12, 2025 16:10
Signing someone's GPG key

This is a quick guide of the commands we use to sign someone's GPG key in a virtual key signing party.

Note: The steps cover only the technical aspects of signing someone's key. Before signing someone's key, you must verify their identity. This is usually done by showing government-issued ID and confirming the key's fingerprint

The commands will work for both GPG and GPG2.

I use Julian's key for the examples. His key id is 2AD3FAE3. You should substitute with the appropriate key id when running the commands.

Signing the key

  1. List the keys currently in your keyring: gpg --list-keys.
require "java"
java_import javax.swing.JFrame
java_import javax.swing.JButton
java_import javax.swing.JOptionPane
class HelloWorld < JFrame
def initialize
super "Example"
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
set rtp+=/Users/ivan/Library/Python/2.7/lib/python/site-packages/powerline/bindings/vim
Bundle 'gmarik/vundle'
let g:vundle_default_git_proto = 'git'
Bundle 'altercation/vim-colors-solarized'
Bundle 'scrooloose/nerdtree'
@ivanoats
ivanoats / icebreaker.rb
Last active December 10, 2015 20:48 — forked from anonymous/icebreaker.rb
puts "What's your name?"
puts "Where are you from?"
puts "Hobbies?"
puts "What do you want to get out of codefellows?"
questions = [ "What is your favorite food?",
"What is your favorite animal? List three adjectives to explain your choice",
"It's a hot muggy day. What would you choose to refresh your thirst and why?",
"If you could be one for just 24 hours, what cereal box cartoon character would you be? Why?",
"What was the best thing that happened to you this weekend?",
"What is your favorite animal? List three adjectives to explain your choice.",
@coreyhaines
coreyhaines / MakeHNPalatableBookmarklet
Last active December 10, 2015 16:08
Make Hacker News Palatable
// put this in your address bar, or, better yet, make a bookmark. It removes all traces of comments.
javascript:var subtexts = document.getElementsByClassName("subtext"); Array.prototype.forEach.call(subtexts, function(subtext) { subtext.style.display = 'none'; });
@bleything
bleything / results.rb
Created November 7, 2012 05:38
pull current election results
#!/usr/bin/env ruby
require 'nokogiri'
require 'csv'
require 'open-uri'
require 'pp'
BASE_URL = "http://vote.wa.gov/results/current/"
SHIT_I_CARE_ABOUT = /74|502|1185|Governor|Attorney General|Congressional District 1/
@pachacamac
pachacamac / snake.rb
Created July 21, 2011 23:29
A snake game in a hand full of Ruby
#!/usr/bin/env ruby
d,l,s,c,f,S=15,3,[[5,6],[5,5],[5,4]],[1,0],[rand(15),rand(15)],STDIN
system'stty -icanon -echoke'
loop do
k=S.getc if k=select([S],[],[],0.2)&&S.getc=="\e"&&S.getc==?[
c={?A=>[0,-1],?B=>[0,1],?C=>[1,0],?D=>[-1,0]}[k]||c
s=[[s[0][0]+c[0],s[0][1]+c[1]]]+s[0..-2]
exit if s[0][0]+1>d||s[0][1]+1>d||s[0][0]+1==0||s[0][1]+1==0||s[1..-1].index(s[0])
s+=[[s[0][0]+c[0],s[0][1]+c[1]]] if s[0]==f
f=[rand(d),rand(d)] if s.index f