Skip to content

Instantly share code, notes, and snippets.

View RoliSoft's full-sized avatar

Roland Bogosi RoliSoft

View GitHub Profile
@RoliSoft
RoliSoft / netflix_adjustments.js
Created March 11, 2018 14:33
Tampermonkey script for Netflix which auto-selects the highest bitrate and sets the playback speed to 1.7x.
// ==UserScript==
// @name Netflix adjustments
// @version 0.1
// @author RoliSoft
// @match https://*.netflix.com/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
@RoliSoft
RoliSoft / libmockchroot.c
Created September 1, 2016 11:13
Small lib to mock chroot() for pacman in Arch Linux running under WSL.
// gcc libmockchroot.c -shared -fPIC -ldl -o /lib64/libmockchroot.so
// echo "/lib64/libmockchroot.so" >> /etc/ld.so.preload
#define _GNU_SOURCE
#include <unistd.h>
#include <libgen.h>
#include <dlfcn.h>
#include <linux/limits.h>
#include <string.h>

Keybase proof

I hereby claim:

  • I am rolisoft on github.
  • I am rolisoft (https://keybase.io/rolisoft) on keybase.
  • I have a public key ASDXIioSMqz-mSPssVxdG6m9kIj0LHNKw74upAL4gTKKpwo

To claim this, I am signing this object:

@RoliSoft
RoliSoft / migrate_tvshowtracker_sqlite.php
Last active August 29, 2015 14:07
This script is used to migrate SQLite databases from RS TV Show Tracker <2.1 installations to the new binary format used in >2.2.
<?
set_time_limit(0);
//define(DEBUG, true);
// Make sure TVShows.db3 exists near this PHP file. If not, edit accordingly.
$utn = 'TVShows.db3';
// This is the directory, where the new database will be dumped.
// Copy this "db" folder to the root of the software, replacing any previous "db" folder leftover.
mkdir('db');