Skip to content

Instantly share code, notes, and snippets.

View stephenfuqua's full-sized avatar

Stephen Fuqua stephenfuqua

View GitHub Profile
const globby = require('globby');
const execa = require('execa');
const perf = require('execution-time')();
const colors = require('colors/safe');
function runSqlLintOnFile(file, writer) {
let numFailures = 0;
perf.start(file);
writer.testStarted(file);
# After a botched Windows file history process a few years ago, many of my
# photos files ended up being duplicated (sometimes several times). This
# script hunts down duplicates by name and size and deletes the one
# with the longer name. Examples:
# IMG_2825.JPG and IMG_2825 (2015_03_26 01_58_35 UTC).JPG
# IMG_2199.JPG, IMG_2199-1.JPG, IMG_2199 (2014_10_13 02_31_59 UTC).JPG, IMG_2199-1 (2014_10_13 02_31_59 UTC).JPG
$startDir = "c:\temp\Photos"
(Get-ChildItem -Path $startDir -Recurse) | ForEach-Object {
## Windows customization
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
cinst IIS-WebServerRole -source windowsfeatures
## Internet
cinst googlechrome
cinst firefox
cinst thunderbird
$toolsDir = "c:\tools"
$sshZip = "$toolsDir\OpenSSH-Win64.zip"
$sshDir = "$toolsDir\OpenSSH-Win64"
$install = "$sshDir\install-sshd.ps1"
# Download OpenSSH
$url = "https://github.com/PowerShell/Win32-OpenSSH/releases/download/v1.0.0.0/OpenSSH-Win64.zip"
Invoke-WebRequest -Uri $url -OutFile $sshZip
# Unzip the OpenSSH archive
@stephenfuqua
stephenfuqua / kendotTemplate2
Created August 1, 2017 21:20
New window template layout 2
<!DOCTYPE html>
<html lang="en">
<head>
<title>Preview</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="bg-success">
<h1>#: PageTitle #</h1>
@stephenfuqua
stephenfuqua / kendotTemplate1
Last active August 1, 2017 21:16
New Window Template - Layout 1
<!DOCTYPE html>
<html lang="en">
<head>
<title>Preview</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="bg-primary">
<h1>#: PageTitle #</h1>
<p>Template 1</p>