Skip to content

Instantly share code, notes, and snippets.

View Mischi's full-sized avatar

Fabian Raetz Mischi

  • Germany, Dortmund
View GitHub Profile
@Mischi
Mischi / .kshrc
Last active March 19, 2019 21:55
OpenBSD + Node.js + Web development
# add node to path and let npm use system clang/clang++ by default
export PATH="$HOME/.node/bin:$PATH"
alias npm='CC=/usr/bin/clang CXX=/usr/bin/clang++ LIBSASS_EXT=auto npm'

Keybase proof

I hereby claim:

  • I am Mischi on github.
  • I am fraetz (https://keybase.io/fraetz) on keybase.
  • I have a public key whose fingerprint is 22AD 1F6F 649C 8B88 B063 3D15 8360 F083 02A7 D4BF

To claim this, I am signing this object:

@Mischi
Mischi / Verifying my Peepeth
Last active August 23, 2018 11:08
Verifying my Peepeth
Verifying my identity on Peepeth.com 0x02c90343d89771ec110c8f73590a7232ae8019cd
(require 'package)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
(setq package-enable-at-startup nil)
(package-initialize)
(defun ensure-package-installed (&rest packages)
@Mischi
Mischi / ng-attach.html
Last active August 25, 2016 20:50
attach a directive's controller onto the scope like ng's form[name] does!
<!DOCTYPE html>
<html lang="en">
<head>
<title>ng-attach poc</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body ng-app="ng-attach-poc">
<ngap-parent></ngap-parent>
<script src="https://npmcdn.com/angular@latest/angular.js"></script>
@Mischi
Mischi / lazy-attr.html
Last active January 30, 2016 23:12
lazy-attr POC - lazy attach attributes to elements
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>angular-lazy-attr</title>
</head>
<body ng-app="test">
<test-text>
<lazy-attrs ng-required="v=='asdf'" ng-maxlength="10"></lazy-attrs>
<lazy-attrs lazy-for="label" class="some-class-via-lazy-attr"></lazy-attrs>
@Mischi
Mischi / get_outdated
Last active January 2, 2016 17:43
list installed packages with new upstream releases (via portroach.openbsd.org) - usage: pkg_info -qP | get_outdated
#!/usr/bin/perl
#
# Copyright (c) 2014 Andrew Fresh <andrew@afresh1.com>
# Copyright (c) 2015 Fabian Raetz <fabian.raetz@gmail.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
@Mischi
Mischi / setup-project-dependencies.sh
Last active September 25, 2015 19:34
shell script to setup a new wordpress project environment based on bedrock/sage starter theme
#!/bin/sh
#
# Copyright (c) 2015 Fabian Raetz <fabian.raetz@gmail.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
@Mischi
Mischi / openpass
Created February 22, 2015 21:50
openpass - cli password manager (inspired by http://www.passwordstore.org/)
#!/bin/ksh
#
# Copyright (c) 2015 Fabian Raetz <fabian.raetz@gmail.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
@Mischi
Mischi / .ycm_extra_conf.py
Last active August 29, 2015 14:13
ycm_extra_conf.py for OpenBSD src tree / Makefiles
# Based on
# https://github.com/Valloric/ycmd/blob/master/cpp/ycm/.ycm_extra_conf.py
#############################################
# HOWTO
#############################################
#
# =============== Step 1 ====================
#
# For kernel .c files, CFLAGS / CPPFLAGS from