Skip to content

Instantly share code, notes, and snippets.

View henfiber's full-sized avatar

Ilias Ktn henfiber

View GitHub Profile
@henfiber
henfiber / daemonize_function.sh
Created November 20, 2017 03:10 — forked from javier-lopez/daemonize_function.sh
daemonize sh function
_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
@henfiber
henfiber / compare_compilers.R
Last active October 5, 2022 08:54 — forked from ronert/compare_compilers.R
Updated combo benchmark (25.R,RevoR,loess,LAPACK benchmarks)
#####################
## 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
@henfiber
henfiber / config.json
Last active November 22, 2015 12:48 — forked from anonymous/config.json
Bootstrap Config - one-dark balanced - hsl base
{
"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",
@henfiber
henfiber / config.json
Last active November 22, 2015 00:50 — forked from anonymous/config.json
Bootstrap Config - one-dark colorful
{
"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",
@henfiber
henfiber / config.json
Last active November 22, 2015 00:50 — forked from anonymous/config.json
Bootstrap Config - one-dark
{
"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",
#!/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