Skip to content

Instantly share code, notes, and snippets.

@zenzora
zenzora / currencies.php
Created December 22, 2013 23:13
PHP currency code array
$currencies = array("AFA","ALL","DZD","USD","EUR","AOA","XCD","NOK","XCD","ARA","AMD","AWG","AUD","EUR","AZM","BSD","BHD","BDT","BBD","BYR","EUR","BZD","XAF","BMD","BTN","BOB","BAM","BWP","NOK","BRL","GBP","BND","BGN","XAF","BIF","KHR","XAF","CAD","CVE","KYD","XAF","XAF","CLF","CNY","AUD","AUD","COP","KMF","CDZ","XAF","NZD","CRC","HRK","CUP","EUR","CZK","DKK","DJF","XCD","DOP","TPE","USD","EGP","USD","XAF","ERN","EEK","ETB","FKP","DKK","FJD","EUR","EUR","EUR","EUR","XPF","EUR","XAF","GMD","GEL","EUR","GHC","GIP","EUR","DKK","XCD","EUR","USD","GTQ","GNS","GWP","GYD","HTG","AUD","EUR","HNL","HKD","HUF","ISK","INR","IDR","IRR","IQD","EUR","ILS","EUR","XAF","JMD","JPY","JOD","KZT","KES","AUD","KPW","KRW","KWD","KGS","LAK","LVL","LBP","LSL","LRD","LYD","CHF","LTL","EUR","MOP","MKD","MGF","MWK","MYR","MVR","XAF","EUR","USD","EUR","MRO","MUR","EUR","MXN","USD","MDL","EUR","MNT","XCD","MAD","MZM","MMK","NAD","AUD","NPR","EUR","ANG","XPF","NZD","NIC","XOF","NGN","NZD","AUD","USD","NOK","OMR","PKR","USD","PAB","PGK","P
@zenzora
zenzora / gitroot.sh
Created January 24, 2017 19:26
Step back to the root of a git repo
##Added the following to my .bashrc, thought I'd share
function groot() {
if [ -d '.git' ]
then
echo "I AM GROOT"
fi
startDir=${PWD}
while [ ! -d '.git' ]
@zenzora
zenzora / nycMetroBonus.txt
Created March 21, 2017 16:48
New amount to add to NYC metrocards to avoid having leftover credit (current as of 3/20/17)
Inspired by an out of date article found here http://gothamist.com/2015/01/25/metrocard_math_fare_hike.php
What amount should you put on your metro card to avoid having money left over (bonus start at 5.50)
http://web.mta.info/nyct/fare/FaresatAGlance.htm
Amount you add: 7.86
Amount on card with bonus: 8.25
Rides: 3.0
Remaining: 0.01
AWSTemplateFormatVersion: '2010-09-09'
Description: Setup IAM For Github Actions
Parameters:
GithubRepo:
Type: String
Description: In the form of organization/repository
Resources:
GithubIdentityProvider:
Type: AWS::IAM::OIDCProvider
Properties: