Skip to content

Instantly share code, notes, and snippets.

@Alexandredc
Alexandredc / gist:42c74594b6b5644296f4
Created October 19, 2014 17:31
Sync Upstream with Forks
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
@Alexandredc
Alexandredc / gist:aba9fb8af50fa6b47a11
Last active August 29, 2015 14:07
Config Apache for NodeJs using ProxyPass on port 80
<VirtualHost *:80>
ServerName host.com
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
@Alexandredc
Alexandredc / gcp_tips_docker_credentials.md
Last active December 1, 2017 13:36
Using GCP & Docker with local credentials

Using GCP & Docker with local credentials

Many Google Cloud Platform products need credentials to works. During development, you often work on your local machine using gcloud tool with gcloud auth command to log in.

Using local credentials on a Docker Container is very straight forward. You only need gcloud tool installed on your Docker Image or using google/cloud-sdk image and using this tips when using docker run :

docker run -v ~/.config/gcloud:/root/.config/gcloud your_docker_image