Skip to content

Instantly share code, notes, and snippets.

View peel's full-sized avatar

Piotr Limanowski peel

View GitHub Profile
@uasi
uasi / vim.rb
Created November 30, 2010 16:46
Vim formula for Homebrew (EDIT: recent versions of official Homebrew distribution includes one)
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
head 'https://vim.googlecode.com/hg/'
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.682'
def features; %w(tiny small normal big huge) end
@klaeufer
klaeufer / unfiltered-simple-caching.scala
Created March 19, 2011 23:25
Simple Unfiltered example for providing OPTIONS, HEAD, and conditional GET
class RootPlan extends Plan {
val logger = Logger(classOf[RootPlan])
val creationDate = new java.util.Date
val eTag = hashCode.toString
val Head = Ok ~> Vary("Accept-Charset", "Accept-Encoding", "Accept-Language", "Accept")
val Caching =
CacheControl("max-age=3600") ~>
LastModified(DateUtils.formatDate(creationDate)) ~>
@ppurang
ppurang / SlogBuild.scala
Created August 22, 2011 17:19
scala sbt 10 multi module project
import sbt._
import Keys._
import sbt.Package._
import java.util.jar.Attributes.Name._
import com.github.siasia.WebPlugin._
//unashamed copy of scalaz's build
object SlogBuild extends Build {
override lazy val settings = super.settings :+
@rtomayko
rtomayko / optparse-template.rb
Last active June 3, 2023 03:16
Ruby optparse template
#!/usr/bin/env ruby
#/ Usage: <progname> [options]...
#/ How does this script make my life easier?
# ** Tip: use #/ lines to define the --help usage message.
$stderr.sync = true
require 'optparse'
# default options
flag = false
option = "default value"
@rija
rija / install_puppet_mac.sh
Created February 23, 2012 23:04
Installing Puppet on Mac OS X
#!/usr/bin/env bash
set -o errtrace
set -o errexit
facter_version=$1
puppet_version=$2
target_volume=$3
@phred
phred / pedantically_commented_playbook.yml
Last active November 3, 2023 01:55
Very complete Ansible playbook, showing off all the options
---
####
#### THIS IS OLD AND OUTDATED
#### LIKE, ANSIBLE 1.0 OLD.
####
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES
####
#### IF IT BREAKS I'M JUST SOME GUY WITH
#### A DOG, OK, SORRY
####
@eduardschaeli
eduardschaeli / raspberry-pi-edimax-wifi-and-motion-sensor.md
Last active May 21, 2019 18:26
My notes on setting up a Raspberry Pi with an Edimax EW-7811UN WiFi Dongle and motion sensors

Raspberry Pi, WiFi and motion sensors

My notes on setting up a Raspberry Pi with an Edimax EW-7811UN WiFi Dongle and motion sensors.

We intend to use a few Raspberry Pis around the office, in order to find out if certain rooms are beeing used or not. For this, we need to get WiFi and a motion sensor working.

@commadelimited
commadelimited / athletable.coffee
Created November 5, 2013 15:51
Athletable Hubot plugin Add your Athletable API key (https://athletable.com/pages/api) on line 20 Upload to your instance of Hubot Paste in a link in the following format: https://athletable.com/sports/9859cd755e/results/1126656
# Description:
# Front end to Athletable API
#
# Dependencies:
# "underscore": "1.5.1"
#
# Configuration:
# HUBOT_ATHLETABLE_API_KEY
#
# Commands:
@jgrodziski
jgrodziski / private.xml
Created November 22, 2013 12:13
This is my modified private.xml for keyremap4macbook and a US mac keyboard
<?xml version="1.0"?>
<root>
<appdef>
<appname>ITERM</appname>
<equal>com.googlecode.iterm2</equal>
</appdef>
<!--
KeyRemap4MacBook defines a list of apps to ignore when using any of the
"Emacs Mode" key mappings. That list includes "TERMINAL" (as well as other
@martinklepsch
martinklepsch / README.md
Last active February 28, 2022 04:34
A very minimal Emacs configuration to get started with Emacs & Evil-mode

A Starting Point for using Emacs & Evil-mode

(I wrote a bit about why Emacs and Vim on my blog and thought it might be nice to give some starting point for people that want to try it.)

If you just want to play around with Emacs & Evil mode do the following:

  1. mkdir ~/.emacs.d/
  2. copy init.el into ~/.emacs.d/
  3. Download Emacs from http://emacsformacosx.com