Imagine you'd like to use account.exapmle.com from your local dev machine, but with the backend api.
- Change your hosts file:
sudo vim /etc/hosts
I hereby claim:
To claim this, I am signing this object:
<html class="gr__s_codepen_io"><head> | |
<meta charset="UTF-8"> | |
<link rel="shortcut icon" type="image/x-icon" href="https://production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico"> | |
<link rel="mask-icon" type="" href="https://production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111"> | |
<title>CodePen - A Pen by Omid H</title> | |
`;;;;;; | |
.@@@@@@ | |
.@@+ @@@@@@+ | |
`;@+ ;;;;;@+ @@@@@@@@@@@@@@@@@@@@@@ | |
@@@+ @@@@@ @ @ | |
;;@+ ;;;'@ @@@@@@@ @@@@@@@ | |
@@@@@ .@@@ @@@@@@@ @@@@@@@ | |
@;; .@;, @@@@@@@ @@@@@@@ | |
@@@ .@@+ @@@@ @@@@@ |
# All nginx configurations can go here | |
files: | |
# This creates a file at the address below on the beanstalk instance | |
/etc/nginx/conf.d/proxy.conf: | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
upstream nodejs { | |
server 127.0.0.1:8081; |
# from https://gist.github.com/sindresorhus/7996717 | |
curl -O https://gist.githubusercontent.com/sindresorhus/7996717/raw/4ec63bc6f8c0f1e227faeb78eddc01a788ef0595/post-merge && chmod +x post-merge && mv post-merge .git/hooks/ |
/* | |
var async = true; | |
var xhr = new XMLHttpRequest(); | |
xhr.open('get', 'favicon.ico', async); | |
xhr.send(); | |
var timestamp = Date.now() + 3000; | |
while(Date.now() < timestamp); |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
"use strict"; | |
const request = require('request-promise'); | |
const headers = { | |
'User-Agent': 'scottwrobinson' | |
}; | |
const repos = [ | |
'scottwrobinson/camo', |