Skip to content

Instantly share code, notes, and snippets.

View martijnengler's full-sized avatar

Martijn Engler martijnengler

View GitHub Profile
<?php
print "Checking…\n";
sleep(5);
printf("Nope. %s is already taken.\n", $argv[1]);
print("Back to work!\n");
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
--
<?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
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
### 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:
#!/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