Skip to content

Instantly share code, notes, and snippets.

Alex Eckermann alexeckermann

Block or report user

Report or block alexeckermann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alexeckermann
alexeckermann / wwdc19.sh
Created Jun 4, 2019
WWDC 2019 replay video watch script
View wwdc19.sh
#!/bin/bash
# Execute this script to be notified when the WWDC 2019 replay video is available, maybe.
# Make sure this file is `chmod +x` to run in your Terminal.
while true
do
echo -n `date`
@alexeckermann
alexeckermann / model3.sh
Last active May 22, 2019
Australian Tesla Model 3 ordering watch
View model3.sh
#!/bin/bash
# Execute this script to be notified when the Tesla Model 3 order page is available to Australia.
while true
do
echo -n `date`
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" https://www.tesla.com/en_AU/model3/design)
@alexeckermann
alexeckermann / mastodon_profiles_signed.txt
Created Aug 30, 2018
Mastodon Profiles (Signed with PGP)
View mastodon_profiles_signed.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Mastodon Profiles
=================
@alexeckermann@mstdn.io
@alexeckermann@aus.social
@alexeckermann@mastodon.social
@alexeckermann
alexeckermann / iphone7.rb
Created Sep 12, 2016
iPhone 7 Pick Up Availability in Australia
View iphone7.rb
# iPhone 6 Reservation Availability in Australia
# !! Please use responsibly. Personal use only !!
# `ruby iphone6.rb` - list all available models in all stores
# `ruby iphone6.rb R405` - list available models for a specific store, Rundle Place in this example.
require 'open-uri'
require 'json'
MODEL_NAMES = {
"MN8X2X/A" => "7 32 Black",
"MN8Y2X/A" => "7 32 Silver",
@alexeckermann
alexeckermann / SwiftLoopTest.playground
Created Nov 10, 2014
GCD dispatch_resume test for Swift
View SwiftLoopTest.playground
import Foundation
import XCPlayground
import Dispatch
class Looper {
var loopQueue : dispatch_queue_t!
var tickSource : dispatch_source_t!
init() {
@alexeckermann
alexeckermann / gist:95b4cfb6d10538ed7c62
Created Oct 20, 2014
Fix yo Postgres, Fix yo Yosemite
View gist:95b4cfb6d10538ed7c62
# Put this in your shell and smoke it
mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}
@alexeckermann
alexeckermann / iphone6.rb
Created Oct 3, 2014
iPhone 6 Reservation Availability in Australia
View iphone6.rb
# iPhone 6 Reservation Availability in Australia
# !! Please use responsibly. Personal use only !!
# `ruby iphone6.rb` - list all available models in all stores
# `ruby iphone6.rb R405` - list available models for a specific store, Rundle Place in this example.
require 'open-uri'
require 'json'
MODEL_NAMES = {
"MG4A2X/A" => "iPhone 6 Space Grey 128GB",
View gist:0dc91aa9ce4e99548f0a
# Better… not really. Nicer… maybe.
$search = $('#main-navbar .search')
$search.find('input').css
border: '1px solid #cccccc'
$search.find('button').hide()
$search.find('.results').html(loading)
$search.find('.active, .results').show()
View keybase.md

Keybase proof

I hereby claim:

  • I am alexeckermann on github.
  • I am alexeckermann (https://keybase.io/alexeckermann) on keybase.
  • I have a public key whose fingerprint is CBAA 4632 B67F B4A3 0D03 3832 6446 9476 2557 891E

To claim this, I am signing this object:

@alexeckermann
alexeckermann / postcodes.rb
Last active Nov 7, 2017
Australian Postcode regex hellhole
View postcodes.rb
StatePostcodeMatchers = { SA: /^5([0-9]){3}/, ACT: /^[2](?:[6](?:[0][0-9]|[1][0-8])|[9](?:[0-1][0-9]|20))/,
VIC: /^3([0-9]){3}/, QLD: /^4([0-9]){3}/, NT: /^08(?:[0-9]){2}/, TAS: /^7[0-7](?:[0-9]){2}/, WA: /^6(?:[0-6](?:[0-9]){2}|[7](?:[0-8][0-9]|[9][0-7]))/,
NSW: /^2(?:[0-6](?:[0-9]){2}|[6](?:[1][9]|[2-7][0-9])|[7](?:[0-9]{2})|[8](?:[0-8](?:[0-9]){1}|[9][0-8])|[9](?:[2][1-9]|[3-9][0-9]))/ }
# Probably dont do this.
You can’t perform that action at this time.