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
# ******************************************* | |
# | |
# Mod by: Jared M. Smith | |
# Mod on: 2015.01.14 | |
# Mod y?: Disable Google Chrome updates. | |
# | |
# ******************************************* | |
# Log method | |
function Log { Param([string]$message) Write-Host $message; } |
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
# ******************************************* | |
# | |
# Mod by: Jared M. Smith | |
# Mod on: 2015.04.xx | |
# Mod y?: Enable or disable Google Chrome updates. | |
# | |
# ******************************************* | |
# Log method | |
if (! (test-path function:Log)) { function Log { Param([string]$message) Write-Host $message; } } |
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
function CreateChromeAppLink { | |
Param( | |
[string]$chromePath = """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`"" | |
) | |
$appBasePath = "C:\your\app\" | |
$linkPath = "C:\Users\Public\Desktop\YourApp.lnk" | |
$appUrl = "https://test.com" | |
$shell = New-Object -COM WScript.Shell |
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
public static class MyExtensions | |
{ | |
// Adapted from http://stackoverflow.com/a/17602769/448876. | |
public static String DumpJson<T>(this T obj) | |
{ | |
return | |
obj | |
.ToJson() | |
.Dump(); | |
} |
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
git remote prune origin > delete-branches.txt | |
# Filter out non-branch names. | |
grep -oP '(?<=] origin\/).*' ./delete-branches.txt | xargs -L1 git br -d |
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
# TODO: make this a real shell script with variables, this is a one liner for a bash shell prompt. | |
ls | grep -oP '(?<=hx).*' | perl -ne 'print "hx$_ healthtrax$_"' | xargs -n 2 git mv |
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
# elmjutsu | |
'atom-text-editor:not([mini])[data-grammar^="source elm"]': | |
'f12': 'elmjutsu:go-to-definition' | |
'ctrl-r': 'elmjutsu:go-to-symbol' | |
'shift-f12': 'elmjutsu:find-usages' | |
'f8': 'elmjutsu:go-to-next-usage' | |
'shift-f8': 'elmjutsu:go-to-previous-usage' | |
'ctrl-f12': 'elmjutsu:go-back' | |
'alt-enter': 'elmjutsu:add-import' | |
'f2': 'elmjutsu:rename-symbol' |