Skip to content

Instantly share code, notes, and snippets.

@tempire
tempire / copy-from-time-machine.sh
Created December 2, 2024 22:39 — forked from vjt/copy-from-time-machine.sh
Copy data from a Time Machine volume mounted on a Linux box.
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <source> <target>
#
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
#
@tempire
tempire / README.md
Created August 5, 2024 16:46 — forked from adtac/README.md
Using your Kindle as an e-ink monitor

using your Kindle as an e-ink monitor

demo: https://x.com/adtac_/status/1820127470613622950 (3.5 fps, Paperwhite 3)

step 1: jailbreak your Kindle

mobileread.com is your best resource here, follow the instructions from the LanguageBreak thread

I didn't really follow the LanguageBreak instructions because I didn't care about most of the features + I was curious to do it myself, but the LanguageBreak github repo was invaluable for debugging

@tempire
tempire / timestables
Last active August 29, 2015 14:20 — forked from anonymous/timestables
#!/usr/bin/perl
#use strict;
use warnings;
use Switch;
use Data::Printer;
my ($choice, $times, $key, $value);
my @array = (1, 2, 3, 4, 5, 6, 7, 8, 9);
#my %hash_0 = map { $_ => $_ * 0 } @array;
@tempire
tempire / 0_reuse_code.js
Created June 23, 2014 16:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
package Capybara;
use Mojo::Base -base;
use Test::More;
use Mojo::Parameters;
use Mojo::URL;
use Data::Dumper;
has 'test';
has 'tx';
has 'dom';
@tempire
tempire / ow ith ojo!
Created September 11, 2012 06:01 — forked from jadeallenx/gist:3694498
tunes.io downloader oneliner
perl -MTime::Piece -Mojo -E 'mkdir $dir=$ENV{HOME}."/Dropbox/tunes.io/".localtime->ymd; say $_->text and g($_->attrs("href"))->content->asset->move_to("$dir/${\$_->text}.mp3") for g("tunes.io")->dom("ul a")->each'