Install git
on OSX:
brew update && brew upgrade
brew install git
Make diff nicer:
package main | |
import ( | |
"net/http" | |
) | |
func redirect(w http.ResponseWriter, req *http.Request) { | |
http.Redirect(w, req, | |
"https://" + req.Host + req.URL.String(), | |
http.StatusMovedPermanently) | |
} |
Install git
on OSX:
brew update && brew upgrade
brew install git
Make diff nicer:
Adyen Test Card Numbers | |
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform. | |
For all cards use the following expiration and CVV2/CVC2/or CID for Amex. | |
For all cards: | |
Expiration Dates CVV2 / CVC3 CID (American Express) | |
06/2016 OR 08/2018 737 7373 |
<?php | |
$options = getopt("f:o:"); | |
if (! isset($options['f'])) { | |
echo "Files have to be specified with -f\n"; | |
exit(1); | |
} | |
if (! isset($options['o'])) { | |
echo "Output has to be specified with -o\n"; | |
exit(1); | |
} |
FROM ubuntu:16.04 | |
RUN PACKAGES="\ | |
php-cli \ | |
php-mysql \ | |
php-intl \ | |
php-xml \ | |
php-curl \ | |
php-dom \ | |
" && \ |
Download/update scripts:
$ curl https://gist.githubusercontent.com/jaymecd/221af6ff75d7c4b64edae647392b9e86/raw/gh-release.sh > /usr/local/bin/gh-release
$ curl https://gist.githubusercontent.com/jaymecd/221af6ff75d7c4b64edae647392b9e86/raw/gh-release-qa.sh > /usr/local/bin/gh-release-qa
$ chmod +x /usr/local/bin/gh-release*
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs