Skip to content

Instantly share code, notes, and snippets.

View jaclar's full-sized avatar

Lars Jacob jaclar

View GitHub Profile
@jaclar
jaclar / PKGBUILD
Created March 26, 2013 18:17
PKGBUILD for vagrant 1.1.4
# Maintainer: Jochen Schalanda <jochen+aur@schalanda.name>
# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
# Contributor: helios <aur@wiresphere.de>
pkgname=vagrant
pkgver=1.1.4
pkgrel=1
pkgdesc="Tool for building and distributing virtualized development environments"
arch=('i686' 'x86_64')
url="http://vagrantup.com/"
license=('MIT')
@jaclar
jaclar / keydrone.js
Created May 23, 2015 19:22
pequeño script para keypress con ar-drone
var keypress = require('keypress');
var arDrone = require('ar-drone');
var client = arDrone.createClient();
var SPEED = 0.1;
var flying = false;
// make `process.stdin` begin emitting "keypress" events
keypress(process.stdin);
@jaclar
jaclar / createTemplate.sh
Created August 31, 2016 22:42
A small script to create a Instance Group Template from a given instance in Google Compute Engine
#!/bin/bash
set -e
# #####
# PROUDLY COPY AND PASTED FROM STACK OVERFLOW
# #####
# Use -gt 1 to consume two arguments per pass in the loop (e.g. each
# argument has a corresponding value to go with it).
# Use -gt 0 to consume one or more arguments per pass in the loop (e.g.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/sh
TMPDIR=`mktemp -d`
WMTMPDIR=`mktemp -d`
INPUT=$1
WM=$2
if [ ! -d "$INPUT" ]; then
echo "Input Directory: '$INPUT' doesn't exist"