Skip to content

Instantly share code, notes, and snippets.

View torkiljohnsen's full-sized avatar

Torkil Johnsen torkiljohnsen

View GitHub Profile
@torkiljohnsen
torkiljohnsen / vendors.php
Created January 22, 2012 14:45 — forked from mathiasverraes/deps.ini
vendors script, replaces git submodules and svn externals
#!/usr/bin/env php
<?php
/*
* Custom version of Symfony2's vendor script
* Put this file in /bin and make a deps.ini file in the root, looking like this:
*
* [some_name]
* git=REPO
* target=path/to/vendor/name
* version=COMMITISH
@mathiasverraes
mathiasverraes / deps.ini
Created January 21, 2012 10:15
vendors script, replaces git submodules * MOVED TO https://github.com/Credico/git-dependency-manager *
; example deps.ini file
[twig]
git=http://github.com/fabpot/Twig.git
target=vendor/twig
version=v1.7.0
@mattd
mattd / gist:1351546
Created November 9, 2011 14:15
An irssi growler script. Get notification of nick mentions!
#!/bin/sh
(ssh mattd@juicebox.io -p 1984 -o PermitLocalCommand=no \
": > .irssi/fnotify ; tail -f .irssi/fnotify " | \
while read heading message; do \
growlnotify -s -t "${heading}" -m "${message}"; \
#say "${heading} says, ${message}"; \
done)&
@mathiasverraes
mathiasverraes / .bashrc
Created November 3, 2011 18:46 — forked from thomasvm/.bashrc
Git shortcuts
#! /bin/sh
alias gs="git status"
alias gc="git commit"
alias gr="git checkout"
alias ga="git add"
alias gl="git lola"
@idan
idan / _more.scss
Created June 6, 2011 08:40
More is Less
$less-column-width: 68px;
$less-gutter-width: 24px;
@function column-width($columns) {
@return ($less-column-width * $columns) + ($less-gutter-width * ($columns - 1));
}
@function grid-padding-px($columns) {
@if $columns == 10 {
@return 48px;
@mloberg
mloberg / example.php
Created March 10, 2011 19:27
A simple Postmark PHP Class
<?php
require("postmark.php");
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
if($postmark->to("reciver@example.com")->subject("Email Subject")->plain_message("This is a plain text message.")->send()){
echo "Message sent";
}