An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
#!/bin/sh | |
set -e | |
# | |
# This script is meant for quick & easy install via: | |
# 'curl -sSL https://get.docker.com/ | sh' | |
# or: | |
# 'wget -qO- https://get.docker.com/ | sh' | |
# | |
# For test builds (ie. release candidates): | |
# 'curl -sSL https://test.docker.com/ | sh' |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# STEP 1: ENSURE COMPLETION AND PROMPT FUNCTION ARE LOADED | |
# ======================================================== | |
# OPTION 1: If on OSX using Homebrew: | |
# | |
# source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh | |
# source $(brew --prefix)/etc/bash_completion.d/git-completion.bash | |
# OPTION 2: If on OSX using built-in Git (also works on ZSH): | |
# |
# Put this in your ~/.gitconfig or ~/.config/git/config | |
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
[user] | |
name = Your Full Name | |
email = your@email.tld | |
[color] | |
# Enable colors in color-supporting terminals | |
ui = auto | |
[alias] | |
st = status |
#!/bin/bash | |
# Set proxy settings in Ubuntu for eclipse, maven and apt | |
#### variables | |
ECLIPSE_SETTINGS_DIR="/home/martine/apps/springsource/sts-3.4.0.M1/configuration/.settings/" | |
ECLIPSE_SETTINGS_FILE="org.eclipse.core.net.prefs" | |
ECLIPSE_SETTINGS_PROXY="org.eclipse.core.net.prefs-PROXY" | |
ECLIPSE_SETTINGS_NOPROXY="org.eclipse.core.net.prefs-NOPROXY" | |
ECLIPSE_SETTINGS=$ECLIPSE_SETTINGS_DIR$ECLIPSE_SETTINGS_FILE |
To remove a submodule you need to: | |
Delete the relevant line from the .gitmodules file. | |
Delete the relevant section from .git/config. | |
Run git rm --cached path_to_submodule (no trailing slash). | |
Commit and delete the now untracked submodule files. |
unset DOCKER_HOST DOCKER_MACHINE_NAME DOCKER_MACHINE_NAME DOCKER_TLS_VERIFY DOCKER_CERT_PATH | |
export SWARM_TOKEN=$(cat swarm.token) | |
echo $SWARM_TOKEN | |
CONSUL_IP=$(docker-machine ip consul) | |
_cluster="A" | |
_master=${_cluster}-0 | |
_cert_home="$HOME/.docker/machine/machines/${_master}" | |
#!/bin/bash | |
## Docker swarm with docker-machine | |
sid=$(docker run swarm create) | |
docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://$sid swarm-master | |
docker-machine create -d virtualbox --swarm --swarm-discovery token://$sid swarm-node-01 | |
docker-machine create -d virtualbox --swarm --swarm-discovery token://$sid swarm-node-02 | |
docker-machine create -d virtualbox --swarm --swarm-discovery token://$sid swarm-node-03 | |
eval "$(docker-machine env --swarm swarm-master)" | |
#docker info |
-----BEGIN PGP MESSAGE----- | |
Version: Keybase OpenPGP v2.0.41 | |
Comment: https://keybase.io/crypto | |
wcBMA0iHLnIGQf44AQgAzihYYhzGK7pTu89yUGGYVlga0o1DS+SqiRyLaMM0+PK2 | |
BMcSEkfE9CW/5G1WnKCjlZNy1cfPdn2IPok8UCHwgh3QPyj35NaSNTXN0FcG5f23 | |
y10sOBTqxlMKZK2FdhtNBZKwX/+jyHMEEDhxfuQu8TwR4iUcA42ISsXEzYUuUaw0 | |
IJfEbs9b4lbo6VmqXQoIVqLB0r8KgrV3xahysaTDNfuNJgoRuYvVQSDIpNdqWzMy | |
nZFR4XiR6EPXjpMRSwloR6W/GX4eMhyqVadHMptbK5gmzzxwDox9cvI/DuUVxxb3 | |
gipuPUdM0jczBMxKRlvqXoLMqSiNG5/ssGfvJQuypcHATANsO7/IBaX31AEIALP6 |