Create a key pair and export the public key
gpg --gen-key # To create your key
gpg --export <your_id> > hazel-public.asc # To export your key to a file
Import someone else's public key. Sign and encrypt a file for them.
### MARKHAM'S NOTES: | |
# This Makefile includes the Arduino core sources. (Set ARDDIR here:) | |
ARDDIR = /d/arduino | |
# You should build a tiny Makefile for each of your projects and just declare a few | |
# things in it, then include this Makefile in it. Your Makefile should be in the same | |
# directory as your TARGET file (see below). | |
# | |
# Exemplia gratia: |
import smtplib | |
import cgi | |
FROM_ADDR = '' | |
TO_ADDR = '' | |
USERNAME = FROM_ADDR | |
PASSWORD = '' | |
LOG_DIR = '.' | |
print 'foo' |
# Here's a function to flatten an array of arbitrarily nested arrays of | |
# integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]. | |
# | |
# This was written for Ruby 2 | |
# | |
# Invoke this function by passing it the array to be flattened in the | |
# "input" argument and leaving the "output" argument nil. | |
# | |
# E.g. | |
# >> recursive_flatten([[1,2,[3]],4]) |
# Usage: | |
# curl https://gist.githubusercontent.com/entrity/5462105/raw/..linux-setup.sh | bash | |
# Installs | |
# - .gitconfig | |
# - .ssh/config | |
# - .bash_aliases | |
src=https://gist.githubusercontent.com/entrity/5462105/raw | |
wget -O ~/.gitconfig $src/.gitconfig |
Create a key pair and export the public key
gpg --gen-key # To create your key
gpg --export <your_id> > hazel-public.asc # To export your key to a file
Import someone else's public key. Sign and encrypt a file for them.
self
and class
to designate a member function#!/usr/bin/python2 | |
# Toggle the "immutable" flag on a file. This flag will prevent you from | |
# removing or rewriting a file, even if you have permissions or or root. | |
# Usage: | |
# $0 <filepath> [on|off] | |
# $0 <dirpath> [on|off] | |
# If the argument is a file and no second argument (on/off) is given, then |
sqlite> select * from notes; | |
1|MTUxNjc2OTYw|1342697561419|1516769609|-1||Chinese fooddim sum|Chinese food|3355160037|0| | |
2|MTUxNjc2OTYw|1342697561419|1516769609|-1||Korean foodbulgogi|Korean food|2729990631|0| | |
sqlite> select * from cards; | |
1|1|1|0|1516769609|-1|0|0|484332854|0|0|0|0|0|0|0|0| | |
2|2|1|0|1516769609|-1|0|0|484332854|0|0|0|0|0|0|0|0| | |
sqlite> select * from col; | |
1|1332961200|1398130163295|1398130163168|11|0|0|0|{"nextPos":1,"estTimes":true,"activeDecks":[1],"sortType":"noteFld","timeLim":0,"sortBackwards":false,"addToCur":true,"curDeck":1,"newBury":true,"newSpread":0,"dueCounts":true,"curModel":"1398130163168","collapseTime":1200}|{"1342697561419":{"vers":[],"name":"Basic","tags":[],"did":1398130078204,"usn":-1,"req":[[0,"all",[0]]],"flds":[{"name":"Front","rtl":false,"sticky":false,"media":[],"ord":0,"font":"Arial","size":12},{"name":"Back","rtl":false,"sticky":false,"media":[],"ord":1,"font":"Arial","size":12}],"sortf":0,"latexPre":"\\documentclass[12pt]{article}\n\\special{papersize=3in,5in}\n\\u |
This is a user script for Chrome. It provides hotkeys for two modes of dictation (replacement and insertion).
The included shell script was used when I was looking at doing this with a bookmarklet.
[Desktop Entry] | |
Name=My Timer | |
Exec=/home/markham/scripts/timer.py | |
Icon=/usr/share/icons/cute.jpg | |
Type=Application | |
Terminal=false | |
StartupNotify=true | |
Categories=GTK;GNOME;Utility; |