Skip to content

Instantly share code, notes, and snippets.

Jonne Haß jhass

Block or report user

Report or block jhass

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View populations.json
"Antigua and Barbuda" : 90604,
"United Kingdom" : 63375707,
"China" : 1391193266,
"St. Lucia" : 183292,
"Netherlands" : 16790052,
"Tuvalu" : 9888,
"Iraq" : 34419098,
"Cambodia" : 15312752,
"Canada" : 35417147,

Keybase proof

I hereby claim:

  • I am jhass on github.
  • I am jhass ( on keybase.
  • I have a public key whose fingerprint is 2BA4 8007 D6F8 3856 3165 B0D7 F347 E0EB 47AC 70D6

To claim this, I am signing this object:

jhass / vmm-change-password[slash]index.php
Last active Aug 29, 2015
Afterlogic WebMail VMM password change plugin
View vmm-change-password[slash]index.php
* Afterlogic WebMail VMM password change plugin
* Based upon
* VMM:
* WebMail lite:
* The plugin calls doveadm pw.
* You should create a dedicated role and add it to the mailsys role.
jhass / .gitignore
Last active Sep 24, 2015
powerdns remote backend for
View .gitignore
View .well-known[slash]host-meta
<?xml version='1.0' encoding='UTF-8'?>
<XRD xmlns=''
<Link rel='lrdd'
<Title>Resource Descriptor</Title>
jhass / follow_all.rb
Created Nov 16, 2011
Add all followers to an aspect, edit and save under script/follow_all.rb, run with bundle exec ruby ./script/follow_all.rb
View follow_all.rb
#!/usr/bin/env ruby
user_id = 0 # your user id
aspect_name = "Work" # Name of the aspect followers should be added to
require File.join(File.dirname(File.expand_path(__FILE__)), '..', 'config', 'environment')
user = User.find(user_id)
aspect = user.aspects.where(:name => aspect_name).first
user.contacts.only_sharing.each do |contact|
user.share_with(contact.person, aspect)
jhass / yml-checker.rb
Created Dec 30, 2011
Simple script that tries to load it's arguments as YAML files. Don't forget to chmod +x it.
View yml-checker.rb
#!/usr/bin/env ruby
require 'yaml'
files = ARGV
if !files.nil? && files.length >= 1
files.each do |file|
if File.exists?(file) && File.file?(file)
print "checking #{file}..."
jhass /
Last active Sep 29, 2015
A PKGBUILD for Diaspora (git release)
jhass / fortune
Created May 21, 2012
Random fortune cookie
View fortune
#!/usr/bin/env python
# -*- coding: utf8
from random import choice
fortunes = ["“Welcome” is a powerful word.",
"A dubious friend may be an enemy in camouflage.",
"A feather in the hand is better than a bird in the air. (2)",
"A fresh start will put you on your way.",
"A friend asks only for your time not your money.",
"A friend is a present you give yourself.",
"A gambler not only will lose what he has, but also will lose what he doesn’t have.",
jhass /
Created Jul 7, 2012
Some helper functions to work with the GPIO ports of the RPi
function export() {
echo "$1" | sudo tee /sys/class/gpio/export
sudo chgrp -RH --dereference users /sys/class/gpio/*
sudo chmod -R g+w+r /sys/class/gpio/*/*
function unexport() {
echo "$1" | sudo tee /sys/class/gpio/unexport
You can’t perform that action at this time.