Skip to content

Instantly share code, notes, and snippets.

View kirkegaard's full-sized avatar

Christian Kirkegaard kirkegaard

View GitHub Profile
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
@kirkegaard
kirkegaard / mpv.log
Created July 11, 2017 23:30
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'}]
debug demux Trying demuxer: disc (force-level: normal)
"
" ~/.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

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.

var flairColor = [
'#e50000', // red
'#db8e00', // orange
'#ccc100', // yellow
'#02be01', // green
'#0083c7', // blue
'#820080' // purple
];
<!doctype html>
<html>
<head>
<title>hello world</title>
<style>
body, html {
margin: 0px;
padding: 0px;
}
p { border: 1px solid red; }
@kirkegaard
kirkegaard / ldapconn.php
Created February 16, 2015 22:32
Check if user exists in one or more groups in Apple ldap tree
<?php
$ldapuser = 'user';
$ldappass = 'pass';
// Required groups
$groups = array('cn=group1', 'cn=group2');
// Ldap stuff
$directory = 'directory.example.dk';
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
# Add multimedia source
echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
apt-get update
apt-get install deb-multimedia-keyring # if this aborts, try again
apt-get update
# Go to local source directory
cd /usr/local/src
<?php
class myObj
{
public function a($args1)
{
return function($args2) use ($args1) {
return array_merge($args1, $args2);
};
}