Skip to content

Instantly share code, notes, and snippets.

Christian Kirkegaard kirkegaard

Block or report user

Report or block kirkegaard

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
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
];
View grid.html
<!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 Feb 16, 2015
Check if user exists in one or more groups in Apple ldap tree
View ldapconn.php
<?php
$ldapuser = 'user';
$ldappass = 'pass';
// Required groups
$groups = array('cn=group1', 'cn=group2');
// Ldap stuff
$directory = 'directory.example.dk';
View osx-for-hackers.sh
#!/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'
View full-ffmpeg.sh
# 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
View anonfunc.php
<?php
class myObj
{
public function a($args1)
{
return function($args2) use ($args1) {
return array_merge($args1, $args2);
};
}
@kirkegaard
kirkegaard / yang_combos.md
Created Feb 11, 2014
Super Street Fighter 4: Arcade Edition - Yang Trials
View yang_combos.md

Yang Trials

  • rekka x3
  • h.palm
  • command grab
  • super
  • ultra 1
  • ultra 2
  • lp > cr.hk
  • mp > cr.mp
@kirkegaard
kirkegaard / ssf4ae_trials.txt
Created Feb 11, 2014
Super Street Fighter 4: Arcade Edition - Community Trials
View ssf4ae_trials.txt
SUPER STREET FIGHTER IV: ARCADE EDITION
New Character Trials
Created by: Doopliss/DaDoppen
Table of contents:
1: Opening Words [OW]
You can’t perform that action at this time.