Skip to content

Instantly share code, notes, and snippets.

View binaryape's full-sized avatar
💭
Hmmm

Pete Birkinshaw binaryape

💭
Hmmm
View GitHub Profile
@binaryape
binaryape / parkin.sh
Last active December 29, 2021 21:24
A script to archive, encrypt and move/trash old projects
#!/bin/bash
## Parkin: Tar, encrypt and move old project folders
##
## Requirements:
## - A Mac, probably
## - brew install age
## - brew install trash
## - Set $AGE_KEY to your own key for backups/archives
##

# Old Stuff That You Might Have A Use For

  • Bionnaire Air Purifier - squeaks
  • HP Deskjet 6127 with duplexer, one black ink - old but works
  • Gigaset C385 DECT phones - has started fighting crowded wifi in my flat but works
  • Netgear ReadyNAS Duo - can't handle huge drives but works
  • Thermal receipt printer with USB-Serial adapter and lots of thermal paper - because I will never get around to my Twitter-tape project.
@binaryape
binaryape / japanese_tv_list.md
Last active December 15, 2017 12:59
List of Japanese TV I've enjoyed, so I can remember next time someone asks after I start enthusing again.

That List of Japanese TV

Crunchyroll

Oh My God

Exciting, surprising, violent, unusual

  • Attack On Titan - Probably the most exciting thing I've ever watched on TV. Grim, violent, everyone shouts and/or dies, theme tunes to remember, good twists.
  • Mob Psycho 100 - anarchic, expressive animation and completely over the top. Like Akira done by the Rhubarb and Custard, no, by all the artists from an entire series of Channel 4 late night animation programmes

Serious Drama

@binaryape
binaryape / kimchi.md
Created May 16, 2016 14:06
Pete's Kimchi Recipe

Pete’s Kimchi

There are lots of different types of kimchi. The two main ways to make it seem to be “dry” (where a rice-flour and chilli porridge is rubbed on the leaves after a salt has been rubbed on the leaves) or wet (where the leaves are soaked for longer, then the other ingredients added later). Dry seems to be quicker but more labour intensive, and wet takes longer but seems to be much less effort.

This recipe uses the wet method - it takes a night and day to prepare, then 3 to 5 days to ferment.

(When I follow the link I had to the recipe I based this on I end up at a completely different recipe on a different site. No idea what happened there…)

Time

Active time is about an hour

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@binaryape
binaryape / keybase.md
Last active August 29, 2015 13:57
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Just testing, seeing if this WRITE gem works...

@binaryape
binaryape / gist:1285475
Created October 13, 2011 20:46
Slowdown while processing metadata file
jruby-1.6.2 -J-verbose:gc -J-server -S scratch_test.rb > /tmp/out.txt
10MB XML file is parsed, then looped through with lots of xpath queries and fragments
passed to various classes to create objects. That is probably the most inefficient way
I could do this but it felt right at the time...
Source is here: https://github.com/Digital-Identity-Labs/shibkit-meta_meta
- - - - - - - - - - - - - - - -