Skip to content

Instantly share code, notes, and snippets.

@dragan
dragan / bootstrap.sh
Created August 8, 2015 19:01
Bootstrap a new X1 Carbon with Arch Linux
#!/usr/bin/env zsh
# ----------------------------------------------------------------------
# Setting font to something more readable
# ----------------------------------------------------------------------
echo "Set font to something more readable"
setfont sun12x22
# ----------------------------------------------------------------------
# Partitioning
@dragan
dragan / mono.sh
Created November 26, 2013 21:20
Mono Packer
#!/bin/bash
apt-get autoremove -y mono-complete
apt-key adv --keyserver keyserver.ubuntu.com --recv 23DC003A
echo deb http://ppa.launchpad.net/directhex/monoxide/ubuntu precise main > /etc/apt/sources.list.d/directhex-monoxide-ubuntu.list
echo deb-src http://ppa.launchpad.net/directhex/monoxide/ubuntu precise main >> /etc/apt/sources.list.d/directhex-monoxide-ubuntu.list
apt-get update
@dragan
dragan / build.libgit2sharp.mac.sh
Created November 7, 2013 20:42
LibGit2Sharp Changes
#!/bin/bash
PREVIOUS_DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH
LIBGIT2SHA=`cat ./LibGit2Sharp/libgit2_hash.txt`
SHORTSHA=${LIBGIT2SHA:0:7}
rm -rf cmake-build
mkdir cmake-build && cd cmake-build
@dragan
dragan / anti-harassment-policy.md
Created March 2, 2013 02:04
MonkeySpace anti-harassment policy created in collaboration with the community.

MonkeySpace is dedicated to providing a harassment-free conference experience for everyone regardless of gender, sexual orientation, disability, physical appearance, body size, race, or religion. We do not tolerate harassment of conference participants in any form. Sexual language and imagery is not appropriate for any conference venue, including talks. Conference participants violating these rules may be sanctioned or expelled from the conference [without a refund] at the discretion of the conference organizers.

Harassment includes offensive verbal comments related to gender, sexual orientation, disability, physical appearance, body size, race, religion, sexual images in public spaces, deliberate intimidation, stalking, following, harassing photography or recording, sustained disruption of talks or other events, inappropriate physical contact, and unwelcome sexual attention. Participants asked to stop any harassing behavior are expected to comply immediately.

Exhibitors in the expo hall, sponsor or vendor

@dragan
dragan / mulder-compile-ignore.cs
Created August 16, 2012 22:18
Mulder Ignore Sample
// If you have an item named about.html this, is how you would ignore it
Compile("/about/", (context) => {
// Don't filter this item
});
// If you have a folder named about, this is how you would ignore it
Compile("/about/*", (context) => {
// Don't filter this item
@dragan
dragan / install-mulder.sh
Created July 10, 2012 17:35
Simple script I put together to create a script wrapper for mulder and install it in /usr/local
#!/usr/bin/env sh
set -e
# Respect PREFIX if set, otherwise default to /usr/local
if [ -z "${PREFIX}" ]; then
PREFIX="/usr/local"
fi
BIN_PATH="${PREFIX}/bin"
@dragan
dragan / RootModuleTests
Created May 20, 2012 10:44
NancyException
using System;
using Nancy;
using Nancy.Testing;
using Xunit;
using NancySandbox;
namespace NancySandbox.Tests.Modules
{
@dragan
dragan / Rules
Created May 10, 2012 21:27
Another idea.
compile '*' do
filter 'liquid'
layout 'default'
end
@dragan
dragan / Rules
Created May 10, 2012 21:19
Mulder Rules
Compile("*", (rule) => {
rule.Layout("default");
rule.Filter("Liquid");
});
or
Compile("*", (rule) => {
rule.Layout = "default";
rule.Filter = "Liquid";
@dragan
dragan / CompilerDSL.cs
Created May 10, 2012 21:04
A simple DSL in C#.
using System;
using System.Collections.Generic;
using System.Text;
using Mono.CSharp;
namespace CompilerDsl
{
class EntryPoint
{