Skip to content

Instantly share code, notes, and snippets.

View ScribbleGhost's full-sized avatar

ScribbleGhost ScribbleGhost

View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\MPC-BE\Settings]
"Language"="en"
"HideCaptionMenu"=dword:00000000
"HideNavigation"=dword:00000000
"ControlState"=dword:00000013
"DefaultVideoFrame"=dword:00000004
"NoSmallUpscale"=dword:00000000
"NoSmallDownscale"=dword:00000000
REG ADD "HKCU\Software\MPC-BE\Settings" /V "Language" /T "REG_SZ" /D "en" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "HideCaptionMenu" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "HideNavigation" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "ControlState" /T "REG_DWORD" /D "0x00000013" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "DefaultVideoFrame" /T "REG_DWORD" /D "0x00000004" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "NoSmallUpscale" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "NoSmallDownscale" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "KeepAspectRatio" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "CompMonDeskARDiff" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
REG ADD "HKCU\Software\MPC-BE\Settings" /V "Volume" /T "REG_DWORD" /D "0x00000064" /F 1>NUL
@ScribbleGhost
ScribbleGhost / Mobile menu CSS example template.html
Last active September 12, 2019 15:14
A super simple hamburger-menu-drop-down-menu for responsive web design
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Heebo:100,300,400,500,700,800,900" rel="stylesheet">
<style>
/*Demo purposes styling only*/
@ScribbleGhost
ScribbleGhost / password-generator.py
Last active September 27, 2019 08:24
Password generator
import random
chars = "abcdefghijklmnopqrstuvwxyziABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^?!?$%&/()=?`'+#*'~';:_,.-<>|"
password = ""
print("Use Char list = %s \n" % chars)
length = int(input("[*] Input Password Length: "))
while len(password) != length:
password = password + random.choice(chars)
cd /d %LOCALAPPDATA%\Microsoft\OneDrive\ & OneDrive.exe /shutdown
REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\OneDrive" /V "FilesOnDemandEnabled" /f
set SUBLIMEDIR=C:\Portable\sublimetext\sublime_text.exe
rem OPEN FILES WITH SUBLIME TEXT
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%SUBLIMEDIR%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%SUBLIMEDIR% \"%1\"" /f
rem OPEN FOLDERS WITH SUBLIME TEXT
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%SUBLIMEDIR%,0" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%SUBLIMEDIR% \"%1\"" /f
Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Registry key value
DigitalID = objshell.RegRead(Path & "DigitalProductId")
Dim ProductName,ProductID,ProductKey,ProductData
'Get ProductName, ProductID, ProductKey
504b 0304 1400 0000 0800 3994 6e4f dd7e
b86b cd00 0000 4a01 0000 2d00 0000 4469
7361 626c 654f 6666 6963 6533 3635 5369
6d70 6c69 6669 6564 4163 636f 756e 7443
7265 6174 696f 6e2e 7265 6755 905d 4a03
3118 45cf b3e0 1e4a 1720 16a9 0f82 0f45
2d05 5161 b416 718a d476 4682 b591 e90c
c5cd abc7 0f41 2484 e4fe e426 375f 9f33
121b 5664 766c e951 50f1 22b7 a5a5 e143
e642 3589 b2b8 c7bd 7aa3 9ac4 1bf1 9003
@ScribbleGhost
ScribbleGhost / Remove HTML in local files
Last active December 31, 2019 01:26
For all files in folder of spesific file type, remove all HTML tags and save as new files. Article here: https://scribbleghost.net/2019/12/31/remove-html-from-local-files-with-python
# Import OS so we can write to files
import os
# Import Beautiful Soup 4 so we can parse HTML
from bs4 import BeautifulSoup
# Set the path where the target files are located
path = r'C:/some_folder'
# Set the file extension to look for
@ScribbleGhost
ScribbleGhost / youtube-dl_download_video_with_cookies.bat
Created January 1, 2020 16:19
Sample youtube-dl batch script for downloading videos with cookies
@echo off
rem You can use "Export Cookies" to get a cookie file: https://github.com/rotemdan/ExportCookies
rem Replace these variables and make sure the cookie file is in the same folder as the script
rem The link of the audio/video you want to download
set link=https://www.somelink.com
rem The location where you want to save the video