These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
You're not gonna become a master in your spare time, but you can get decently good at photography in five years of dedicated but non-full-time practice. It's taken me about twice that to get decent, but I fucked around a lot along the way.
You don't need a ton of fancy equipment, but photography does require some gear. I'll limit the gear-buying here to once a year (not counting books).
| #!/usr/bin/env PYTHONIOENCODING=utf-8 python | |
| # encoding: utf-8 | |
| """Git pre-commit hook which lints Python, JavaScript, SASS and CSS""" | |
| from __future__ import absolute_import, print_function, unicode_literals | |
| import os | |
| import subprocess | |
| import sys |
| # | |
| # How to install automatically Oracle Java 7 under Salt Stack | |
| # | |
| # Thanks Oracle for complicating things :( | |
| # | |
| # 1. Create a java/ folder in your salt master | |
| # 2. Paste this file in init.sls | |
| # 3. salt '*' state.sls java | |
| # | |
| # Source: |
| # encoding=utf-8 | |
| import sys | |
| import datetime | |
| import email | |
| import mimetypes | |
| import os | |
| import time | |
| import gzip | |
| import subprocess |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/bin/bash | |
| # This way you can customize which branches should be skipped when | |
| # prepending commit message. | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master develop test) | |
| fi | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" |