Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<body>
<iframe src="https://veranstaltungen.aboutsource.demo.krautbuster.org/widget.html#!/containers/energiewende-mai-spaziergang?visibility=private" width="600", height="600"></iframe>
<iframe src="https://veranstaltungen.aboutsource.demo.krautbuster.org/widget.html#!/containers/energiewende-mai-spaziergang?visibility=public" width="600", height="600"></iframe>
<iframe src="https://veranstaltungen.aboutsource.demo.krautbuster.org/widget.html#!/containers/energiewende-mai-spaziergang" width="600", height="600"></iframe>
</body>
</html>
@ushis
ushis / usage.php
Created September 13, 2011 23:59
Basic usage of the output class
<?php
# Uses the default rules
echo Output::parse($input);
echo Output::factory($input)->get();
# Remove some rules
echo Output::factory($input)->remove_rules(array('em', 'strong'))->get();
@ushis
ushis / tree.sh
Created March 31, 2012 22:56
tree... in bash
#!/bin/sh
_tree() {
IFS=$'\x0a'
local dir len i d
dir=($(ls "$1" --group-directories-first 2>/dev/null))
len=${#dir[@]}
for (( i = 0; i < len; i++ )); do
if (( i == len - 1 )); then
#!/usr/bin/env ruby
require 'terminfo'
system('clear')
y, x = TermInfo.screen_size.map { |d| (d / 2) - 1 }
$stdout.write("#{"\n" * (y - 3)}#{" " * (x - 10)}Man Blowing A Bubble\n\n\n")
#!/usr/bin/env ruby
puts "ruby #{RUBY_VERSION}"
class A
def a
if respond_to?(:b)
puts "I am responding to b."
else
puts "I am not responding to b."
@ushis
ushis / PKGBUILD
Last active December 21, 2015 03:09
# Contributor: Guillermo Garcia |AhIoRoS| < ahioros@gmail.com >
pkgname=pidgin-extprefs
pkgver=0.7
pkgrel=5
pkgdesc="Plugin adds additional preferences for pidgin "
url="http://gaim-extprefs.sourceforge.net/"
depends=('pidgin' 'glibc')
makedepends=('pkgconfig')
@ushis
ushis / PKGBUILD
Created January 14, 2014 14:59
jabberd2-2.3.1 PKGBUILD
# Submitter: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Moritz Rudert (helios) <helios@planetcyborg.de>
# Maintainer: Janusz Lewandowski <lew21@enves.pl>
pkgname=jabberd2
pkgver=2.3.1
pkgrel=1
pkgdesc='Scalable, architecturally sound, and extensible XMPP server'
arch=('i686' 'x86_64')
url='http://jabberd2.org/'
@ushis
ushis / log
Created January 16, 2014 00:43
whitedb 7.2 clang 3.4 build log
configure: ====== initialising ======
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
+ aclocal
+ autoheader
+ autoconf
+ libtoolize --no-warn
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
+ '[' -d config-aux ']'
+ mkdir config-aux
+ automake -a -c
configure.ac:29: installing './compile'
@ushis
ushis / put.zsh
Last active March 31, 2017 00:19
# Uploads files to honkgong.
#
# Specify some files like so:
#
# put <file> [<file> ...]
#
# Or pipe some data into it:
#
# cat file1 file2 | put
#