Skip to content

Instantly share code, notes, and snippets.

View bendoh's full-sized avatar

Benjamin Doherty bendoh

  • Providence, RI
View GitHub Profile
@bendoh
bendoh / emojify.sh
Created July 14, 2023 14:28
Spit out some single-code-point random emoji or all of them to the terminal
#!/bin/zsh
# Requires bash 4.2 or Zsh 4.3
#
# Usage: $0 [count]
#
# Dump count (or, if not given, all) single-code-point emoji to the terminal given a reference file
# in $EMOJI_REF or ~/emoji-latest.txt
# Get this reference file from https://www.unicode.org/Public/emoji/latest/emoji-test.txt
@bendoh
bendoh / timestamp, ID pairs for january 6
Created January 14, 2021 03:44
jan-6-parler-ids-by-timestamp
00:01:15,ZMCgJIJLuT5T
00:01:45,Nz45pfU0aHGX
00:02:03,3FMqYCW4GaEl
00:02:13,ijaYhiAA82g5
00:02:39,fR3uMI0eP5i4
00:02:39,g8U9LBKTG01A
00:02:39,oUTz8VjR0TS0
00:02:55,sRhmsxnfoNxw
00:03:02,plMrpw0aCEMR
00:03:30,1r76uYAXayd9
@bendoh
bendoh / keybase.md
Last active August 25, 2016 16:01
Keybase identity

Keybase proof

I hereby claim:

  • I am bendoh on github.
  • I am bendoh (https://keybase.io/bendoh) on keybase.
  • I have a public key whose fingerprint is 2AB5 9686 26C0 BC19 F607 3543 6DF5 083C F534 994B

To claim this, I am signing this object:

@bendoh
bendoh / fix-wp-stickies.php
Last active March 24, 2022 10:05
Fix sticky posts in WordPress. Deals with issues in trac #27282
/**
* Provide a flag for whether or not the request really wanted ignore sticky
* posts.
*/
add_filter( 'query_vars', function( $v ) {
$v[] = 'really_ignore_sticky_posts';
return $v;
} );