Skip to content

Instantly share code, notes, and snippets.

View folkengine's full-sized avatar
😈
Living in interesting times.

Christoph folkengine

😈
Living in interesting times.
View GitHub Profile
@folkengine
folkengine / PropertyManualXML_3.1.xml
Created September 10, 2012 16:46 — forked from eugenp/PropertyManualXML_3.1.xml
Properties with Spring - Register Property manually in XML with Spring 3.1
<bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:foo.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
#!/usr/bin/env bash
# Written by William Ting for the following blog post:
# http://williamting.com/posts/2012/04/18/set-up-python-and-django-on-dreamhost/
rcfile="${HOME}/.bashrc"
version="2.7.5"
setuptools_version="2.7"
tmp_dir="${HOME}/tmp-${RANDOM}"
if [[ ${#} == 0 ]]; then
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@folkengine
folkengine / tmux-cheatsheet.markdown
Last active July 28, 2016 13:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@folkengine
folkengine / install_chromedriver.sh
Last active July 28, 2016 13:53 — forked from natritmeyer/install_chromedriver.sh
Install Chromedriver
wget http://chromedriver.storage.googleapis.com/2.14/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo cp chromedriver /usr/bin/chromedriver
sudo chown root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
sudo chmod 755 /usr/bin/chromedriver
@folkengine
folkengine / playground.rs
Created September 21, 2015 16:57 — forked from anonymous/playground.rs
Shared via Rust Playground
struct ModGuard {
val: u32,
display: &'static str
}
fn get_fizzbuzz_guards() -> Vec<ModGuard> {
vec![
ModGuard{val: 3, display: "Fizz"},
ModGuard{val: 5, display: "Buzz"}]
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
x.......Close the current nodes parent...........................|NERDTree-x|
@folkengine
folkengine / eqc.md
Last active July 22, 2016 19:33 — forked from efcasado/eqc.md
A gentle introduction to (Erlang) QuickCheck

Erlang QuickCheck

What is QuickCheck?

QuickCheck is a language for stating properties of programs.

?FORALL(X, nat(), X*X >= 0)
package main
import (
"net/http"
"database/sql"
"fmt"
"log"
"os"
)
@folkengine
folkengine / install.bash
Created September 4, 2017 14:20 — forked from nnarain/install.bash
setup virtual can bus linux
#!/bin/bash
# install can-utils
git clone https://github.com/linux-can/can-utils.git
cd can-utils
./autogen.sh
./configure
make
sudo make install