This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Windows customization | |
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Set-TaskbarSmall | |
cinst IIS-WebServerRole -source windowsfeatures | |
## Internet | |
cinst googlechrome | |
cinst firefox | |
cinst thunderbird |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |