Skip to content

Instantly share code, notes, and snippets.

View rasschaert's full-sized avatar

Kenny Rasschaert rasschaert

View GitHub Profile
@rasschaert
rasschaert / .gitconfig
Last active September 29, 2015 13:08
My .gitconfig
[user]
name = Kenny Rasschaert
email = [email protected]
[core]
editor = vi
autocrlf = input
safecrlf = true
pager = less -F -X
@rasschaert
rasschaert / Preferences.sublime-settings
Created November 28, 2012 07:05
My Preferences.sublime-settings
{
"font_face": "DejaVu Sans Mono",
"font_size": 10,
"color_scheme": "Packages/Color Scheme - Default/Spectacular.tmTheme",
"theme": "Phoenix Dark.sublime-theme"
"phoenix_color_expanded_folder": true,
"phoenix_color_red": true,
"phoenix_dirty_bottom_bar": true,
"phoenix_eighties": true,
"phoenix_highlight_current_tab": true,
@rasschaert
rasschaert / oneliners.bash
Last active October 13, 2015 08:37
Bash oneliners
######################################
# Collection of handy bash oneliners #
######################################
# License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/)
# To the extent possible under law, Kenny Rasschaert has waived all copyright and related or neighboring rights to Bash oneliners.
# This work is published from: Belgium.
# fast rsync
rsync -av --compress-level=9 --progress -e 'ssh -C -c arcfour256,arcfour128,arcfour,blowfish-cbc' /home/user/stuff remote:~/
@rasschaert
rasschaert / README.md
Last active December 17, 2015 19:19
Cylon Centurion / KITT

Cylon Centurion / KITT in Arduino

About

This Arduino sketch controls a series of ten leds similar to the visor of a Cylon Centurion or Knight Rider's car, KITT. Pressing the button cycles through different speed settings.

Cylon KITT

@rasschaert
rasschaert / Vagrantfile
Last active December 19, 2015 11:19
An example Vagrantfile with settings I often use.
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
###############################################################################
# Base box #
###############################################################################
config.vm.box = "chef/centos-6.5"
@rasschaert
rasschaert / Avengrant.bash
Last active February 8, 2019 15:42
Some superhero-themed bash functions for making interaction with Vagrant more fun. Just place these in your ~/.bashrc
# Alternative to vagrant destroy
# Example usage: $> hulk smash -f vm1
hulk() {
if [[ $1 == "smash" ]]; then
shift
vagrant destroy $@
fi
}
# When you use caps, -f is implied
# Example usage: $> HULK SMASH
@rasschaert
rasschaert / nsq-0.2.24.linux-amd64.go1.2.tar.gz-to-rpm.bash
Last active January 3, 2016 12:39
Creates an RPM package for NSQ (distributed messaging platform written in Golang). Tested on CentOS 6 x86_64 with EPEL and Golang 1.2.
#!/bin/bash
echo 'Downloading pre-built binaries'
wget https://s3.amazonaws.com/bitly-downloads/nsq/nsq-0.2.24.linux-amd64.go1.2.tar.gz
echo 'Extracting archive'
tar xzf nsq-0.2.24.linux-amd64.go1.2.tar.gz
echo 'Creating correct directory structure'
mkdir -p nsq-0.2.24.linux-amd64.go1.2/usr/local/
mv nsq-0.2.24.linux-amd64.go1.2/{bin,share} nsq-0.2.24.linux-amd64.go1.2/usr/local/
@rasschaert
rasschaert / pycharm-community-3.0.2.tar.gz-to-rpm.bash
Last active February 6, 2024 12:27
Creates an RPM package for PyCharm Community Edition
#!/bin/bash
echo "Creating directory structure"
mkdir -p ./tmproot/usr/local/bin
mkdir -p ./tmproot/usr/share/applications
mkdir -p ./tmproot/usr/share/icons/hicolor/128x128/apps
mkdir -p ./tmproot/usr/share/icons/gnome/128x128/apps
mkdir -p ./tmproot/opt/
cd ./tmproot/opt
echo "Downloading tarball"
@rasschaert
rasschaert / sublime_text_3_build_3059_x64.tar.bz2-to-rpm.bash
Last active January 3, 2016 19:29
Creates an RPM package for Sublime Text 3 beta
#!/bin/bash
echo "Creating directory structure"
mkdir -p ./tmproot/usr/bin
mkdir -p ./tmproot/usr/share/applications
mkdir -p ./tmproot/usr/share/icons/hicolor
mkdir -p ./tmproot/usr/share/icons/gnome
mkdir -p ./tmproot/opt/
echo "Downloading archive"
cd ./tmproot/opt
@rasschaert
rasschaert / gitsh-0.3.tar.gz-to-rpm-and-deb.bash
Created February 10, 2014 13:09
Creates RPM and Debian packages for gitsh.
#!/bin/bash
DIRECTORY=$(cd $(dirname $0) && pwd)
ARCH=$(uname -m)
echo "Downloading archive"
curl -O http://thoughtbot.github.io/gitsh/gitsh-0.3.tar.gz
echo "Extracting archive"
tar -zxf gitsh-0.3.tar.gz
echo "Preparing for compilation"