Skip to content

Instantly share code, notes, and snippets.

View jhbruhn's full-sized avatar
energized

Jan-Henrik Bruhn jhbruhn

energized
View GitHub Profile
@jhbruhn
jhbruhn / electron-launcher.sh
Last active December 7, 2020 17:31
Electron launcher to pass command line flags from Home Config
#!/bin/sh
CONFIG_DIR=${XDG_CONFIG_HOME:-$HOME/.config}
CONFIG_FILE=$CONFIG_DIR/electron-flags.conf
xargs -a $CONFIG_FILE /usr/lib/electron/electron $@ || /usr/lib/electron/electron $@
# Script generated with create_pkgbuild.py
# For more information: https://github.com/ros-melodic-arch/ros-build-tools-py3
pkgdesc="ROS - Provides a cmake config for the default version of Gazebo for the ROS distribution."
url='http://gazebosim.org/tutorials?cat=connect_ros'
pkgname='ros-melodic-gazebo-dev'
pkgver='2.8.6'
arch=('any')
pkgrel=1
license=('Apache 2.0')
// ==UserScript==
// @name My Fancy New Userscript
// @namespace https://whatsremote.com/*
// @version 0.1
// @description Peda B's house
// @match http://tampermonkey.net/
// @include https://whatsremote.net/*
// @require http://audiocogs.org/codecs/js/aurora.js
// @require http://audiocogs.org/codecs/js/aac.js
// @copyright 2014, PedaB
@jhbruhn
jhbruhn / post-receive.sh
Created July 26, 2014 15:30
Pedas PostReceive
#!/bin/bash -l
GIT_REPO=$HOME/website.git
TMP_GIT_CLONE=$HOME/tmp/git/website
PUBLIC_WWW=/var/www/virtual/$USER/html
DIR=`pwd`
unset GIT_DIR
#rm -rf $TMP_GIT_CLONE
. $HOME/.bash_profile
@jhbruhn
jhbruhn / keybase.md
Last active August 29, 2015 13:58
keybase proof

Keybase proof

I hereby claim:

  • I am jhbruhn on github.
  • I am jhbruhn (https://keybase.io/jhbruhn) on keybase.
  • I have a public key whose fingerprint is 2052 0B4A D685 B452 15AB A7B2 96BC EF2B 0D4C 037A

To claim this, I am signing this object:

@jhbruhn
jhbruhn / wlan.sh
Last active August 29, 2015 13:56 — forked from sgade/wlan.sh
# Use this built-in tools
# May need to install watch
watch -n 1 cat /proc/net/wireless
# Or use wavemon (https://github.com/uoaerg/wavemon)
# Install via apt-get install wavemon
# This will be self-updating
sudo wavemon
echo "Erdbeermarmelade!"
for(int i = 0; i < 10; i+=3) {
//...
i -= 2;
//...
}
@jhbruhn
jhbruhn / SConstruct
Last active December 20, 2015 03:09
POCA!1!!1! build with scons
env = Environment() #init env
poca = env.Program(target = 'poca', source = ['poca.c', 'vector.c'], LIBS=['ncurses', 'form']) #build POCA
# install POCA
env.Install("/usr/local/bin", poca)
env.Alias('install', ['/usr/local/bin'])
el:"", //Feed-Item-List
events: { 'scroll': 'checkScroll' },
checkScroll: function () {
var triggerPoint = 100; // 100px from the bottom
if( !this.isLoading && this.el.scrollTop + this.el.clientHeight + triggerPoint > this.el.scrollHeight ) {
this.addPage(); //oderso
}
}