Skip to content

Instantly share code, notes, and snippets.

import http.client
import json
import os.path
import requests
import re
import urllib
# Vul hier Megekko Order ID in
orderId = ""
--[[
See script details on https://github.com/kevinlekiller/mpv_scripts
Valid --script-opts are (they are all optional):
autospeed-nircmd=false true/false - Use nircmd to change the refresh rate of your monitor.
autospeed-speed=false true/false - Adjust speed of the video?.
autospeed-nircmdc="nircmdc" String - Path to nircmdc executable file. If not set, nircmdc will be searched in Windows PATH variable.
autospeed-monitor=0 Number - Which monitor (display) to set the refresh rate on.
autospeed-dwidth=1920 Number - Display width.
autospeed-dheight=1080 Number - Display height.
#write out current crontab
crontab -l > mycron
#echo new cron into cron file
echo "0 18 * * * hyperion-remote --clearall" >> mycron
echo "30 22 * * * hyperion-remote --color black -p 1" >> mycron
#install new cron file
crontab mycron
rm mycron
@RickDB
RickDB / CI_004.cs
Last active September 17, 2015 15:31
public void ChangeImage(byte[] pixeldata, byte[] bmiInfoHeader)
{
if (!IsConnected())
{
return;
}
int i = 0;
while (i <= (pixeldata.GetLength(0) - 2))
{
@RickDB
RickDB / gist:d2ed54937a5f821e709a
Last active August 29, 2015 14:23
OV - Youtube fixes #002
using Google.Apis.Auth.OAuth2;
using Google.Apis.Json;
using Google.Apis.Services;
using Google.Apis.Util.Store;
using Google.Apis.YouTube.v3;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
@RickDB
RickDB / gist:443591b4b94a1c20a6b2
Last active August 29, 2015 14:23
OV - Youtube upload by sort fix #1
using Google.Apis.Auth.OAuth2;
using Google.Apis.Json;
using Google.Apis.Services;
using Google.Apis.Util.Store;
using Google.Apis.YouTube.v3;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Linq;