This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(plotKML) | |
library(maps) | |
library(ggmap) | |
# Settings | |
activities_folder = "/Users/noqqe/Downloads/activities/" | |
center_map_on = "Plech" | |
zoom_depth = 9 # 1 - 21 | |
routes_color = "#FF000022" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
import frontmatter | |
import glob | |
import codecs | |
import sqlite3 as lite | |
home = '/Users/noqqe/Code/noqqe.de/content/blog/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
import json | |
from datetime import datetime | |
import csv | |
l = csv.reader(open('instapaper-export.csv','rb'), delimiter=',') | |
pins = [] | |
for link in l: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
# -*- coding: utf-8 -*- | |
import frontmatter | |
import glob | |
import codecs | |
home = '/home/noqqe/Code/noqqe.de/content/blog/' | |
files = glob.glob(home + '*.md') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
from bs4 import BeautifulSoup | |
import requests | |
import urllib | |
import argparse | |
ap = argparse.ArgumentParser() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/upload.go b/upload.go | |
index b0bbd9f..0d66326 100644 | |
--- a/upload.go | |
+++ b/upload.go | |
@@ -67,7 +67,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) { | |
if r.Form.Get("randomize") == "true" { | |
upReq.randomBarename = true | |
} | |
- upReq.expiry = parseExpiry(r.Form.Get("expires")) | |
+ upReq.expiry = parseExpiry("172800") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
# -*- coding: utf-8 -*- | |
import nacl.secret | |
import nacl.utils | |
import base64 | |
from pyblake2 import blake2b | |
import getpass | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from phue import Bridge | |
import random | |
import time | |
### Docs | |
# 1. Initales pairen Link button druecken und | |
# innerhalb 30 Sekunden ausfuehren | |
# 2. Im moment nur aus der K4CG Triggerbar. | |
# 3. Kein IPv6 auf der Bridge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
from simplecrypt import encrypt, decrypt | |
import getpass | |
# read inputs | |
msg = raw_input('Message: ') | |
pw = getpass.getpass('Password: ') | |
ciphertext = encrypt(pw, msg) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
""" bm 1.0.0 | |
Usage: | |
bm list | |
bm search <pattern> | |
bm add <url> <tags>... [--date=<date>] | |
bm stats | |
bm tags |