Skip to content

Instantly share code, notes, and snippets.

Florian Baumann noqqe

Block or report user

Report or block noqqe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@noqqe
noqqe / blockingheiko.py
Created Feb 20, 2019
A spike to test reading from 2 sources in parallel without blocking
View blockingheiko.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import signal
import threading
import time
def login():
k = threading.Thread(target=keyboard)
r = threading.Thread(target=rfid)
View instabehrliches.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import html
import feedparser
import datetime
import random
import urllib.request
from PIL import Image, ImageDraw, ImageFont
@noqqe
noqqe / gpx-visualization-per-year.R
Last active May 16, 2018
Visualize each year of your Strava activities individually
View gpx-visualization-per-year.R
library(plotKML)
library(maps)
library(ggmap)
# Settings
activities_folder = "/Users/noqqe/Downloads/activities/"
output_folder = "/Users/noqqe/Downloads/"
center_map_on = "Nuremberg"
zoom_depth = 8 # 1 - 21
routes_color = "#FF000022"
@noqqe
noqqe / get_wifi_hosts.py
Last active Jan 20, 2018
Query Ubiquiti Picostation for active Wifi Hosts
View get_wifi_hosts.py
import requests
import warnings
import json
warnings.filterwarnings('ignore', 'Unverified HTTPS request')
loginurl='https://192.168.178.X/login.cgi'
s = requests.Session()
@noqqe
noqqe / gpx-visualization.R
Created May 3, 2017
Visualize gpx tracks from a folder on a picture from google maps.
View gpx-visualization.R
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"
@noqqe
noqqe / isso2yaml.py
Last active Dec 31, 2016
isso2yaml for markdown blogposts
View isso2yaml.py
#!/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/'
@noqqe
noqqe / insta2pin.py
Created Dec 11, 2016
Instapaper to Pinboard Conversion Script
View insta2pin.py
#!/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:
@noqqe
noqqe / fontmatter-hugo-post-converter
Last active Feb 24, 2017
Restructuring the metadata of my blog with frontmatter
View fontmatter-hugo-post-converter
#!/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')
@noqqe
noqqe / archivist.py
Last active Oct 31, 2016
Fetches images from http://gatherer.magic.com and saves them to local disk
View archivist.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from bs4 import BeautifulSoup
import requests
import urllib
import argparse
ap = argparse.ArgumentParser()
@noqqe
noqqe / linx-hard-expire.diff
Created Sep 15, 2016
linx-hard-expire.diff
View linx-hard-expire.diff
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")
You can’t perform that action at this time.