Skip to content

Instantly share code, notes, and snippets.

// Outputting HTML
Util.RawHtml(String.Format("<h2>Testing worksheet '{0}'</h2>\n", worksheetName)).Dump();
@kenny-evitt
kenny-evitt / Add-auto-hotkey-to-move-mouse-cursor-to-top-left-of-main-display.ahk
Last active February 3, 2016 15:45
Create an AutoHotkey hotkey to move the mouse cursor to the top-left of the "main display"
; Alt-Shift-m
!+m::
CoordMode, Mouse, Screen
; The following moves the cursor to the center of the "main" display:
;MouseMove, A_ScreenWidth/2, A_ScreenHeight/2, 0
; The following moves the cursor to the top-left of the "main" display:
MouseMove, 1, 1, 0
Process: Electron Helper [1575]
Path: /Users/USER/*/LightTable.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper
Identifier: com.github.electron.helper
Version: 0
Code Type: X86-64 (Native)
Parent Process: Electron [1573]
Responsible: Electron Helper [1575]
User ID: 501
Date/Time: 2016-01-10 13:40:51.639 -0500
@kenny-evitt
kenny-evitt / SSMS-ViEmu-custom-keymapping.md
Created September 1, 2015 18:38
Custom keyboard mappings for some commands for use with SSMS and ViEmu

New query

  • File.NewQuery - Ctrl+K, N

Show or hide "Results" pane

  • Window.ShowResultsPane - Ctrl+K, R
@kenny-evitt
kenny-evitt / Git config for DiffMerge
Created August 5, 2015 16:49
Relevant lines from my .gitconfig for DiffMerge on Windows
[merge]
tool = diffmerge
[mergetool "diffmerge"]
trustExitCode = true
cmd = \"C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe\" --merge --result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
@kenny-evitt
kenny-evitt / .vimrc
Created July 13, 2015 13:11
.vimrc for Windows
" Default settings
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
function! MyDiff()
let opt = '-a --binary '
@kenny-evitt
kenny-evitt / Remove-deny-ACL-entries-recursively.ps1
Created June 14, 2015 16:37
Remove "Deny" Windows ACL entries on all items in a directory, recursively
Get-ChildItem -Path C:\@GitHub\LightTable\builds\lighttable-0.8.0-windows\resources\app\core\node_modules\lighttable -Recurse |
ForEach-Object {
$itemPath = $_.FullName
$acl = Get-Acl $itemPath
foreach ($accessRule in $acl.Access)
{
if ($accessRule.AccessControlType -eq [System.Security.AccessControl.AccessControlType]::Deny -and $accessRule.IdentityReference.Value -eq "RECP\kevitt")
{
$acl.RemoveAccessRule($accessRule)
@kenny-evitt
kenny-evitt / Run NUnit GUI.bat
Created May 13, 2015 13:45
Windows batch command to run NUnit GUI
start .\packages\NUnit.Runners.2.6.3\tools\nunit.exe path_to_unit_test_assembly
@kenny-evitt
kenny-evitt / clojure-leiningen-repl-commands.clj
Created February 14, 2015 15:47
Clojure Leiningen REPL commands
; Requiring a namespace file
(require '[this.is.the.relevant-namespace :as the-alias])
; Reload a namespace file
(require 'this.is.the.relevant-namespace :reload-all)