This assumes you've got docker-machine installed, running, and can do docker run
docker run --name travis-debug -dit quay.io/travisci/travis-ruby /sbin/init
docker exec -it travis-debug bash -l
#sets permissions so you don't get error that permissions are too open
#ref: https://superuser.com/a/215506
find /$HOME/.ssh/ -type f -exec chmod 600 {} \;
find /$HOME/.ssh/ -type d -exec chmod 700 {} ;
##################### | |
# | |
# Use this with or without the .gitattributes snippet with this Gist | |
# create a fixle.sh file, paste this in and run it. | |
# Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF) | |
# This Gist normalizes handling by forcing everything to use Unix style. | |
##################### | |
# Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF |
/** | |
* Get Google Page Speed Screenshot | |
* | |
* Uses Google's Page Speed API to generate a screenshot of a website. | |
* Returns the image as a base64 jpeg image tag | |
* | |
* Usage Example: | |
* echo getGooglePageSpeedScreenshot("http://ghost.org", 'class="thumbnail"'); | |
* | |
* |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |