Skip to content

Instantly share code, notes, and snippets.

@damaya
damaya / 0_reuse_code.js
Created April 1, 2014 22:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@damaya
damaya / curl_time_format.txt
Created December 18, 2018 12:51 — forked from mauricios/curl_time_format.txt
CURL format file to summarize loading times results of a page
Content Type: %{content_type}\n
HTTP Code: %{http_code}\n
HTTP Connect: %{http_connect}\n
Number Connects: %{num_connects}\n
Number Redirects: %{num_redirects}\n
Redirect URL: %{redirect_url}\n
Size Download: %{size_download}\n
Average speed download: %{speed_download}\n
Size Upload: %{size_upload}\n
SSL Verify: %{ssl_verify_result}\n
@damaya
damaya / install_opnshift.sh
Last active March 2, 2019 22:44 — forked from mauricios/install_openshift.sh
Install OpenShift in Amazon Linux 2
# Configure variables
OPENSHIFT_PACKAGE=https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
OPENSHIFT_HOSTNAME=openshift.xip.io
# Install Docker
sudo yum install docker -y
sudo usermod -aG docker ec2-user
# Add insecure registry to Docker