Skip to content

Instantly share code, notes, and snippets.

Niko Pahajoki nikop

Block or report user

Report or block nikop

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
@nikop
nikop / EndlessScroll_new.user.js
Last active Aug 29, 2015
SGv2 Endless Scroll
View EndlessScroll_new.user.js
// ==UserScript==
// @name SteamGifts.com - Endless Scroll
// @namespace madjoki
// @include http://www.steamgifts.com/*
// @version 26
// @grant none
// @run-at document-end
// ==/UserScript==
(function () {
@nikop
nikop / streamdownloader.user.js
Created Oct 2, 2014
StreamDownloader Avustin
View streamdownloader.user.js
// ==UserScript==
// @name StreamDownloader Avustin
// @namespace StreamDownloader
// @description StreamDownloader avustin
// @include http://areena.yle.fi/tv/*
// @include http://*ruutu.fi/*
// @include http://www.katsomo.fi/?progId=*
// @version 2
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
@nikop
nikop / AdobeHDS-yle.php
Last active Aug 29, 2015
AdobeHDS-yle.php
View AdobeHDS-yle.php
<?php
define('AUDIO', 0x08);
define('VIDEO', 0x09);
define('SCRIPT_DATA', 0x12);
define('FRAME_TYPE_INFO', 0x05);
define('CODEC_ID_AVC', 0x07);
define('CODEC_ID_AAC', 0x0A);
define('AVC_SEQUENCE_HEADER', 0x00);
define('AAC_SEQUENCE_HEADER', 0x00);
define('AVC_NALU', 0x01);
@nikop
nikop / cdon.py
Last active Dec 17, 2015
CDON Varastosaldo
View cdon.py
import urllib, urllib.request
import http, http.cookiejar
import re
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("id")
args = parser.parse_args()
m3 = re.search('(\d+)$', args.id)
@nikop
nikop / snapraid.ps1
Last active Dec 15, 2015
Powershell script for SnapRaid to create ShadowCopies before syncing and using shadow copies for sync.
View snapraid.ps1
$path = "C:\SnapRaid\"
$exepath = $path + "snapraid.exe"
$config = $path +"snapraid.conf"
$config_shadow = $path + "snapraid_shadow2.conf"
$data = Get-Content $config
$file = New-Object System.IO.StreamWriter $config_shadow
$now = Get-Date
$logfile = $path + "SnapRAID-$(get-date -format yyMMdd-HHmmss).log"
$log = New-Object System.IO.StreamWriter $logfile
You can’t perform that action at this time.