Skip to content

Instantly share code, notes, and snippets.

View rasschaert's full-sized avatar

Kenny Rasschaert rasschaert

View GitHub Profile
@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"
@rasschaert
rasschaert / fritzing-0.8.7b.linux.AMD64.tar.bz2-to-rpm.bash
Last active August 29, 2015 13:56
Creates an RPM package for Fritzing. Fedora only ships with 0.8.3b.
#!/bin/bash
echo "Creating directory structure"
mkdir -p ./tmproot/opt
mkdir -p ./tmproot/usr/local/bin
mkdir -p ./tmproot/usr/share/applications
mkdir -p ./tmproot/usr/share/icons/{hicolor,gnome}
echo "Downloading archive"
wget http://fritzing.org/download/0.8.7b/linux-64bit/fritzing-0.8.7b.linux.AMD64.tar.bz2
@rasschaert
rasschaert / saltycentos-6-5.json
Last active August 29, 2015 13:59
Packer template for CentOS 6.5 with Salt Stack
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"iso_url": "/home/kenny/Downloads/CentOS-6.5-x86_64-bin-DVD1.iso",
"iso_checksum_type": "none",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"guest_additions_mode": "attach",
INFO global: Vagrant version: 1.6.0
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.0/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Linux"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="debug"
@rasschaert
rasschaert / repoquery.log
Created May 6, 2014 19:27
Salt debug repoquery output
2ping_|-noarch
389-admin_|-i686
389-admin_|-x86_64
389-admin-console_|-noarch
389-admin-console-doc_|-noarch
389-adminutil_|-i686
389-adminutil_|-x86_64
389-adminutil-devel_|-i686
389-adminutil-devel_|-x86_64
389-console_|-noarch
[global_config]
title_transmit_fg_color = "#f2f0ec"
title_inactive_fg_color = "#2d2d2d"
title_receive_bg_color = "#6699cc"
title_transmit_bg_color = "#f2777a"
title_receive_fg_color = "#f2f0ec"
title_inactive_bg_color = "#d3d0c8"
[keybindings]
[profiles]
[[default]]
@rasschaert
rasschaert / eclipse-4.4.1-to-deb.sh
Created October 12, 2014 18:52
Eclipse 4.4.1 packaging script
#!/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/256x256/apps
mkdir -p ./tmproot/usr/share/icons/gnome/256x256/apps
mkdir -p ./tmproot/opt/
cd ./tmproot/opt
echo "Downloading tarball"
@rasschaert
rasschaert / .gitconfig
Last active September 29, 2015 13:08
My .gitconfig
[user]
name = Kenny Rasschaert
email = kenny@inuits.eu
[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:~/