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
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@folkengine
folkengine / gist:a2c42183e23c36dbcfc7
Last active August 29, 2015 14:07
XUbuntu Setup
mkdir ~/tmp
cd ~/tmp
sudo apt-get update
# sudo apt-get update & sudo apt-get upgrade
# GIT
sudo apt-get install git
git config --global user.name "Chris Baker"
git config --global user.email [email protected]
@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 / gist:d45c1b1fafd62ebc4106
Last active July 18, 2019 17:32
Ubuntu 15.04 R, Rust, PostGIS and stuff
sudo apt-get update
# docker
curl -sSL https://get.docker.com/ | sh
adduser dev
visudo
su dev
usermod -aG docker dev
# R
@folkengine
folkengine / embed.rb
Last active July 28, 2016 13:53
Example of a cross-platform ffi embed in Ruby
require 'rbconfig'
require 'ffi'
include RbConfig
# Example of a cross-platform ffi embed in Ruby.
module Hello
extend FFI::Library
if CONFIG['host_os'] =~ /linux/i
ffi_lib 'target/release/libembed.so'
@folkengine
folkengine / Enabling_Julia_in_Jupyter.md
Last active July 28, 2016 13:53
Enabling Julia in Lupyter

Install and run the docker Jupyter Notebook Data Science Stack

$> docker run -d -p 8888:8888 jupyter/datascience-notebook

From Jupyter create a new Terminal.

Start Julia

$> julia -p 4

@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"}]