This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_daemonize() | |
{ #daemonize an external command | |
#http://blog.n01se.net/blog-n01se-net-p-145.html | |
[ -z "${1}" ] && return 1 | |
( # 1. fork, to guarantee the child is not a process | |
# group leader, necessary for setsid) and have the | |
# parent exit (to allow control to return to the shell) | |
# 2. redirect stdin/stdout/stderr before running child | |
[ -t 0 ] && exec </dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################### | |
## Updated and combo benchmark | |
## Including : | |
## R-benchmark-25.R from Simon Urbanek | |
## Revolution Analytics benchmarks : http://www.revolutionanalytics.com/revolution-revor-enterprise-benchmark-details | |
## Extra benchmarks (loess and eigen) | |
## LAPACK benchmarks (QR,eigen,cholesky,svd,prcomp,balance,kappa,norm,solve) | |
## TODO: | |
## add extra functions like dist() and cluster() - also provided by gputools | |
## separate the gpu from cpu benchmarks, and the analysis from the benchmark code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vars": { | |
"@gray-base": "hsl(240,20,0)", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "lighten(#61aeef, 6.5%)", | |
"@brand-success": "#206B52", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "lighten(#61aeef, 6.5%)", | |
"@brand-success": "#206B52", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "lighten(#61aeef, 6.5%)", | |
"@brand-success": "#206B52", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TARBALL="sublime_text_3_build_3065_x32.tar.bz2" | |
TMP_DIR="/tmp/$$" | |
TARGET="/opt/sublime_text" | |
LINK=/usr/local/bin/subl | |
mkdir -p "$TMP_DIR" | |
if [ ! -f "$TARBALL" ]; then |