Skip to content

Instantly share code, notes, and snippets.

View warthurton's full-sized avatar

Wayne Arthurton warthurton

View GitHub Profile
@warthurton
warthurton / clock.html
Created February 10, 2022 17:08 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >

Keybase proof

I hereby claim:

  • I am warthurton on github.
  • I am warthurton (https://keybase.io/warthurton) on keybase.
  • I have a public key ASA-hQFehpeIfqvF9tAoemtfRw7sdWhxafQqXR2rs3zaxQo

To claim this, I am signing this object:

{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34cf85}",
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "dark",
"keybindings": [
{
@warthurton
warthurton / DLC.md
Last active June 4, 2018 18:14
Sleeping Dogs DLC dat List
DLC Name Filename
Gold Top Dog 1E6323E1.dat
Silver Top Dog 576E446C.dat
Red Envelope Pack E58008F5.dat
High Roller Pack AC8D6F78.dat
Old School Pack 8C79ECFB.dat
@warthurton
warthurton / extract.wsh.js
Created April 4, 2018 20:15 — forked from Beej126/AutoUnZip.wsh.js
Windows File Explorer auto extract zips like Mac Finder
function CheckFolderExistsAndCreate(folder) {
if (fso.FolderExists(folder)) {
WScript.Echo("destination folder already exists: " + folder);
WScript.Quit(1);
}
fso.CreateFolder(folder);
}
function isBiggish(items, depth, why) {
@warthurton
warthurton / README.md
Created December 17, 2017 21:47
Windows Weather Wallpaper via NodeJs scraping a prominent web page

NodeJs Based Exercise

  1. scrape a web page
  2. transform the content
  3. render to png
  4. save to desktop wallpaper

Install

  1. save the js and cmd files to a folder...
  2. edit the url on line 32 of the js for your preferred location
  3. put WKHTMLtoImage.exe in same folder (or your global path); note: somehow the setup.exe didn't save files to my program files but simply extracting the bin folder via zip was fine
@warthurton
warthurton / !README.md
Last active October 23, 2018 15:00 — forked from Beej126/README.md
Scripted Windows 10 "Win+X" Menu (aka "Power User Menu")

Scripted Win+X shortcuts

Using this in tandem with ListShortcuts.csx becomes a simple scripted backup/restore mechanism for porting your favorite WinX shortcuts to other machines, etc.

sample usage:

  • scriptcs ListShortCuts.csx -- "%LOCALAPPDATA%\Microsoft\Windows\WinX\Group3" > FaveLinks.md
  • scriptcs WinXCreate.csx -- FaveLinks.md

handy nuggets:

  • WinX GUI Tool
  • WinX folder: cd %LOCALAPPDATA%\Microsoft\Windows\WinX
@warthurton
warthurton / stuff_to_del.bat
Created May 30, 2017 18:20 — forked from Gaspadlo/stuff_to_del.bat
Fastest possible way to delete large number of files/folders for MS Win (thousands to millions of folders)
@echo off
set /p Input=Enter Folder name to delete:
:ConfPromt
set /p Confirm=Are you sure you want to delete "%CD%\%Input%"?(y/n):
IF /I "%Confirm%" == "n" (
Echo Canceling.
pause
EXIT /b
)
IF /I NOT "%Confirm%" == "y" (
Update-ExecutionPolicy
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-WindowsExplorerOptions -EnableOpenFileExplorerToQuickAccess
Set-WindowsExplorerOptions -DisableShowFrequentFoldersInQuickAccess -DisableShowRecentFilesInQuickAccess
Set-WindowsExplorerOptions -EnableExpandToOpenFolder -DisableShowProtectedOSFiles
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart
Set-StartScreenOptions -DisableSearchEverywhereInAppsView
Set-TaskbarOptions -Size Small -Lock -Combine Full
<a class="bookmarklet" href="javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?url='+encodeURIComponent(q)+'&amp;description='+encodeURIComponent(d)+'&amp;title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=700,height=350'));">popup</a>