use git diff to generate file list
git diff --name-only master
add ext filter
git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"
docker exec -i 276ae51c353e1 mysql -uusername -ppassword databasename < ../database.sql |
add_action('init', 'prefix_add_user'); | |
function prefix_add_user() { | |
$username = ''; | |
$password = ''; | |
$email = ''; | |
if (username_exists($username) == null && email_exists($email) == false) { | |
$user_id = wp_create_user( $username, $password, $email ); | |
$user = get_user_by( 'id', $user_id ); |
# Run the following commands in your terminal (Mac OS) to increate the key repeat rate. | |
# Normal minimum is 15 (225 ms) | |
defaults write -g InitialKeyRepeat -int 10 | |
# Normal minimum is 2 (30 ms) | |
defaults write -g KeyRepeat -int 1 |
" Faster up and down movement bindings. | |
nnoremap <C-k> :-5<CR> | |
inoremap <C-k> <Esc>:-5<CR> i | |
nnoremap <C-j> :+5<CR> | |
inoremap <C-j> <Esc>:+5<CR> i | |
nnoremap <C-Up> :-5<CR> | |
inoremap <C-Up> <Esc>:-5<CR> i | |
nnoremap <C-Down> :+5<CR> | |
inoremap <C-Down> <Esc>:+5<CR> i |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" STATUSLINE " | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
highlight VertSplit guibg=#181818 guifg=#996228 | |
highlight SLBackground guibg=#181818 guifg=#996228 | |
highlight SLFileType guibg=indianred guifg=#663333 | |
highlight SLBufNumber guibg=SeaGreen guifg=#003333 | |
highlight SLLineNumber guibg=#80a0ff guifg=#003366 |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" TASKS " | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" holds the global tasks | |
let g:GlobalTasks = {'Git Status:': '!git status'} | |
fun GetNumberedDictKeys(taskDict) | |
" Extracts the task keys and returns them as a numbered list. | |
let counter = 1 |
.widget { } | |
.widget-title {} | |
/* links widget */ | |
.widget_links {} | |
.widget_links ul {} | |
.widget_links ul li {} | |
.widget_links ul li a {} |
# For the current repository | |
git config core.filemode false | |
# Globally | |
git config --global core.filemode false |
/var/lib/snapd/desktop/applications/spotify_spotify.desktop
.--force-device-scale-factor=2.0
to the Exec
line.Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/spotify_spotify.desktop /snap/bin/spotify --force-device-scale-factor=2.0 %U