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 / EndlessScroll_new.user.js
Last active Aug 29, 2015
SGv2 Endless Scroll
View EndlessScroll_new.user.js
// ==UserScript==
// @name - Endless Scroll
// @namespace madjoki
// @include*
// @version 26
// @grant none
// @run-at document-end
// ==/UserScript==
(function () {
nikop / streamdownloader.user.js
Created Oct 2, 2014
StreamDownloader Avustin
View streamdownloader.user.js
// ==UserScript==
// @name StreamDownloader Avustin
// @namespace StreamDownloader
// @description StreamDownloader avustin
// @include*
// @include http://**
// @include*
// @version 2
// @grant none
// @require
nikop / AdobeHDS-yle.php
Last active Aug 29, 2015
View AdobeHDS-yle.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 /
Last active Dec 17, 2015
CDON Varastosaldo
import urllib, urllib.request
import http, http.cookiejar
import re
import argparse
parser = argparse.ArgumentParser()
args = parser.parse_args()
m3 ='(\d+)$',
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.