This file contains 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
on run {input, parameters} | |
tell application "Display Menu" | |
toggle mirroring | |
select resolution "1440 x 900 Retina" on display "Color LCD" | |
end tell | |
return input | |
end run |
This file contains 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
function moveHangoutLinks() { | |
var calendarId = Calendar.Calendars.get('primary').id; | |
var now = new Date(); | |
var events = Calendar.Events.list(calendarId, { | |
timeMin: now.toISOString(), | |
singleEvents: true, | |
orderBy: 'startTime', | |
maxResults: 10 | |
}); | |
if (events.items && events.items.length > 0) { |
This file contains 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
#!/bin/bash | |
topofminute() { | |
local now; | |
while true; do | |
now=$(date "+%S") | |
now=${now#0} # strip leading zero for arithmetic operations | |
# run command only if less than ten seconds have passed in the current minute |
I hereby claim:
- I am dzuelke on github.
- I am dzuelke (https://keybase.io/dzuelke) on keybase.
- I have a public key whose fingerprint is 6EFD ED2E 9DFE 3138 92D2 FFE9 B6E2 901C 11E1 6473
To claim this, I am signing this object:
This file contains 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 | |
$re = '{^(\\s*\\{\\s*(?:"(?:[^\\0-\\x09\\x0a-\\x1f\\\\"]+|\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})*"\\s*:\\s*(?:[0-9.]+|null|true|false|"(?:[^\\0-\\x09\\x0a-\\x1f\\\\"]+|\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})*"|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[[^\\]]*\\])*\\])*\\])*\\]|(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{[^{}]*\\})*\\})*\\})*\\})*)*\\]|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{[^{}]*\\})*\\})*\\})*\\})*\\})\\s*,\\s*)*?)("require"\\s*:\\s*)((?:[0-9.]+|null|true|false|"(?:[^\\0-\\x09\\x0a-\\x1f\\\\"]+|\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})*"|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[(?:[^\\]]*|\\[[^\\]]*\\])*\\])*\\])*\\]|(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{[^{}]*\\})*\\})*\\})*\\})*)*\\]|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{(?:[^{}]*|\\{[^{}]*\\})*\\})*\\})*\\})*\\}))(.*)}s'; | |
$str = '{ | |
"config": { | |
"cache-files-ttl": 0, | |
"discard-changes": true | |
}, | |
"minimum-stability": "stable", |
This file contains 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
[10-Mar-2016 18:49:34 UTC] [2016-03-10 18:49:34] production.ERROR: exception 'BadMethodCallException' with message 'Method after does not exist.' in bootstrap/cache/compiled.php:6254 | |
Stack trace: | |
#0 bootstrap/cache/compiled.php(2193): Illuminate\Routing\Router->__call('after', Array) | |
#1 bootstrap/cache/compiled.php(2193): Illuminate\Routing\Router->after(Object(newrelic\Laravel\AfterFilter)) | |
#2 bootstrap/cache/compiled.php(2193): Illuminate\Foundation\Application->boot() | |
#3 bootstrap/cache/compiled.php(1641): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(Illuminate\Foundation\Application)) | |
#4 bootstrap/cache/compiled.php(2374): Illuminate\Foundation\Application->bootstrapWith(Array) | |
#5 bootstrap/cache/compiled.php(2327): Illuminate\Foundation\Http\Kernel->bootstrap() | |
#6 bootstrap/cache/compiled.php(2312): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) | |
#7 public/index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Reques |
This file contains 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
dzuelke-ltm1:wat dzuelke$ PHP_INI_SCAN_DIR= php -c /usr/local/etc/php/5.6/conf.d/ext-mongodb.ini $(which composer) require alcaeus/mongo-php-adapter:dev-master | |
./composer.json has been created | |
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
- Installing mongodb/mongodb (1.0.0) | |
Loading from cache | |
- Installing alcaeus/mongo-php-adapter (dev-master 4adcbe7) | |
Cloning 4adcbe7a75f3c684bc1651ccdb7addefc089066c |
This file contains 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
{ | |
"repositories": [ | |
{ | |
"packagist": false | |
}, | |
{ | |
"type": "package", | |
"package": [ | |
{ | |
"type": "metapackage", |
This file contains 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
<p> | |
<?php | |
$db = parse_url(getenv("DATABASE_URL")); | |
$sql = "SELECT repeat('a', 160000)"; | |
$c = pg_connect(sprintf("host='%s' port='%s' dbname='%s' user='%s' password='%s' sslmode='require'", $db["host"], $db["port"], substr($db["path"], 1), $db["user"], $db["pass"])); | |
$r = openssl_pkey_get_public('a'); |
NewerOlder