Skip to content

Instantly share code, notes, and snippets.


Sebastian Hübner imolein

View GitHub Profile
imolein / drone_docker-compose.yaml
Created Dec 13, 2019
Drone docker-compose.yaml
View drone_docker-compose.yaml
version: '3'
image: drone/drone:1
- 80:80
- drone-server-data:/var/lib/drone/
imolein / mask_to_cidr.lua
Last active Jun 19, 2019
Calculates the CIDR prefix from dot-decimal netmask
View mask_to_cidr.lua
-- calculates binary equivalent of "n"
local function bin(n)
local binary = {}
n = tonumber(n)
local function _bin(_n)
if _n > 1 then _bin(_n // 2) end
table.insert(binary, _n % 2)
imolein /
Last active Apr 12, 2019
Bash prompt with git branch and dirty detection
# Add the lines to your .bashrc
# color definitions
imolein / gps-logger.lua
Last active Feb 22, 2019
Test receiver for andoid gps logger
View gps-logger.lua
local pegasus = require('pegasus')
local server = pegasus:new({
port = '9999'
server:start(function(req, resp)
local method = req:method()
local path = req:path()
local query = req:params()
imolein / follower-domain-stats.lua
Last active Jan 28, 2019
This script returns the domains and what percentage of your followers belong to them. Updated version at
View follower-domain-stats.lua
#!/usr/bin/env lua
-- This script returns the domains and what percentage of your followers belong to them.
-- Works with Pleroma and Mastodon
-- Usage:
-- lua follower-domain-stats.lua INSTANCE USER_ID [ACCESS_TOKEN]
-- Example:
-- lua follower-domain-stats.lua 1 1234567abcdef
imolein / question-server.lua
Last active Sep 14, 2018
An ugly question server, written to learn how coroutines work
View question-server.lua
local socket = require("socket")
local inspect = require('inspect')
local host = ""
local port = 9090
if arg then
host = arg[1] or host
port = arg[2] or port
imolein / find-unimplemented-tasks.lua
Last active Jul 27, 2018
Rosetta Code/Find unimplemented tasks
View find-unimplemented-tasks.lua
-- Dependencies: lua >=5.1, lua-requests (>=1.2-0)
-- Example Usage: lua find-unimplemented-tasks.lua "Python"
-- Output:
-- Python has 24 unimplemented programming tasks:
-- 15 puzzle solver
-- Bitmap/PPM conversion through a pipe
-- Bitmap/Read an image through a pipe
-- ...
local requests = require('requests')
imolein /
Last active Nov 2, 2017
PleromaFE update script
# Make changes here BEGIN
# url where you can download the newest pipeline zip file
# folder where postActiv/GNUsocial is installed

!!! Outdated !!!

Please visit for up to date guides.

How to install PleromaBE

Pleroma is a lightwight OStatus implementation, written in Elixir by lain and others. It's currently in Beta status.

This guide was written during an installation on Ubuntu 16.04, but I think this should work for Debian too.


Keybase proof

I hereby claim:

  • I am imolein on github.
  • I am imo ( on keybase.
  • I have a public key whose fingerprint is 911F B443 62AD 67DE 4713 4DC6 AFA1 0CBF E439 1C0C

To claim this, I am signing this object:

You can’t perform that action at this time.