Skip to content

Instantly share code, notes, and snippets.

Christian Kirkegaard kirkegaard

View GitHub Profile
View m2embed.php
<?php
$title = (isset($_GET['t'])) ? $_GET['t'] : false;
$content = (isset($_GET['s'])) ? $_GET['s'] : false;
$providers = [
'drop' => [
'regex' => '/https?:\/\/files\.m2film\.dk\/(.*)/',
'embed' => '<video controls src="https://files.m2film.dk/{code}&video=true"></video>',
],
View reddit_subscription.py
import requests
import praw
import time
import sqlite3
from urllib.request import pathname2url
class Subscriptions():
subscriptions = []
@kirkegaard
kirkegaard / app.py
Last active Jul 31, 2018
Subscribe to multiple channels using Pusher and post to Discord
View app.py
import requests
import pysher
import time
import json
appkey = '50ed18dd967b455393ed'
endpoint = '...'
auth = '...'
subscriptions = []
View switch.py
from random import randint
def s(x):
return {
0: 'foo',
1: 'bar',
2: 'flaf',
3: 'giraf'
}.get(x, 'none')
View Keybase.md

Keybase proof

I hereby claim:

  • I am kirkegaard on github.
  • I am kirkegaard (https://keybase.io/kirkegaard) on keybase.
  • I have a public key ASCKTdBoszA_5mo7JdyTaHv2KmsTbwYbecYy87wE29Jv4Ao

To claim this, I am signing this object:

View mpv.log
v cplayer Run command: loadfile, flags=0, args=[test.webm, append, ]
v cplayer Set property: playlist-pos="0" -> 1
v global config path: 'watch_later' -> '-'
info cplayer Playing: test.webm
v file Opening test.webm
v file Stream opened successfully.
[{'filename': b'test.webm', 'current': True, 'playing': True}]
v demux Trying demuxers for level=normal.
debug demux Trying demuxer: disc (force-level: normal)
trace file seek to 0
View mpv.log
This file has been truncated, but you can view the full file.
v cplayer Run command: loadfile, flags=0, args=[/Users/christian/Movies/watch/file01.mp4, append, ]
v cplayer Run command: loadfile, flags=0, args=[/Users/christian/Movies/watch/file02.mp4, append, ]
v cplayer Set property: playlist-pos="0" -> 1
v global config path: 'watch_later' -> '-'
info cplayer Playing: /Users/christian/Movies/watch/file01.mp4
v file Opening /Users/christian/Movies/watch/file01.mp4
v file Stream opened successfully.
v demux Trying demuxers for level=normal.
[{'filename': b'/Users/christian/Movies/watch/file01.mp4', 'current': True, 'playing': True}, {'filename': b'/Users/christian/Movies/watch/file02.mp4'}]
View init.vim
"
" ~/.config/nvim/init.vim
"
" Plugins
let g:plugins_file_path = '~/.vim/plugins.vim'
if filereadable(expand(g:plugins_file_path))
exe ':source ' . g:plugins_file_path
endif
View japan.mdown

Japan

Before you go

You can do a lot before you actually go! Like renting an internet dongle, grab tickets for the places you want to go or simply place stars on a google map. Its a good idea to plan where you want to go. Everything is huge so you'll wanna plan out before going out. And remember to drink a lot of water!

Internet

I cant stress this enough. Get an internet dongle! You can get these all around but look through the internet for cheap dongles. You can get these in the airport but its pretty expensive and the dataplans aint that good.

View ddd.js
var flairColor = [
'#e50000', // red
'#db8e00', // orange
'#ccc100', // yellow
'#02be01', // green
'#0083c7', // blue
'#820080' // purple
];
You can’t perform that action at this time.