git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
#!/bin/sh | |
# | |
# ******************************************* | |
# WARNING: this does *not* handle 3-way merges properly. | |
# Anything modified on the local branch since the common base will get ignored. | |
# | |
# FOR ANYONE LANDING HERE: | |
# This script is now updated as part of the git-whistles gem. | |
# https://github.com/mezis/git-whistles | |
# ******************************************* |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
user www-data; | |
http { | |
## | |
# Basic Settings | |
## | |
sendfile on; | |
tcp_nopush on; |
Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv
instead. If you are looking for the previous version of this document, see the revision history.
$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10
$ pyenv install 2.6.9
We have absolutely no idea what we're doing in tech. Please explain the utmost basic things to us.
We only do web design. Our whole reason of being in tech is to make things pretty. Consider us the doilies of the industry.
We're not laughing about your joke, so we clearly need you explain it to us. In great detail.
We're only in tech to find a husband, boyfriend or generally to get laid.
#!/usr/bin/env bash -e | |
HOST=$(echo "$1" | sed -E -e 's/https?:\/\///' -e 's/\/.*//') | |
if [[ "$HOST" =~ .*\..* ]]; then | |
echo "Adding certificate for $HOST" | |
echo -n | openssl s_client -connect $HOST:443 -servername $HOST \ | |
| sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' \ | |
| tee "/tmp/$HOST.cert" | |
sudo security add-trusted-cert -d -r trustRoot \ |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
#!/bin/bash | |
less_command='| less $less_no_init -aiF -Ps"Manual page\: $man_page (?ltline %lt?L/%L.:byte %bB?s/%s..? (END):?pB %pB\%..)"' | |
# Get section | |
if [[ $1 =~ [0-9]+ ]] | |
then | |
section=$1 | |
shift | |
fi |
// ==UserScript== | |
// @name Achavi-Link on OSM.org | |
// @namespace de.schaeferban | |
// @include https://openstreetmap.org/user/*/history* | |
// @include https://www.openstreetmap.org/user/*/history* | |
// @include http://openstreetmap.org/user/*/history* | |
// @include http://www.openstreetmap.org/user/*/history* | |
// @include https://openstreetmap.org/changeset/* | |
// @include https://www.openstreetmap.org/changeset/* | |
// @include http://openstreetmap.org/changeset/* |
# Enable Packetization Layer Path MTU Discovery. | |
net.ipv4.tcp_mtu_probing = 1 | |
net.ipv4.tcp_base_mss = 1024 | |
# Ensure slow start is disabled | |
# https://github.com/ton31337/tools/wiki/tcp_slow_start_after_idle---tcp_no_metrics_save-performance | |
net.ipv4.tcp_slow_start_after_idle = 0 | |
net.ipv4.tcp_no_metrics_save = 0 | |
# Tune network buffers - servers have more than 16MB of RAM in 2017 |