Skip to content

Instantly share code, notes, and snippets.

View SethMilliken's full-sized avatar

Seth Milliken SethMilliken

View GitHub Profile
@SethMilliken
SethMilliken / warpd-config
Last active April 11, 2024 18:11
warpd configuration (~/.config/warpd/config)
#hint_activation_key: Activates hint mode. (default: A-M-x)
hint_activation_key: C-M-h
#hint2_activation_key: Activate two pass hint mode. (default: A-M-X)
hint2_activation_key: C-M-k
#grid_activation_key: Activates grid mode and allows for further manipulation of the pointer using the mapped keys. (default: A-M-g)
grid_activation_key: C-M-l
#history_activation_key: Activate history mode. (default: A-M-h)
history_activation_key: C-M-i
#screen_activation_key: Activate (s)creen selection mode. (default: A-M-s)
screen_activation_key: C-M-s
@SethMilliken
SethMilliken / init.lua
Created January 12, 2024 04:36
Hammerspoon AXEnhancedUserInterface issue workaround
function windowMoveFunction(window, screen, rect)
hotfix = axHotfix(window)
window = hotfix:window()
window:moveToScreen(screen)
window:moveToUnit(rect)
hotfix:revert()
end
-- cf. https://github.com/Hammerspoon/hammerspoon/issues/3224
function axHotfix(win)
@SethMilliken
SethMilliken / .vimrc
Last active February 16, 2023 16:34
.ideavimrc with method text-object emulation
" See https://github.com/JetBrains/ideavim/wiki
""" Settings {{{
set visualbell
"set noerrorbells
"set t_vb=
set hls
set nu
set rnu
set clipboard=ideaput,unnamed
" set clipboard=ideaput
tell application "System Preferences"
reveal pane id "com.apple.preference.network"
tell application "System Events" to tell process "System Preferences"
tell window 1
select (row 1 of table 1 of scroll area 1 whose value of static text 1 contains "Bluetooth PAN")
click button 1 of group 1
end tell
end tell
end tell
@SethMilliken
SethMilliken / slate config
Created January 28, 2013 18:55
My current `.slate` configuration. Some of this is already outdated. For example, slate recently learned how to use regexes for `TITLE_ORDER`.
# Configs
config checkDefaultsOnLoad false
config orderScreensLeftToRight true
config defaultToCurrentScreen true
config focusCheckWidthMax 3000
config focusPreferSameApp true
config gridBackgroundColor 0;0;0;0.5
config gridCellBackgroundColor 0;128;255;0.9
config gridCellRoundedCornerSize 3
config gridCellSelectedColor 255;200;100;1.0
@SethMilliken
SethMilliken / gist:3758987
Created September 20, 2012 23:42
trinidad 1.4.3 issues
Starting service Tomcat
Starting Servlet Engine: Apache Tomcat/7.0.30
Error configuring application listener of class com.janrain.workerbee.WorkerbeeInvalidator
java.lang.ClassNotFoundException: com.janrain.workerbee.WorkerbeeInvalidator
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
command! -nargs=* Checkin :call Checkin(<q-args>)
function! Checkin(...) " {{{
let message = a:000[0]
let g:last_commit_message = message
if CheckinCheckup()
call Herenow()
if len(message) > 0
exe ":Gcommit % -m\"" . message . "\""
else
exe ":Gcommit -v %" | wincmd T
function! TestFunction(option)
exec "let original = &" . a:option
exec "set " . a:option . "&"
exec "let default = &" . a:option
exec "set " . a:option . "=" . original
if original == default
echo "heck yeah!"
endif
endfunction
" Tab-page newly created with <D-t> shouldn't be in insert mode
" just because we happen to be in it on invocation.
if has("gui_macvim")
inoreme 10.295 &File.New\ Tab <Esc>:tabnew<CR>
endif
testin