-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
gcc -fpic --shared $(python-config --includes) greetmodule.c -o greetmodule.so |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
#!/bin/bash | |
source ${openrc:-~/openrc} | |
ext_net=${ext_net:-external} | |
no_gw=${no_gw:-nogw} | |
hostname=${1:-test} | |
key_name=${key_name:-public} | |
flavor=${flavor:-2} | |
image=${image:-precise-x86_64} | |
user_data=${user_data:-~/user.data} | |
net_id=`neutron net-list | grep ${ext_net} | awk -F' ' '{print $2}'` |
#!/bin/bash | |
EXIT_STATUS=0 | |
echo "#!/bin/bash" > ./docker-travis-test.sh | |
cat .travis.yml | shyaml get-values before_script >> ./docker-travis-test.sh | |
cat .travis.yml | shyaml get-values script >> ./docker-travis-test.sh | |
PHP_VERSIONS=`cat .travis.yml | shyaml get-values php` | |
for PHP_VERSION in $PHP_VERSIONS |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
Follow the instructions on Github to Create an Access Token in Github
By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.
You can tell Git you want to store credentials in the osxkeychain by running the following:-