Skip to content

Instantly share code, notes, and snippets.

View chrisiona's full-sized avatar

Chris Iona chrisiona

  • Australia
View GitHub Profile
@chrisiona
chrisiona / SwiftyJsonExtension.swift
Last active May 8, 2018 01:38
Extend the SwiftyJSON module with a .date type (Swift3)
//
// SwiftyJsonExtension.swift
//
// Created by Chris Iona on 02/12/16.
// MIT License.
//
// Date extension for SwiftyJSON module
// https://github.com/SwiftyJSON/SwiftyJSON
//
// Assumes that you already have SwityJSON installed and available
@chrisiona
chrisiona / ttfb.sh
Last active November 12, 2020 09:11
TTFB – Bash script that returns interesting information about a HTTP/S call
#!/bin/bash
# Returns interesting information about a HTTP/S call
# http://chrisiona.com/post/125309997618/ttfb-a-bash-script-that-returns-interesting
curl -so /dev/null \
-w "Response Code: \t\t%{http_code} \
\nName Resolution: \t%{time_namelookup} sec\
\nConnect Time: \t\t%{time_connect} sec\
\nPre Transfer: \t\t%{time_pretransfer} sec\
@chrisiona
chrisiona / Hiring Software Engineers.php
Last active June 10, 2016 04:03
Hipages – Now Hiring!
<?php
/**
* Hipages Group Pty Ltd
* http://hipagesgroup.com.au
*/
class Hipages_Software_Engineer extends Software_Engineer implements Startup_Culture
{