Skip to content

Instantly share code, notes, and snippets.

Avatar

Ilias Ktn henfiber

View GitHub Profile
@henfiber
henfiber / regex.list
Last active Sep 15, 2019
pihol regex suggestions
View regex.list
^(.+[-_.])??adse?rv(er?|ice)?s?[0-9]*[-.]
^(.+[-_.])??ad(choice|sdk)?[0-9]*[-.]
^(.+[-_.])??m?ad[sxv]?[0-9]*[-_.]
^(.+[-_.])??telemetry[-.]
^(.+[-_.])??xn--
^adim(age|g)s?[0-9]*[-_.]
^adtrack(er|ing)?[0-9]*[-.]
^advert(s|is(ing|ements?))?[0-9]*[-_.]
^aff(iliat(es?|ion))?[-.]
^banners?[0-9]+[-.]
@henfiber
henfiber / KB-Buying-guide-EU.md
Last active Nov 27, 2022
Buying keyboards and keyboard components from EU
View KB-Buying-guide-EU.md

Europe

View daemonize_function.sh
_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 Oct 5, 2022 — forked from ronert/compare_compilers.R
Updated combo benchmark (25.R,RevoR,loess,LAPACK benchmarks)
View compare_compilers.R
#####################
## 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 Nov 22, 2015 — forked from anonymous/config.json
Bootstrap Config - one-dark balanced - hsl base
View config.json
{
"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 Nov 22, 2015 — forked from anonymous/config.json
Bootstrap Config - one-dark colorful
View config.json
{
"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 Nov 22, 2015 — forked from anonymous/config.json
Bootstrap Config - one-dark
View config.json
{
"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",
View sublime-text-3-x32.sh
#!/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