Skip to content

Instantly share code, notes, and snippets.

View dol's full-sized avatar

Dominic dol

View GitHub Profile
@dol
dol / 01_xpath_test_suite.txt
Created August 5, 2014 11:13
XPath test suite
/
//@*
//*
/..
.
./*
..
../..
''
'+'
@dol
dol / keybase.md
Created May 5, 2014 21:50
keybase.md

Keybase proof

I hereby claim:

  • I am dol on github.
  • I am dol (https://keybase.io/dol) on keybase.
  • I have a public key whose fingerprint is DABD 5E2C A413 8B4F B514 021B 539A DA06 ADEE FD14

To claim this, I am signing this object:

@dol
dol / README.rst
Last active December 18, 2015 11:29
Preinstall puppet via puppetlabs repo

Custom puppet version preinstall for vagrant

Add the following line to you 'Vagrantfile':

config.vm.provision :shell do |s|
  s.path = "preinstall.sh"
  s.args = "3.1.1-1puppetlabs1"
@dol
dol / .gitignore
Last active November 29, 2016 14:20
Store mitmdump raw requests and responses instead of internal format
/tmp/
@dol
dol / customLoginForm.html
Created April 20, 2012 15:29
cyon Webmail Login Widget
<form id="cyon-wm-login_form" action="https://webmail.cyon.ch/" method="POST">
<input type="text" value="" id="cyon-wm-username" name="username">
<input type="password" value="" id="cyon-wm-password" name="password">
<input type="hidden" value="" id="cyon-wm-domain" name="domain">
<input type="submit" value="Ins Webmail einloggen" id="cyon-wm-submitbt" name="submitbt">
</form>
<div id="cyon-wm-login-message"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://webmail.cyon.ch/plugins/cyon_mod/static/easyXDM.min.js"></script>
<script type="text/javascript" src="https://webmail.cyon.ch/plugins/cyon_mod/static/loginForm.js"></script>
@dol
dol / ZF-11726.patch
Created September 9, 2011 10:33
ZF-11726 patch
Index: tests/Zend/Http/CookieJarTest.php
===================================================================
--- tests/Zend/Http/CookieJarTest.php (revision 24451)
+++ tests/Zend/Http/CookieJarTest.php (working copy)
@@ -91,7 +91,7 @@
$this->assertEquals(3, count($jar->getAllCookies()));
- $cookie_str = 'foo=bar;BOFH=Feature+was+not+beta+tested;time=1164234700;';
+ $cookie_str = 'foo=bar; BOFH=Feature+was+not+beta+tested; time=1164234700';
@dol
dol / gist:820188
Created February 10, 2011 09:18
Generate MySQL 4.1 compartible password hash without PASSWORD() function
SELECT CONCAT('*', UPPER(CONVERT(SHA1(UNHEX(SHA1('yourPassword'))) USING latin1)));