Skip to content

Instantly share code, notes, and snippets.

Pekka Järvinen raspi

Block or report user

Report or block raspi

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
raspi / Web
Last active Aug 29, 2015
Web hosting in ISP's perspective (WIP)
View Web

Existing software

  • CPanel
  • ISPConfig
  • Webmin

Base software

  • CoreOS
  • Docker (LXC containers)


raspi / MQ
Created Mar 28, 2014
MQ based filesystem (WIP)
View MQ

MQ based filesystem

  • There's FUSE for mounting filesystems
  • FUSE to MQ
raspi / MQ
Last active Aug 29, 2015
MQ based VPN (WIP)
View MQ
raspi / pf.conf
Created Apr 1, 2014
FreeBSD pf.conf (firewall)
View pf.conf
pass in quick proto tcp from any to port 22 keep state
raspi /
Created May 31, 2014
Remove file from directory if it's the only one there including sub-directories.
# -*- encoding: utf8 -*-
# Remove file from directory if it's the only one there including sub-directories.
# usage: <file to find> <directory>
# readme.txt /stuff/files/misc
import os
import sys
fn = None
def is_vatnum(num):
if len(num) > 9:
return False
if "-" not in num:
return False
n,check = num.split("-")


  • All machines are local
  • Multiple cheap "stupid" viewer client machines
  • One hypervisor which is used by these client machines


  • RDP
  • VNC
  • PCoIP
  • Direct video stream
raspi /
Last active Dec 22, 2015
Convert mixCloud set to .cue file
#!/bin/env python
# -*- coding: utf8 -*-
# raspi 2013
# mixCloud set to .cue file
# version 0.0.1
import os
import sys
import json
import urllib2
raspi /
Created Jan 15, 2014
Get audio .ogg files from game "Sherlock Holmes - The Awakened"
# raspi 2007
# gets audio ogg files from "sherlock holmes - the awakened"
import os
import sys
import struct
datafilename = 'music.snd'
datafilesize = os.stat(datafilename)[6]
raspi / telnet irc.txt
Created Jan 15, 2014
Miten irkataan telnetillä
View telnet irc.txt
telnet <IRC serveri> <portti>
NICK <nick>
USER <ident/username> "localhost" "localhost" :<Nimi>
Oikea IRC clientti - TELNET
/j <#kanava> [key] = JOIN <#kanava> [:key]
/p <#kanava> = PART <#kanava>
/msg #kanava <viesti> = PRIVMSG <#kanava> :<viesti>
/msg <nick> <viesti> = PRIVMSG <nick> :<viesti>
You can’t perform that action at this time.