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 / 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"}]
@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 / 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
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
#!/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
@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>