##General:
- [Package Control] (http://wbond.net/sublime_packages/package_control/installation) (make installing other packages easier)
- AdvancedNewFile
- SideBarEnhancements
- Git
- GitGutter
- DocBlockr
##General:
##Performance
powertop via apt-get, then run it as root (via sudo), go to Tunables tab, and change all items to be Good instead of Bad.Power Saver or Power On Demand.##Basics
#Useful Wordpress plugins
| { | |
| "auto_match_enabled": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_bottom": 2, | |
| "caret_extra_top": 2, | |
| "caret_style": "phase", | |
| "color_inactive_tabs": true, | |
| "color_scheme": "Packages/Predawn/predawn.tmTheme", | |
| "detect_slow_plugins": false, | |
| "fade_fold_buttons": true, |
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi | |
| if [ $# -lt 2 ]; then | |
| echo "No arguments supplied!" | |
| echo "Usage: sudo scriptname directory_name server_name" |
| /** | |
| * Dumping a variable surrounded with <pre> tag. | |
| * @param object $var the variable to dump | |
| * @param boolean $die wether to die() after printing the output | |
| * @return null | |
| */ | |
| function d($var, $exit = false) { | |
| echo "<pre dir='ltr'>"; | |
| ob_start(); | |
| if(is_array($var)) { |
| /*! | |
| * Datepicker for Bootstrap | |
| * | |
| * Copyright 2012 Stefan Petre | |
| * Licensed under the Apache License v2.0 | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| */ | |
| .datepicker { | |
| top: 0; |
| function show_my_videos(data){ | |
| html = ['<ul id="videos">']; | |
| $(data.data.items).each(function(item) { | |
| id = item.id; | |
| description = item.title; | |
| html.push('<iframe width="560" height="315" src="//www.youtube.com/embed/'+ id +'" frameborder="0" allowfullscreen></iframe>'); | |
| }); | |
| $("#videos").html(html.join('')); | |
| } | |
| // Replace [YOUTUBE_CHANNEL] with the channel you want |
| To enable any of there plugins, go to: `Settings` -> `Plugins` | |
| You'll find plugins in the first page, to get the others press `Browse repositories...` button. | |
| - Apache config (.htaccess) support | |
| - Bootstrap | |
| - Color Ide | |
| - CSS Support | |
| - EditorConfig | |
| - File Watchers | |
| - Git Integration |
| <?php | |
| ////////////////////////////////////////////////////////////////////////////////// | |
| // Google News Sitemap // | |
| // // | |
| // Refer to: https://aalakkad.github.io/blog/wordpress-add-google-news-sitemaps // | |
| ////////////////////////////////////////////////////////////////////////////////// | |
| // Check for WPSEO_Sitemaps class from WordPress SEO plugin | |
| if(class_exists('WPSEO_Sitemaps')) { | |
| add_action('init', 'my_custom_google_news_sitemap'); |