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 | |
print "Checking…\n"; | |
sleep(5); | |
printf("Nope. %s is already taken.\n", $argv[1]); | |
print("Back to work!\n"); |
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
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
tell application "Finder" | |
-- zet hier het pad naar de juiste map | |
set thePath to POSIX path of "Macintosh HD:private:tmp:x" | |
-- | |
-- vanaf hier niets veranderen | |
-- |
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 | |
define("AC_MAUTIC_URL", "https://mautic.example.org/"); | |
define("AC_MAUTIC_USER", "myusername"); | |
define("AC_MAUTIC_PASSWORD", "mypassword"); | |
use Mautic\Auth\ApiAuth; | |
use Mautic\MauticApi; | |
require_once __DIR__ . '/vendor/autoload.php'; | |
// ApiAuth->newAuth() will accept an array of Auth settings |
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
tell application "Chrome" | |
set output to "Total number of tabs in Chrome: | |
" | |
repeat with i from 1 to number of window | |
set output to output & "Window " & i & ": " & the number of tabs of window i & " | |
" | |
end repeat | |
output & " | |
Total: " & the number of tabs of every window |
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
### Keybase proof | |
I hereby claim: | |
* I am martijnengler on github. | |
* I am martijnengler (https://keybase.io/martijnengler) on keybase. | |
* I have a public key whose fingerprint is 4650 B24B 7E2D D323 1ED4 1921 0A49 B2A0 1630 49ED | |
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
#!/usr/bin/ruby | |
# encoding: utf-8 | |
# | |
# Retrieve an iOS app icon at the highest available resolution | |
# All arguments are combined to create an iTunes search | |
# The icon for the first result, if found, is written to a filename based on search terms | |
# | |
# example: | |
# $ itunesicon super monsters ate my condo |