Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke Scammell lukescammell

View GitHub Profile
@lukescammell
lukescammell / ahk-insert-time-and-date.ahk
Created Jan 1, 2018
Ctrl+Win+Alt+d to insert the current date and time.
View ahk-insert-time-and-date.ahk
;-------------------------------------------------------------------------------
; Insert date and time
;-------------------------------------------------------------------------------
; http://prxbx.com/forums/showthread.php?tid=1181&pid=10647#pid10647
; LS 2010-04-27 10:20:23
; modified to use "GMT" instead of "UTC" since GMT respects British Summer Time!
; changed %A_NowUTC% to %A_NowGMT%
; LS 2013-11-27 09:32:50
; perhaps %A_Now% just uses system time which would respect any daylight savings no matter where you are?
@lukescammell
lukescammell / user-profile.cmd
Last active Jan 7, 2020
This enables portable SSH keys in cmder, enabling you to have full SSH access using cmder portably on a USB (for example). Please note that when you ssh-keygen, it will still default to %USERPROFILE%, so you will either have to change the path on generation, or manually move the keys to your %CMDER_ROOT%\config\.ssh directory.
View user-profile.cmd
:: use this file to run your own startup commands
:: use in front of the command to prevent printing the command
:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"
:: set "PATH=%CMDER_ROOT%\vendor\whatever;%PATH%"
:: LS 2017-09-12_17.35.11
:: ======================
:: Copied from %CMDER_ROOT%\vendor\init.bat
View MiniVan-40_.kbd.json
[
{
"backcolor": "#7cccd6",
"name": "MiniVan 40%",
"author": "Luke Scammell",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-White",
"plate": true
},
View MiniVan-40_-_-Arrow-Layout.kbd.json
[
{
"backcolor": "#7cccd6",
"name": "MiniVan 40% – Arrow Layout",
"author": "Luke Scammell",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-White",
"plate": true
},
@lukescammell
lukescammell / RedScarf-III-84-_RS84_-_-visual.kbd.json
Last active Sep 22, 2017
RedScarf III 84 (RS84) – visual
View RedScarf-III-84-_RS84_-_-visual.kbd.json
[
{
"backcolor": "#111111",
"name": "RedScarf III 84 (RS84) – visual",
"author": "Luke Scammell",
"switchMount": "cherry",
"switchBrand": "gateron",
"switchType": "KS-3-White",
"plate": true
},
View ahk-autoreload-on-save.ahk
;-------------------------------------------------------------------------------
; Auto-Reload AutoHotkey when .ahk file is saved
; http://prxbx.com/forums/showthread.php?tid=1181
; Modified 2009-12-09 11:32:17 by Luke Scammell - luke {at} scammell [dot] co (.) uk
; Modified to match any window with .ahk in the title, meaning it will update other scripts as well and from other programs like Notepad++ :)
~^s::
SetTitleMatchMode, 2
IfWinActive, .ahk
{
Send, ^s