Skip to content

Instantly share code, notes, and snippets.

@wheresalice
wheresalice / cf_traversal.rb
Created August 15, 2010 17:31
Metasplot module for CVE 2010-2861 (my first msf module, please comment)
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
require 'socket'
@wheresalice
wheresalice / city_sunshine.rb
Created October 17, 2010 16:16
Takes a ranked list of cities and calculates hours of sunshine per year for each one. It's pretty rough and ready.
# city_sunshine.rb
#
# Copyright 2010 kaerast <kaerast@alice-laptop>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@wheresalice
wheresalice / startingkey.py
Created October 26, 2010 13:49
Should let us pass the first key press to a Python wx grid. Currently the first key press is lost as it is used to enable editing of the grid.
def StartingKey(self, evt):
"""
If the editor is enabled by pressing keys on the grid, this will be
called to let the editor do something about that first key if desired.
"""
self.log.write("MyCellEditor: StartingKey %d\n" % evt.GetKeyCode())
key = evt.GetKeyCode()
ch = None
if key in [ wx.WXK_NUMPAD0, wx.WXK_NUMPAD1, wx.WXK_NUMPAD2, wx.WXK_NUMPAD3,
wx.WXK_NUMPAD4, wx.WXK_NUMPAD5, wx.WXK_NUMPAD6, wx.WXK_NUMPAD7,
@wheresalice
wheresalice / microsoft.html
Created March 1, 2011 21:09
Microsoft EES License cost Calculator
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" >
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Microsoft EES License cost Calculator</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/ui-lightness/jquery-ui.css">
@wheresalice
wheresalice / doorbell.feature
Created March 22, 2011 12:35
Feature requirements for Howduino Leeds Workshops
Feature: doorbell alert
In order to be alerted to people wanting access to my place
As a worried tenant
I want to be alerted to people ringing the doorbell when not at home
Scenario: Alert by phone
Given I have everything set up correctly
When I am away from home
And somebody rings the doorbell
Then I want a group of people to be alerted by phone
@wheresalice
wheresalice / Definition.xml
Created March 24, 2011 16:06
Blueprint CSS Grid Definition for Evolus Pencil. Zip this file and import as a public stencil collection.
<Shapes xmlns="http://www.evolus.vn/Namespace/Pencil"
xmlns:p="http://www.evolus.vn/Namespace/Pencil"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
id="Blueprint_CSS.Icons"
displayName="Blueprint CSS"
description="Blueprint CSS Grid"
author="Alice Kaerast"
url="http://blueprintcss.org/">
@wheresalice
wheresalice / Blink.cpp
Created March 26, 2011 11:37
Arduino Blink avoiding the delay function which appears terribly broken on my system
@wheresalice
wheresalice / gist:889119
Created March 27, 2011 10:50
Arduino Webclient with static IPs - connects to Sinatra with a ping, should get a pong back
#include <SPI.h>
#include <Ethernet.h>
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192,168,1,3 };
byte server[] = { 192,168,1,2 };
String request = "GET /ping?q=123 HTTP/1.0";
@wheresalice
wheresalice / app.rb
Created April 16, 2011 19:42
Extending Nesta using Sinatra
module Nesta
class App
get '/ping' do
'pong'
end
end
end
% resume.tex
%
% (c) 2002 Matthew Boedicker <mboedick@mboedick.org> (original author) http://mboedick.org
% (c) 2003 David J. Grant <dgrant@ieee.org> http://www.davidgrant.ca
% (c) 2007 Todd C. Miller <Todd.Miller@courtesan.com> http://www.courtesan.com/todd
% (c) 2009 Derek R. Hildreth <derek@derekhildreth.com> http://www.derekhildreth.com
% (c) 2011 Alice Kaerast <alice@kaerast.info> http://kaerast.info
%This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/1.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.