- Install fish via Brew
- Optionally install Oh My Fish!
- Add fish to known shells
- Set default shell to fish
brew install fish
curl -L https://get.oh-my.fish | fish
brew install fish
curl -L https://get.oh-my.fish | fish
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin <branch-name> |
# execute this script by running the following command as root on your droplet: | |
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/felixfischer/09b3925afa33c5e4c60d/raw/gitlab2dokku.sh)" | |
# inspired by http://blog.bytemark.co.uk/2014/05/23/deploy-gitlab-on-your-own-server-using-dokku | |
mkdir -p /var/lib/dokku/plugins | |
cd /var/lib/dokku/plugins | |
git clone https://github.com/statianzo/dokku-supervisord.git dokku-supervisord | |
dokku plugins-install |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
<?php | |
/* | |
* Remove any unwanted widgets... | |
* | |
* WP_Widget_Pages = Pages Widget | |
* WP_Widget_Calendar = Calendar Widget | |
* WP_Widget_Archives = Archives Widget | |
* WP_Widget_Links = Links Widget | |
* WP_Widget_Meta = Meta Widget | |
* WP_Widget_Search = Search Widget |
<?php | |
// Make TinyMCE editor awesome! | |
function make_mce_awesome( $init ) { | |
$init['theme_advanced_blockformats'] = 'h2,h3,h4,p'; | |
$init['theme_advanced_buttons1_add'] = 'copy, cut, paste, redo, undo'; | |
$init['theme_advanced_buttons2_add'] = 'anchor, hr, sub, sup'; | |
$init['theme_advanced_disable'] = 'wp_help'; | |
return $init; | |
} | |
<!-- DIABLE ADMIN BAR ON FRONT END --> | |
add_filter('show_admin_bar', '__return_false'); |
<?php | |
// Customize Admin toolbar if you do desiced to keep it around... | |
function change_toolbar($wp_toolbar) { | |
$wp_toolbar->remove_node('comments'); | |
$wp_toolbar->add_node(array( | |
'id' => 'myhelp', | |
'title' => 'Help', | |
'meta' => array('target' => 'help') | |
)); | |
$wp_toolbar->add_node(array( |
<?php | |
/** | |
* Random set of improvements | |
*/ | |
/** | |
* Tidy up the admin and remove options we don't need | |
*/ | |
function db_clean_up_admin() { |
<?php | |
//Add a custom admin dashboard welcome widget | |
function custom_dashboard_widget() { | |
echo '<h1>Welcome to your new WordPress site built by an awesome developer</h1>'; | |
} | |
function add_custom_dashboard_widget() { | |
wp_add_dashboard_widget('custom_dashboard_widget', 'Integrity Welcomes You To WordPress!', 'custom_dashboard_widget'); | |
} | |
add_action('wp_dashboard_setup', 'add_custom_dashboard_widget'); |