This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ChangeImage(byte[] pixeldata, byte[] bmiInfoHeader) | |
{ | |
if (!IsConnected()) | |
{ | |
return; | |
} | |
int i = 0; | |
while (i <= (pixeldata.GetLength(0) - 2)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http.client | |
import json | |
import os.path | |
import requests | |
import re | |
import urllib | |
# Vul hier Megekko Order ID in | |
orderId = "" |