This file contains hidden or 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
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " 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 |
This file contains hidden or 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
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " 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 |
This file contains hidden or 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
| " 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 |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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
| 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 ); |
This file contains hidden or 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
| docker exec -i 276ae51c353e1 mysql -uusername -ppassword databasename < ../database.sql |
This file contains hidden or 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
| # Place before all other things. | |
| # Enable Compression | |
| <IfModule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE application/javascript | |
| AddOutputFilterByType DEFLATE application/rss+xml | |
| AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
| AddOutputFilterByType DEFLATE application/x-font | |
| AddOutputFilterByType DEFLATE application/x-font-opentype | |
| AddOutputFilterByType DEFLATE application/x-font-otf | |
| AddOutputFilterByType DEFLATE application/x-font-truetype |
This file contains hidden or 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
| <?php | |
| // Return an alternate title, without prefix, for every type used in the get_the_archive_title(). | |
| add_filter('get_the_archive_title', function ($title) { | |
| if ( is_category() ) { | |
| $title = single_cat_title( '', false ); | |
| } elseif ( is_tag() ) { | |
| $title = single_tag_title( '', false ); | |
| } elseif ( is_author() ) { | |
| $title = '<span class="vcard">' . get_the_author() . '</span>'; |
This file contains hidden or 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
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " PROJECT SPECIFIC VIMRC " | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| if !exists("*LoadProjectVimrc") | |
| function! LoadProjectVimrc() | |
| let vimrcFile = findfile(".vimrc", ".;") | |
| if !empty(l:vimrcFile) | |
| execute ":so" l:vimrcFile |
This file contains hidden or 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
| git config credential.helper store |