Skip to content

Instantly share code, notes, and snippets.

@gerv
gerv / tomboy_to_simplenote.py
Last active June 15, 2017 05:48
Hacky script to use desktop scripting to move notes from Tomboy to Simplenote
# This script works with autokey - https://github.com/autokey/autokey/
# Define a hotkey (e.g. F12), make sure the Tomboy "Search All Notes" window and the Simplenote window are open
# Then just keep hitting F12. One note will be imported each time.
# Note: no formatting is preserved :-(
def activate_tomboy():
window.activate("Search All Notes")
time.sleep(0.25)
def open_next_tomboy_note():
keyboard.send_key("<down>")
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCsZ+3jQqOMSilAxWY2JQQ6FX/AukYH9pefjBO3hWarC4/xL+HDmXupSdzTEWp7LD9Yc/QHwhsRMIRrYUe98y++oPKc3dQ0Wnja7yTPCLwtqroYM5HFEKsLNU/F5gK3QkAT4niDJYjYkBbas3QjO8KVcBg5/l6B28D8N/sCmHo3WRaLb0+RnxNkw57MNnV8jG0+/F8UE49aW5N/YCngrhsZ+inxzBlE2VHtHaohYZec2PYbhrefKTTCUczAqQnK807JF71xjkqgnsduBNLWAycvRkaEQoNKoUURcf1cpILG6iU7D+AzHeY/8Ryw5OewBG15HnoPgOC2imFlcBEI7d+6hy74glQWv7UNiKj8x/6wiXxULj2nfoGUF9cQXWJi/40sDVA1imEV2M4s00sLZJ8x/+uDpECsM+8uu+fkze1s5jweLiYFZF2G2+rbeF8okx97QAsqRTw1Fyquey8LMF8cqQy0wB5ON/bac+kmEyN4dTush1g7QnozWjjSY1ap2H71P8wdF/NM/6V9XTzWu1kcAAijvX+zRQ2QOsAxsJ2ufZN1N3TTlO4VBQ5stWuC1losFXM3BlD3ZDT8N/ICYu5FgICZSstsAoobrPEsBTzjjznp+Xg7ukwlQPUwuuCnmLshh/pjTBEieGCBI5iicvC8+44dSS0KoRyqoUz6hPA13Q== gerv@hare
@gerv
gerv / en-cps-4.1-to-4.3A.diff
Created November 15, 2016 11:35
GDCA CPS diff, 4.1 to 4.3A
--- original-english-cps-4.1.txt 2016-11-15 10:52:57.541218549 +0000
+++ first-updated-cps-4.3.txt 2016-11-15 10:53:25.121217361 +0000
@@ -4,12 +4,12 @@
-Guangdong Certificate Authority CO.,
-LTD
+Global Digital Cybersecurity Authority
+CO., LTD.
@gerv
gerv / WoSignSerialNumberTest.java
Created September 21, 2016 12:42
Test harness to show distribution of top nybble for serial number generation code from WoSign
import java.math.BigInteger;
import java.security.SecureRandom;
class WoSignSerialNumberTest {
public static void main(String[] args) {
int[] nibbles = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
for (int i = 0; i < 100000; i++)
{
String serial = createSerialNumber();
Verifying that +gerv is my Bitcoin username. You can send me #bitcoin here: https://onename.io/gerv