Skip to content

Instantly share code, notes, and snippets.

View fd0's full-sized avatar

Alexander Neumann fd0

View GitHub Profile
$ export board=facedancer21
$ ./goodfet.monitor listapps
GoodFET with f26f MCU
Clocked at 0x8fa6
Build Date: 2013-01-23 16:28
Firmware apps:
Monitor
SPI
MAXUSB
[global]
font = Terminus 8
# allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough<s/>
# <u>underline</u>
#
# for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
./khepri backup hashing !10148
2014/05/03 13:30:16 archiving dir "hashing"
2014/05/03 13:30:16 dir "hashing": 4 entries
2014/05/03 13:30:16 tree for "hashing" saved at bd76151390456301f80540e37a73e7c19ec7db60ad85c8832cf7a3d60b35e0b3
"hashing" archived as bd76151390456301f80540e37a73e7c19ec7db60ad85c8832cf7a3d60b35e0b3
% tree khepri-backup !10153
khepri-backup
├── objects
│   ├── 22a19eafb8c1a5a7de8bd703325e0ea94570ad8a9cc5c2ef886d47e6fdda958d
! Map caps lock to escape
remove Lock = Caps_Lock
!keysym Caps_Lock = Escape
keycode 66 = Escape Multi_key Multi_key Multi_key
keycode 9 = Menu
// gsftp implements a simple sftp client.
//
// gsftp understands the following commands:
//
// List a directory (and its subdirectories)
// gsftp ls DIR
//
// Fetch a remote file
// gsftp fetch FILE
//
@fd0
fd0 / xtime
Created February 21, 2015 12:31
#!/bin/sh
/usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@"
" vim:foldmethod=marker
"
" global pentadactyl configuration {{{1
"==========================================================
" always hide tabline
set showtabline=never
" do not automatically follow matching hints
set followhints=1
" transliterate chars before using for hint
go test -v -run x -bench BenchmarkArchiveDirectory -test.benchdir ~/shared/work/atmel -benchmem -benchtime 60s | tee /tmp/before
go test -v -run x -bench BenchmarkArchiveDirectory -test.benchdir ~/shared/work/atmel -benchmem -benchtime 60s | tee /tmp/after
benchcmp /tmp/{before,after}
$ go test -v -run x -bench BenchmarkArchiveDirectory -test.benchdir ~/shared/work/atmel -benchmem | tee /tmp/before
PASS
BenchmarkArchiveDirectory 1 17773369603 ns/op 3190812944 B/op 2338570 allocs/op
--- BENCH: BenchmarkArchiveDirectory
archiver_test.go:129: snapshot archived as b61d90df75ee61602ea4cab2dc680dcd96175e26e66affeaa60471a0f0a8847e
ok github.com/restic/restic 17.783s
$ go test -v -run x -bench BenchmarkArchiveDirectory -test.benchdir ~/shared/work/atmel -benchmem | tee /tmp/after
PASS
package main
import (
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"sync"
)