Skip to content

Instantly share code, notes, and snippets.

# TODO:
# - Maximize and restore a pane with Up-arrow and Down-arrow
# - Fix probleem met lijnregels als je kopieert uit Vim
# Set new leader
unbind C-b
set -g prefix C-a
# Set index of window and pane
set -g base-index 1
@stefthoen
stefthoen / pp.yml
Last active August 29, 2015 14:03
Tmuxinator yml for WordPress website
# ~/.tmuxinator/pp.yml
name: pp
root: ~/Sites/paprikapatterns/web/app/themes/paprikapatterns/
windows:
- theme:
layout: 15b0,204x46,0,0[204x40,0,0,0,204x5,0,41{102x5,0,41,3,50x5,103,41,4,50x5,154,41,6}]
panes:
@uhlenbrock
uhlenbrock / deploy.rb
Created January 25, 2010 21:47
Simple Capistrano recipe for Jekyll
set :application, 'foo'
set :repository, '_site'
set :scm, :none
set :deploy_via, :copy
set :copy_compression, :gzip
set :use_sudo, false
set :host, '127.0.0.1'
role :web, host
role :app, host
@mrcgrtz
mrcgrtz / placeholder.js
Created April 21, 2010 10:29
Adds something like HTML5 placeholders when they are not supported by your browser. Usage: <input placeholder="Foobar">
var MyApp = {
addPlaceholders: function(props) {
// default configuration
var config = {
'class': 'placeholder' // apply CSS classes to an input displaying a placeholder
};
// if any properties were supplied, apply them to the config object
@jamescarlos
jamescarlos / campfire_message.php
Created April 6, 2011 05:49
Send a message to campfire
<?php
// Usage and set up
// change your-site to the subdomain being used for your campfire url
// use the api token for the user you want posting the message
// set the room id that you want the message to be posted to
define('CAMPFIRE_URL', 'https://your-site.campfirenow.com/');
define('CAMPFIRE_API_TOKEN', 'apitokengoeshere');
$room_id = 12345;
$message = 'I are a robot.';
server:
@@jekyll --server
render:
@@echo "Building the site..."
@@jekyll --no-future
minify:
@@echo "Minifying the CSS..."
@@java -jar _build/yuicompressor.jar --verbose --type css -o _site/path/to/style.css _site/path/to/style.css
@cabans
cabans / fix_paged_homepage.php
Created September 27, 2012 09:34
Wordpress: Fix for loop pagination with Custom Post Type in homepage
<?php
//Fix homepage pagination
if ( get_query_var('paged') ) {
$paged = get_query_var('paged');
} else if ( get_query_var('page') ) {
$paged = get_query_var('page');
} else {
$paged = 1;
}
@reinier
reinier / backup-webapps
Created November 28, 2012 09:56
Tar remote dir and rsync it to backup dir
alias backup-webapps="ssh -t user@domain 'tar zcvf webapps.tar.gz webapps' && mkdir ~/Documents/Backups/webapps-`date +%Y%m%d` && rsync -avz user@domain:/home/user/webapps.tar.gz ~/Documents/Backups/webapps-`date +%Y%m%d`"
@Savjee
Savjee / s3-to-AWStat.sh
Created January 20, 2013 18:27
s3-to-AWStat is a bash script that downloads Amazon S3 access logs and makes them ready for AWStat.
#!/bin/bash
# s3-to-AWStat
# Copyright 2013 Xavier Decuyper
# http://www.savjee.be
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
@stefthoen
stefthoen / Gruntfile.js
Last active December 31, 2015 05:39
Gruntfile.js for Paprika Patterns.
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner:
'/*! <%= pkg.name %>.js v<%= pkg.version %>\n' +
' * http://<%= pkg.name %>.com/\n' +
' *\n' +
' * <%= pkg.description %>\n' +