This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* quick f15 prototype that should do what's needed | |
* no item indexes to make it harder | |
* `$items[$i] = 'item '. $i` would be too easy and even smaller | |
*/ | |
function f15($page) | |
{ | |
$first = ($page - 1) * 15 + 1; | |
for ($i = $first; $i < $first + 15; $i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Strip JFIF headers from the JPEG image on stdin, and write | |
* the result to stdout. Won't work unmodified on Windows | |
* because of the text/binary problem. Not thoroughly tested. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
void fail(const char* msg) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Skills | |
define('OVER', 'Overall'); | |
define('ATTA', 'Attack'); | |
define('DEFE', 'Defence'); | |
define('STRE', 'Strength'); | |
define('HITP', 'Constitution'); | |
define('RANG', 'Ranged'); | |
define('PRAY', 'Prayer'); | |
define('MAGI', 'Magic'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIID1TCCAr2gAwIBAgIDAjbRMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT | |
MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i | |
YWwgQ0EwHhcNMTAwMjE5MjI0NTA1WhcNMjAwMjE4MjI0NTA1WjA8MQswCQYDVQQG | |
EwJVUzEXMBUGA1UEChMOR2VvVHJ1c3QsIEluYy4xFDASBgNVBAMTC1JhcGlkU1NM | |
IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx3H4Vsce2cy1rfa0 | |
l6P7oeYLUF9QqjraD/w9KSRDxhApwfxVQHLuverfn7ZB9EhLyG7+T1cSi1v6kt1e | |
6K3z8Buxe037z/3R5fjj3Of1c3/fAUnPjFbBvTfjW761T4uL8NpPx+PdVUdp3/Jb | |
ewdPPeWsIcHIHXro5/YPoar1b96oZU8QiZwD84l6pV4BcjPtqelaHnnzh8jfyMX8 | |
N8iamte4dsywPuf95lTq319SQXhZV63xEtZ/vNWfcNMFbPqjfWdY3SZiHTGSDHl5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DebugSoapServer extends SoapServer | |
{ | |
public function handle($request = null) | |
{ | |
// check input param | |
if ($request === null) { | |
$request = file_get_contents('php://input'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'countries' => array( | |
'us' => array( | |
'dialCode' => 1, | |
'name' => 'United States', | |
'enabled' => false, | |
), | |
'gb' => array( | |
'dialCode' => 44, | |
'name' => 'United Kingdom', | |
'enabled' => false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check if the VPN is connected | |
# @param $1 vpn name | |
function _vpn_connected | |
{ | |
scutil --nc status "$1" | head -n 1 | grep -q Connected | |
} | |
# Wait up to 20 seconds for VPN connection | |
# @param $1 vpn name | |
function _vpn_poll_until_connected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bamboo Builder | |
// @namespace cherrytech | |
// @version 0.1 | |
// @author Joao Dias <[email protected]> | |
// @match http://bamboo.cherrytech.com/browse/* | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// ==/UserScript== |