Skip to content

Instantly share code, notes, and snippets.

Wayne Arthurton warthurton

Block or report user

Report or block warthurton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@warthurton
warthurton / DLC.md
Last active Jun 4, 2018
Sleeping Dogs DLC dat List
View DLC.md
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 Apr 4, 2018 — forked from Beej126/AutoUnZip.wsh.js
Windows File Explorer auto extract zips like Mac Finder
View extract.wsh.js
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 Dec 17, 2017
Windows Weather Wallpaper via NodeJs scraping a prominent web page
View README.md

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 Oct 23, 2018 — forked from Beej126/!README.md
Scripted Windows 10 "Win+X" Menu (aka "Power User Menu")
View !README.md

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 — 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)
View stuff_to_del.bat
@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" (
View gist:5d6b7b263c78d3a3e5a563ffe7137118
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
View test.html
<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>
View readlater.js
javascript:(function(){var e=true;var r=null;var t=true;var n={javascript:"javascript",js:"javascript",python:"python",ios:"ios",youtube:"video",vimeo:"video",video:"video",books:"book",book:"book",game:"games",games:"games",recipe:"recipe",recipes:"recipe",food:"recipe",ingredients:"recipe",meal:"recipe"};var o={"github.com":".entry-title .js-current-repository"};var i={"www.kickstarter.com":".short-blurb"};var a=1e3;var c=function(e){return e.toLowerCase()};var u=function(e){return e?e.textContent.trim().replace(/\s+/g," ").substring(0,a):null};var l=c(document.title);var s=function(e){if(e){return l.indexOf(c(e))!==-1}else{return false}};var f=function(e,r,t){t=t||window;var n=e.length;var o;for(var i=0;i<n;++i){o=r.call(t,e[i]);if(o!==null){return o}}return null};var v=function(){var e=location.href;var r=location.hostname;var t;if(r in o){t=document.querySelector(o[r]);if(t){return u(t)}}var n=document.title;t=document.querySelector("meta[property='og:title']");if(t){n=t.content.trim().replace(/\s+/g," "
View bookmark.js
javascript:(function(){var e=false;var r=null;var t=true;var n={javascript:"javascript",js:"javascript",python:"python",ios:"ios",youtube:"video",vimeo:"video",video:"video",books:"book",book:"book",game:"games",games:"games",recipe:"recipe",recipes:"recipe",food:"recipe",ingredients:"recipe",meal:"recipe"};var o={"github.com":".entry-title .js-current-repository"};var i={"www.kickstarter.com":".short-blurb"};var a=1e3;var c=function(e){return e.toLowerCase()};var u=function(e){return e?e.textContent.trim().replace(/\s+/g," ").substring(0,a):null};var l=c(document.title);var s=function(e){if(e){return l.indexOf(c(e))!==-1}else{return false}};var f=function(e,r,t){t=t||window;var n=e.length;var o;for(var i=0;i<n;++i){o=r.call(t,e[i]);if(o!==null){return o}}return null};var v=function(){var e=location.href;var r=location.hostname;var t;if(r in o){t=document.querySelector(o[r]);if(t){return u(t)}}var n=document.title;t=document.querySelector("meta[property='og:title']");if(t){n=t.content.trim().replace(/\s+/g,"
View gist:e711f50f610be57a7d2aa916ed25d025
javascript:(function(){!function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return o(n?n:t)},f,f.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";e.exports={readLater:!1,appUrl:void 0,quoteSelection:!0,tagKeywords:{javascript:"javascript",js:"javascript",python:"python",functional:"functional",testing:"testing",youtube:"video",vimeo:"video",video:"video",books:"books",book:"books",github:"github",brooklyn:"brooklyn",motorcycles:"motorcycles",motorcycle:"motorcycles"},titleTweaks:{"github.com":".entry-title .js-current-repository"},descriptionTweaks:{"en.wikipedia.org":"#mw-content-text p"},textLengthLimit:2e3}},{}],2:[function(t,e,n){"use strict";var r=t("strip-utm"),
You can’t perform that action at this time.