Become an expert, build a following, and gain financial independence.
by Nathan Barry
Table of Contents
| #!/bin/bash | |
| # A little script to remind you to look away from your screen every so often. | |
| # | |
| # To install: | |
| # 1. Save this script somewhere | |
| # 2. Make the script executable: chmod +x /path/to/the/script.sh | |
| # 3. crontab -e | |
| # 4. Add this entry: */20 9-17 * * * /path/to/the/script.sh |
| nix-channel --add http://nixos.org/channels/nixpkgs-unstable | |
| nix-channel --update | |
| nix-channel -i hyper |
| # stop script on error signal | |
| set -e | |
| # remove old deployment folders | |
| if [ -d "/home/forge/deploy" ]; then | |
| rm -R /home/forge/deploy | |
| fi | |
| if [ -d "/home/forge/backup" ]; then | |
| rm -R /home/forge/backup | |
| fi |
| angular.module('lib.decorators', []) | |
| .config(['$provide', function($provide){ | |
| $provide.decorator('$rootScope', ['$delegate', function($rootScope) { | |
| var _proto | |
| , _new | |
| , nextUid = function() { | |
| return ++$rootScope.$id; | |
| } | |
| , Scope = function() { |
Become an expert, build a following, and gain financial independence.
by Nathan Barry
Table of Contents
| #!/bin/bash | |
| ### USAGE | |
| ### | |
| ### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
| ### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
| ### | |
| ### CLI options Contributed by @janpieper | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
| var express = require('express'); | |
| var app = express(); | |
| var router = express.Router(); | |
| var hbs = require('hbs'); | |
| app.set('view engine', 'html'); | |
| app.engine('html', hbs.__express); | |
| app.use(express.json()); | |
| app.use(express.urlencoded()); |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |