Skip to content

Instantly share code, notes, and snippets.

View freels's full-sized avatar

Matt Freels freels

View GitHub Profile
@freels
freels / purge_bzfileids.rb
Last active March 15, 2025 16:13 — forked from pgib/README.md
Clean up the bloated Backblaze bzfileids.dat
#!/usr/bin/env ruby
# Place in `/Library/Backblaze.bzpkg/bzdata/bzbackup`, and run with:
#
# ```
# ruby purge_bzfileids.rb
# ```
#
# It will process `bzfileids.dat` placing any file that exists in
# `bzfileids.dat-found` and any missing file in `bzfileids.dat-missing`. You can
# then back up your original file and replace it with `bzfileids.dat-found`.
@freels
freels / keybase.md
Created September 18, 2014 18:03
keybase.md

Keybase proof

I hereby claim:

  • I am freels on github.
  • I am freels (https://keybase.io/freels) on keybase.
  • I have a public key whose fingerprint is DBEA 8656 AE94 CB1D 9F36 828E 25DB FAD5 8C51 6BC5

To claim this, I am signing this object:

i tried to escape html in ruby
a task that has proved quite too easy
so i dusted off perl
and gave it a whirl:
while(<>){s/([<>'"&])/sprintf('&#%d;',ord($1))/eg;print;}