As configured in my dotfiles.
start new:
tmux
start new with session name:
import io | |
import six | |
from mock import patch | |
from six.moves import configparser as ConfigParser | |
data = """ | |
[section] | |
key = value | |
""" |
Instructions for ArchLinux | |
- Place btsync@.service in /etc/systemd/system | |
Then for each user: | |
- Create a .sync directory in the user's home directory | |
- Create a config file (eg: /usr/bin/btsync --dump-sample-config > ~/.sync/btsync.json) | |
- Change options: | |
"storage_path" : "/home/<username>/.sync" |
<?php | |
/** | |
* WaveFileReader; a simple class to read/parse WAVE file | |
* (c)2012 Rob Janssen / https://github.com/RobThree | |
* | |
* Based on https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ | |
* | |
* USAGE: | |
* | |
* $wav = WaveFileReader::ReadFile('/path/to/test.wav'); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/