Skip to content

Instantly share code, notes, and snippets.

View ScribbleGhost's full-sized avatar

ScribbleGhost ScribbleGhost

View GitHub Profile
@ScribbleGhost
ScribbleGhost / LayoutModification.xml
Created April 4, 2019 23:56
Hide all pinned apps and all apps added to Start in Windows 10 1809
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
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 / Windows 10 English with Norwegian keyboard.ps1
Last active July 29, 2023 14:28
Keep Windows 10 display language English but set all regional settings to Norwegian including keyboard input
# Set WinUserLanguageList as a variable
$lang = Get-WinUserLanguageList
# Clear the WinUserLanguageList
$lang.Clear()
# Add language to the language list
$lang.add("en-US")
# Remove whatever input method is present
$lang[0].InputMethodTips.Clear()
# Add this keyboard as keyboard language
$lang[0].InputMethodTips.Add('0409:00000414')

Add EXE to PATH in Windows 10

Adding an executable file to Windows PATH means that you can use the EXE in CMD without having to type the whole path to the EXE every time. So for example you can type WinSCP instead of C:\Program Files (x86)\WinSCP\WinSCP.exe.

  • Click on Start and search for "environment"

  • Open "Edit the system environment variables"

https://i.imgur.com/1r9IU4S.png

@ScribbleGhost
ScribbleGhost / Personal Windows 10 customization script.bat
Last active July 7, 2023 19:26
A personal collection of Windows 10 customizations. Run as admin. Has to be run as a batch file, not in CMD.
REM ----------------------------------------------------------------------------------------------------------
REM ### Apps and app suggestions
REM ----------------------------------------------------------------------------------------------------------
REM TITLE: Turn Off Automatic Installation of Suggested Apps in Windows 10
REM LINK: https://www.tenforums.com/tutorials/68217-turn-off-automatic-installation-suggested-apps-windows-10-a.html
REM OPTIONS: 0x00000001=On, 0x00000000=Off
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /V "SilentInstalledAppsEnabled" /T "REG_DWORD" /D "0x00000000" /F 1>NUL 2>&1
@ScribbleGhost
ScribbleGhost / Underscores markup basics.html
Last active August 12, 2023 02:27
A visual illustration of underscores, the WordPress theme starter framework
<!-- below is content from header.php -->
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Heebo&display=swap" rel="stylesheet">
<style>
@-ms-viewport {
width: device-width;
}
@ScribbleGhost
ScribbleGhost / Compress PNG images with pngquant.XML
Last active March 23, 2021 04:35
Button for Directory Opus that will compress a PNG if compression is possible and replace the PNG. Rexuires pngquant in PATH.
<?xml version="1.0"?>
<button backcol="none" display="label" textcol="none">
<label>Compress PNG images with pngquant</label>
<tip>Will overwrite your file if compression is possible make a backup please</tip>
<icon1>#newcommand</icon1>
<function type="batch">
<instruction>@echo off</instruction>
<instruction>:start</instruction>
<instruction>pngquant.exe 256 --force --ext .png --quality=50-90 --ordered --speed=1 --strip --skip-if-larger {file}</instruction>
<instruction>shift</instruction>
@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)