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
raspi / mixcloud2cue.py
Last active Dec 22, 2015
Convert mixCloud set to .cue file
View mixcloud2cue.py
#!/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
raspi / sherlock_holmes_awakened_audio_extract.py
Created Jan 15, 2014
Get audio .ogg files from game "Sherlock Holmes - The Awakened"
View sherlock_holmes_awakened_audio_extract.py
# 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
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>
@raspi
raspi / web.config EF6 Npgsql.EntityFramework example.xml
Last active Oct 17, 2016
Web.config example Entity Framework 6 & Npgsql.EntityFramework (PostgreSQL)
View web.config EF6 Npgsql.EntityFramework example.xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Culture=neutral" requirePermission="false" />
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.5">
<assemblies>
@raspi
raspi / Web hosting.md
Last active Aug 29, 2015
Web hosting in ISP's perspective (WIP)
View Web hosting.md

Existing software

  • CPanel
  • ISPConfig
  • Webmin

Base software

  • CoreOS
  • Docker (LXC containers)

Hierarcy

@raspi
raspi / MQ VPN.md
Last active Aug 29, 2015
MQ based VPN (WIP)
View MQ VPN.md
@raspi
raspi / MQ filesystem.md
Created Mar 28, 2014
MQ based filesystem (WIP)
View MQ filesystem.md

MQ based filesystem

  • There's FUSE for mounting filesystems
  • FUSE to MQ
@raspi
raspi / pf.conf
Created Apr 1, 2014
FreeBSD pf.conf (firewall)
View pf.conf
# SSH
pass in quick proto tcp from any to port 22 keep state
@raspi
raspi / smb.conf.ini
Last active Sep 18, 2018
FreeBSD ZFS Samba 4 config with recycle and read/write optimizations example
View smb.conf.ini
# Samba 4 config example
# Connected to existing remote Samba 4 Active Directory Directory Controller
# ZFS pool @ /storage
# Network is 192.168.101.0/24
# Samba is installed with:
# pkg install samba42
# and then joined to existing AD with:
# samba-tool domain join <params>
# After this /usr/local/etc/smb4.conf is edited and restarted with /usr/local/etc/rc.d/samba_server restart
@raspi
raspi / rm_only_one_file.py
Created May 31, 2014
Remove file from directory if it's the only one there including sub-directories.
View rm_only_one_file.py
#!/bin/env/python
# -*- encoding: utf8 -*-
# Remove file from directory if it's the only one there including sub-directories.
# usage: script.py <file to find> <directory>
# script.py readme.txt /stuff/files/misc
import os
import sys
fn = None
You can’t perform that action at this time.