This file contains 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
on replace_chars(this_text, search_string, replacement_string) | |
set AppleScript's text item delimiters to the search_string | |
set the item_list to every text item of this_text | |
set AppleScript's text item delimiters to the replacement_string | |
set this_text to the item_list as string | |
set AppleScript's text item delimiters to "" | |
return this_text | |
end replace_chars | |
on activate_open_instance(win_title, is_first_time) |
This file contains 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
*.lab.mydomain.com { | |
tls { | |
dns cloudflare {env.CLOUDFLARE_API_TOKEN} | |
} | |
@bt host bt.lab.mydomain.com | |
handle @bt { | |
reverse_proxy bt:8759 | |
} |
This file contains 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
# An example to show how to customize rules while using a subscription link in ClashX | |
# The following content is that of the file: ~/.config/clash/config.yaml | |
# Replace SUBSCRIPTION_NAME with your custom name for your subscription. | |
# Replace SUBSCRIPTION_LINK with your subscription link. | |
# (HTTP and SOCKS5 in one port) | |
mixed-port: 7890 | |
# RESTful API for clash | |
external-controller: 127.0.0.1:9090 | |
allow-lan: false |
This file contains 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
// vi: ft=javascript | |
const { | |
Clipboard, | |
Front, | |
Hints, | |
RUNTIME, | |
Visual, | |
aceVimMap, | |
addSearchAlias, |
This file contains 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
" Copy full class & method name in php files | |
" @see https://github.com/tyru/current-func-info.vim | |
au filetype php command! CopyFullClassName let @+=GetFullPHPClassName() | echo @+ . ' copied.' | |
au filetype php command! CopyFullMethodName let @+=GetFullPHPMethodName() | echo @+ . ' copied.' | |
function! GetFullPHPClassName()"{{{ | |
" Save some registers | |
let l:r_a = @a | |
let l:r_b = @b | |
" Save cursor position |
This file contains 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
DB::shouldReceive('table')->with('users as u')->once()->andReturnSelf(); | |
DB::shouldReceive('where')->with('u.id', $user->id)->once()->andReturnSelf(); | |
DB::shouldReceive('value')->with('u.favorites_shortages')->once()->andReturn($fakeOldShortages); |
This file contains 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
# fix for gvim border | |
style "vim-fix" { | |
bg[NORMAL] = "#002B36" # this matches my gvim theme 'Normal' bg color. | |
fg[NORMAL] = "#ffffff" | |
} | |
style "vim-fix-tabs" { | |
bg[NORMAL] = shade(1.02, "#656565") | |
bg[ACTIVE] = shade(1.25, "#878787") | |
fg[ACTIVE] = "#323232" |