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 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]
View gist:5748085
{% if extra %}
<form action="{{ path('shortlist_create', {id: extra.id}) }}">
{% else %}
<form action="{{ path('shortlist_create') }}">
{% endif %}
View Auth.php
<?php
class Auth
{
protected $realm = 'My Realm';
protected $user = array();
protected $isAuthenticated = false;
protected $nonce = null;
protected $digest = null;
You can’t perform that action at this time.