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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Kenny Rasschaert | |
email = [email protected] | |
[core] | |
editor = vi | |
autocrlf = input | |
safecrlf = true | |
pager = less -F -X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################### | |
# 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:~/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
OlderNewer