Skip to content

Instantly share code, notes, and snippets.

@crilleengvall
crilleengvall / alias
Last active April 15, 2018 16:34
Undo a commit and aliasing it to 'git undo'
git config --global alias.undo 'reset --soft HEAD^'
@crilleengvall
crilleengvall / alias
Last active April 8, 2018 10:39
Git un-apply a stash
git config --global alias.stash-unapply '!git stash show -p | git apply -R'

Keybase proof

I hereby claim:

  • I am crilleengvall on github.
  • I am crillst (https://keybase.io/crillst) on keybase.
  • I have a public key ASBbab1QYRaiTBpot2XStN2-1hIOhWrFLi2mBRxho1rhRQo

To claim this, I am signing this object:

@crilleengvall
crilleengvall / default-namespaced.xml
Last active December 17, 2015 13:49
Default namespaced xml and xpath
<?xml version="1.0"?>
<bookstore xmlns="urn:xmlns:25hoursaday-com:bookstore">
<book>
<title>Lord of the Rings</title>
<author>J.R.R. Tolkien</author>
</book>
</bookstore>
@crilleengvall
crilleengvall / index.php
Created May 15, 2013 12:03
Feature troubleshoot
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
@crilleengvall
crilleengvall / gemfile
Last active December 15, 2015 20:59
Updating ruby version
ruby '1.9.3'
@crilleengvall
crilleengvall / boxfile-example
Last active December 14, 2015 17:09
Boxfile example
web1:
################################################
## GENERAL SETTINGS
################################################
shared_writable_dirs:
- app/cache
- app/logs
################################################
## WEB SPECIFIC SETTINGS
@crilleengvall
crilleengvall / index.html
Created January 8, 2013 13:51
Hello world for static:html iframe tabs for facebook
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="sv">
<head>
<title>Something</title>
[[style.css]]
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div class="crappyredtext">Hello world!</div>
@crilleengvall
crilleengvall / createhotfixbranch
Created November 15, 2012 22:01
Git commands....
$ git checkout -b hotfix-1.2.1 master
Switched to a new branch "hotfix-1.2.1"
$ ./bump-version.sh 1.2.1
Files modified successfully, version bumped to 1.2.1.
$ git commit -a -m "Bumped version number to 1.2.1"
[hotfix-1.2.1 41e61bb] Bumped version number to 1.2.1
1 files changed, 1 insertions(+), 1 deletions(-)
@crilleengvall
crilleengvall / CacheExample.cs
Created September 16, 2012 19:43
A wrapper around HttpRuntime.Cache
string simpleString = "this string will be cached";
HttpRuntimeCache cache = new HttpRuntimeCache();
cache.Add("simpleString", simpleString);
string fromCache = cache.Get("simpleString") as string;
cache.Remove("simpleString");