Skip to content

Instantly share code, notes, and snippets.

@jhelgert
jhelgert / channels.conf
Last active October 27, 2016 19:33
Configuration files for VDR. Path on OpenElec: ~/.kodi/userdata/addon_data/service.multimedia.vdr-addon/config
:TV - FREE TV
Das Erste HD;ARD:11494:HC23M5O35P0S1:S19.2E:22000:5101=27:5102=deu@3,5103=mis@3;5106=deu@106:5104;5105=deu:0:10301:1:1019:0
ZDF HD;ZDFvision:11362:HC23M5O35P0S1:S19.2E:22000:6110=27:6120=deu@3,6121=mis@3,6123=mul@3;6122=deu@106:6130;6131=deu:0:11110:1:1011:0
RTL HD;CBC:10832:HC23M5O35P0S1:S19.2E:22000:255=27:0;259=deu@106:32;48=deu:1830,1843,1860,98C,9C4,186A:61200:1:1057:0
RTL Crime HD,RTL CrimeHD;SKY:11170:HC34M5O35P0S1:S19.2E:22000:255=27:0;259=deu@106,260=eng@106:32:9C4,98C:140:133:9:0
RTLNITRO HD;CBC:11082:HC34M5O20P0S1:S19.2E:22000:500=27:0;510=deu@106:520;550=deu:1830,1843,1860,9C4,98C,186A:11951:1:1041:0
RTLII HD;CBC:10832:HC23M5O35P0S1:S19.2E:22000:1535=27:0;1539=deu@106:37;54=deu:1830,1843,1860,98C,9C4,186A:61205:1:1057:0
SAT.1 HD;ProSiebenSat.1:11464:HC23M5O35P0S1:S19.2E:22000:255=27:0;259=deu@106:32:1830,1843,9C4,98C,1860,186A:61300:1:1017:0
SAT.1 Gold;ProSiebenSat.1:12545:HC56M2S0:S19.2E:22000:1279=2:1280=deu@3:36:0:17504:1:1107:0
ProSieben HD;ProSiebenSat.1:11464:HC23M5O35P0S1:S19.
@craigeley
craigeley / foursquare_reporter.rb
Last active July 27, 2017 23:27
This gist checks you into your most recent Foursquare location from the Reporter iOS app, if you aren't already checked in there. To read more, see http://verifyandrepair.com/02-26-2016/using-reporter-foursquare/
#!/usr/bin/env ruby
# Use Reporter as a Foursquare Client
# Assumes your Reports contain these two questions:
# "What are you doing?" and
# "Where are you?"
require 'time'
require 'json'
require 'net/http'
@chriscoyier
chriscoyier / gist:964905
Created May 10, 2011 17:05
Excellent Web People and their Personal Blogs
Yaron Schoen
http://yaronschoen.com/
http://www.yaronschoen.com/site/atom/
Oli Studholme
http://oli.jp/
http://oli.jp/articles.atom
Ben Bleikamp
http://www.bleikamp.com
anonymous
anonymous / local.conf
Created October 27, 2017 17:03
Nginx configuration for withKnown on top of mailinabox
# ...
upstream php-fpm {
server unix:/var/run/php5-fpm.sock;
}
#
server {
listen 443 ssl;
listen [::]:443 ssl;
@cleverdevil
cleverdevil / transform.py
Last active March 6, 2018 00:54
Transform Facebook JSON exports to MF2 JSON
#!/usr/bin/env python
'''
Usage:
./transform <path-to-facebook-export.json>
This will transform everything using granary and then place
individual files into a directory called "mf2."
@cleverdevil
cleverdevil / publish.py
Last active March 6, 2018 00:54
Import MF2 JSON selectively
#!/usr/bin/env python
'''
A script for quickly publishing MF2 content to a Micropub endpoint. To use this
script, first ensure that you have installed:
requests
You will also need to set the following environment variables:
@bobes
bobes / ril_to_instapaper.rb
Created April 13, 2011 06:18
Import your ReadItLater bookmarks into Instapaper
#!/usr/bin/env ruby
# 1. export your RIL bookmarks
# 2. save this file to the same directory where your ril_export.html is
# 3. change username and password in the script bellow
# 4. run 'ruby ril_to_instapaper.rb' in terminal
require "cgi"
require "net/http"
require "net/https"
@jdevalk
jdevalk / gist:5411371
Created April 18, 2013 09:12
NGINX rewrites for WordPress SEO XML Sitemaps
# Rewrites for WordPress SEO XML Sitemap
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
@troutcolor
troutcolor / postto-micro.blog.scpt
Last active April 12, 2019 02:10
This is a script for alfred to post to a WordPress, adding the category micro, post format status and as a note. There is no title. I use a hotkey cmd-alt-cnrl-m alfred passes the selected text in the topmost app to the script as q. I don't deal with special chars. Password hard coded is probably not a good idea. Obviously you could edit categor…
on alfred_script(q)
set myBlogUsername to "USERNAME"
set myBlogPass to "PASSWORD"
set cat to {category:{"Micro"}, kind:{"note"}}
set poststrut to {post_type:"post", post_status:"publish", post_format:"status", post_title:"", post_content:q, terms_names:cat, comment_status:"open"}
tell application "http://example.com/xmlrpc.php"
set myPosts to call xmlrpc {method name:"wp.newPost", parameters:{"1", myBlogUsername, myBlogPass, poststrut}}
return myPosts
end tell
end alfred_script