- Install python 2.7.11
command line
$ PYTHON_CONFIGURE_OPTS="--enable-shared" \
LDSHARED="clang -bundle" \
LDCXXSHARED="clang++ -bundle" \
BLDSHARED="clang -bundle -lpython2.7" \
pyenv install 2.7.11
command line
$ PYTHON_CONFIGURE_OPTS="--enable-shared" \
LDSHARED="clang -bundle" \
LDCXXSHARED="clang++ -bundle" \
BLDSHARED="clang -bundle -lpython2.7" \
pyenv install 2.7.11
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf to /usr/local/etc/nginx/default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plist to /Library/LaunchDaemons/| #!/bin/bash | |
| for i in {1..168} # week | |
| do | |
| echo "ITERATION $i" | |
| seconds=3600 #hour | |
| # Date format for the recording file name |
| #!/bin/sh | |
| # This script must be executed in the repo where | |
| # the *.ts files are. | |
| # It will concatenate the segments into one temp | |
| # file which ffmpeg will reencode the audio track. | |
| # By default the ouptup filename is output.mp4 | |
| # but can be changed by providing the name as parameter. | |
| # | |
| # ffmpeg is required |
I will maybe someday get around to dusting off my C and making these changes myself unless someone else does it first.
Imagine a long-running development branch periodically merges from master. The
git log --graph --all --topo-order is not as simple as it could be, as of git version 1.7.10.4.
It doesn't seem like a big deal in this example, but when you're trying to follow the history trails in ASCII and you've got several different branches displayed at once, it gets difficult quickly.
###Create a project from Maven Template:
To start a new maven project, use the maven archetype plugin from the command line using the archetype:generate goal.
The following command will tell maven to create a java project from maven-archetype-quickstart template, if you ignore the archetypeArtifactId argument, then a list of the templates will be listed for you to choose.
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
On a mac you can use homebrew by running the command brew install pandoc.
| /** | |
| * Read file line by line "synchronous" | |
| * | |
| * require nodejs ~0.11, run with "node --harmony" | |
| * | |
| * Example: | |
| * | |
| * var readLineSync = require('./readLineSync'); | |
| * | |
| * |
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /Users/YOUR_USERNAME/Sites; | |
| access_log /Library/Logs/default.access.log main; | |
| location / { | |
| include /usr/local/etc/nginx/conf.d/php-fpm; | |
| } |