View AppDelegate.swift
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
import UIKit | |
@main | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
return true | |
} | |
// MARK: UISceneSession Lifecycle |
View send-magic-packet.sh
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/env bash | |
mac_address=$1 | |
# Strip colons from the MAC address | |
mac_address=$(echo $mac_address | sed 's/://g') | |
broadcast=$2 | |
port=4343 | |
# Magic packets consist of 12*`f` followed by 16 repetitions of the MAC address |
View test-sendgrid-bounce
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/env bash | |
EMAIL=$1 | |
echo $EMAIL | |
rejections=( spamreports bounces ) | |
for rejection in "${rejections[@]}" | |
do | |
printf "${rejection}:\n" | |
curl "https://sendgrid.com/api/${rejection}.get.json?api_user=${SENDGRID_SMTP_USERNAME}&api_key=${SENDGRID_SMTP_PASSWORD}&email=${EMAIL}" |
View Gemfile
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
source 'https://rubygems.org' | |
gem 'github_api' | |
gem 'awesome_print' | |
gem 'pry' |
View gist:4863ff2d04352808efe9
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 SteveMarshall on github. | |
* I am stevemarshall (https://keybase.io/stevemarshall) on keybase. | |
* I have a public key whose fingerprint is 4DE7 9E3E DAE3 5BF4 C7E1 88B6 688B BDD0 A19A 21B3 | |
To claim this, I am signing this object: |
View gist:1f2d733f2cb8dda330bc
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
Notes of Scale Summit 2015 what's changed since last year. | |
Things last year: | |
- “Big Data is a thing”; Big Data is now pointless | |
- “Is CouchDB dead?” npm were? Fairly sure couchdb is now dead, despite more funding | |
- Under still going: Mongo, Riak. Mongo's not dead? Guardian, GDS, MOJ. Mongo on the rise again? Mongo *might* be dead; we don't know. | |
- Websockets were "standard" but weren't really… except for certain browsers, proxies, etc. | |
- HTML5 video still doesn't really work | |
- Flash is still dying… Unless you count CVEs. Lots of flash-based ads. | |
- WebGL has taken hold? Still true, apparently. |
View init.pp
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
# `apt` is puppetlabs/apt v1.4.2 | |
include '::apt' | |
apt::source { 'nginx': | |
location => "http://nginx.org/packages/ubuntu", | |
repos => 'nginx', | |
key => '7BD9BF62', | |
key_source => 'http://nginx.org/keys/nginx_signing.key', | |
} |
View gist:1589635
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
^ | |
[a-zA-Z0-9.!#$%&'*+-/=?\^_`{|}~-]+ # one or more of these pre-@ | |
@ | |
[a-zA-Z0-9-]+ # first (mandatory) domain-part | |
(?:\.[a-zA-Z0-9-]+)* # subsequent (optional) domain parts inc. TLD | |
$ |