Skip to content

Instantly share code, notes, and snippets.

Avatar

Rick164 RickDB

View GitHub Profile
View MegekkoGpuOrderStatus.py
import http.client
import json
import os.path
import requests
import re
import urllib
# Vul hier Megekko Order ID in
orderId = ""
View autospeedwin.lua
--[[
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.
View hyp_cron.sh
#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
View CI_004.cs
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 Aug 29, 2015
OV - Youtube fixes #002
View gist:d2ed54937a5f821e709a
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 Aug 29, 2015
OV - Youtube upload by sort fix #1
View gist:443591b4b94a1c20a6b2
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;