Skip to content

Instantly share code, notes, and snippets.

# boxstarter url: http://boxstarter.org/package/nr/url?GIST_URL_HERE/raw
# http://boxstarter.org/package/nr/url?https://gist.github.com/davebrny/dc654fc79beae23764d61cc357579324/raw
# short url: bit.ly/CUSTOM_URL
Disable-UAC
Install-WindowsUpdate
Set-WindowsExplorerOptions -EnableShowFileExtensions
Set-TaskbarOptions -Size Large -Lock -Dock Right
cinst chocolatey -y
@davebrny
davebrny / google_search_show_keyboard.prf.xml
Last active November 28, 2016 10:22
(android, tasker) - show the keyboard input when the Google search app is opened (AutoInput required)
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Profile sr="prof78" ve="2">
<cdate>1466773290996</cdate>
<edate>1466784552162</edate>
<id>78</id>
<mid0>97</mid0>
<nme>search - show keyboard</nme>
<App sr="con0" ve="2">
<cls0>com.google.android.googlequicksearchbox.SearchActivity</cls0>
<flags>2</flags>
@davebrny
davebrny / ahk help.ahk
Last active February 12, 2017 22:42
(autohotkey) - search the selected word in the local autohotkey .chm help file
ahk_help(search_term="") {
static ahk_dir
if (search_term = "") ; check for a selection
{
revert_clipboard := clipboardAll
clipboard =
send ^{c}
clipWait, 0.3
search_term := clipboard
@davebrny
davebrny / msg.ahk
Last active March 10, 2019 14:42
💬 (autohotkey) - message commands that are quick to type and easy to switch between
msg_box(string=". . .", options="") {
string := format_text(string, options)
msgBox, % string
}
msg_tray(string=". . .", options="") {
string := format_text(string, options)
trayTip, , % string, 10
}
@davebrny
davebrny / strip.ahk
Last active November 13, 2017 11:20
🥓 (autohotkey) - strip comments, comments blocks and empty lines from a string
/*
[strip]
version = 2.3.1
description = strip comments, comment blocks and empty lines from a string
author = davebrny
source = https://gist.github.com/davebrny/13b4ab574fd125d732749b406c4351d5
*/
strip(string, option="") {
@davebrny
davebrny / shift windows.ahk
Last active February 12, 2017 22:23
(autohotkey) - window management hotkeys remapped for one handed use
+#w::send #{up} ; maximise window
+#x::send #{down} ; minimize window
+#a::send #{left}{Lwin up} ; snap window left
+#d::send #{right}{Lwin up} ; snap window right
+#s::send #+{left} ; move window to another monitor
+#z::send !{esc} ; cycle through all windows
#\::send !{tab}{tab up} ; toggle between this window and the last
#z::send #{tab} ; windows 10 task switcher
@davebrny
davebrny / text wrap.ahk
Last active March 3, 2024 11:50
📇 (autohotkey) - wrap selected text in *symbols*
/*
[script info]
version = 2.5
description = wrap selected text in %symbols%
author = davebrny
source = https://gist.github.com/davebrny/088c48d6678617876b34f53571e92ee6
*/
sendMode input
return ; end of auto-execute
@davebrny
davebrny / spotify search operators.ahk
Last active October 24, 2017 14:24
🎧 (autohotkey) - search operator hotstrings for spotify
#if winActive("ahk_exe Spotify.exe")
or winActive("Spotify ahk_exe chrome.exe")
or winActive("Spotify ahk_exe firefox.exe")
:*:a;:: ; album
:*:ar;:: ; artist
:*:t;:: ; track
:*:g;:: ; genre
:*:y;:: ; year
@davebrny
davebrny / my gists - autohotkey.md
Last active September 5, 2021 05:29
my autohotkey gists
@davebrny
davebrny / send hotkey.ahk
Last active November 7, 2017 06:51
(autohotkey) - prepare hotkey text for the send command: ^!a to ^!{a}
send_hotkey(string){
modifiers := regExReplace(string, "[^\W]")
stringReplace, key, string, % modifiers, ,
return modifiers "{" key "}"
}
/*
[send hotkey]
description = prepare hotkey text for the send command: ^!a to ^!{a}