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
| # | |
| # mmm m m mmm mmm mmm mmmmm mmm | |
| # " # "m m m" #" # # " #" "# # # # #" # | |
| # m"""# #m#m# #"""" """m # # # # # #"""" | |
| # "mm"# # # "#mm" "mmm" "#m#" # # # "#mm" | |
| # | |
| # nginx configuration For Ruby/Rack web applications | |
| # | |
| # Cooked up with style, care and a bit of *secret* | |
| # nerdy spice. :-) |
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
| Handlebars.registerHelper 'each_with_index', (array, fn) -> | |
| buffer = '' | |
| for i in array | |
| item = i | |
| item.index = _i | |
| buffer += fn(item) | |
| buffer |
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 this to the bottom of your ~/.vimrc to enable jst highlighting | |
| au BufNewFile,BufRead *.jst set syntax=jst |
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
| " Ctags (patch): http://designtomarkup.com/vim/taglist-ctags-css-patch | |
| " Tagbar : https://github.com/majutsushi/tagbar | |
| " Screenshot : http://twitpic.com/7zq4d7 | |
| "Tagbar | |
| noremap <silent> <Leader>t :<C-u>TagbarToggle<CR> | |
| let g:tagbar_type_css = { | |
| \ 'ctagstype' : 'Css', | |
| \ 'kinds' : [ |
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 | |
| /***** | |
| All new versions will be posted at | |
| https://github.com/rmccue/Rotor_WPPlugin | |
| Please use that repository instead of this Gist. | |
| ******/ |
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 | |
| /** | |
| * Simplifies addition of WordPress hooks to a class. | |
| * | |
| * Simplifies addition of WordPress hooks to a class by adding any method and using WordPress-specific PHPDoc tags | |
| * including @wp-autohook, @wp-nohook, @wp-action, @wp-filter and @wp-priority. | |
| * | |
| * Props Ryan McCue (https://gist.github.com/rmccue) for suggestion to use $method->getDocComment() instead of | |
| * passing in method properties via array arguments. |
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 | |
| /** | |
| * Example for use of proposed add_autohook_support() for WordPress. | |
| * | |
| * @see: https://gist.github.com/1630212 | |
| * | |
| * @author Mike Schinkel - http://about.me/mikeschinkel/ | |
| * | |
| * @wp-autohook implicit | |
| * |
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
| #!/bin/bash | |
| INNOBACKUP="/root/percona-xtrabackup/innobackupex" | |
| INNOBACKUP_OPTIONS="--defaults-file=/etc/my.cnf --ibbackup=/root/percona-xtrabackup/mysql-5.5/storage/innobase/xtrabackup/xtrabackup_innodb55 --parallel=4 --user=root --password=XXXXXXX" | |
| BACKUPDIR="/var/sqlbackup/" | |
| S3BUCKET="db_backup" | |
| echo "Removing old local backups" | |
| cd $BACKUPDIR |
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
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
OlderNewer