Skip to content

Instantly share code, notes, and snippets.

View edheltzel's full-sized avatar
🇺🇸
Just your average run-of-the-mill kinda guy

Mr. ED edheltzel

🇺🇸
Just your average run-of-the-mill kinda guy
View GitHub Profile
@idleberg
idleberg / fish_shell.md
Last active August 7, 2025 07:36
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active August 3, 2024 16:45
Remove node_modules from git repo
#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>
@felixfischer
felixfischer / gitlab2dokku.sh
Last active September 8, 2016 11:51
Install GitLab as Docker Container in Dokku on DigitalOcean's Dokku Droplet (v0.2.3 on Ubuntu 14.04)
# 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
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active May 6, 2025 10:00
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@edheltzel
edheltzel / custom-wp-widgets.php
Created October 22, 2012 23:56 — forked from arod2634/custom-wp-widgets.php
Customize Wordpress Theme Widgets
<?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
@edheltzel
edheltzel / customize-wp-tinymce.php
Created October 22, 2012 23:55 — forked from arod2634/customize-wp-tinymce.php
Customize Wordpress TinyMCE Editor
<?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;
}
@edheltzel
edheltzel / funtions.php
Created October 12, 2012 16:09
Disable admin bar on front-end
<!-- DIABLE ADMIN BAR ON FRONT END -->
add_filter('show_admin_bar', '__return_false');
@edheltzel
edheltzel / custom-wp-toolbar.php
Created October 12, 2012 15:32 — forked from arod2634/custom-wp-toolbar.php
Wordpress: Customize Admin Toolbar
<?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(
@edheltzel
edheltzel / gist:3872419
Created October 11, 2012 13:48 — forked from danielbachhuber/gist:1106704
Wordpress: Admin Improvements
<?php
/**
* Random set of improvements
*/
/**
* Tidy up the admin and remove options we don't need
*/
function db_clean_up_admin() {
@edheltzel
edheltzel / custom-wp-dashboard.php
Created October 11, 2012 13:44 — forked from arod2634/custom-wp-dashboard.php
Wordpress: Customize Admin Dashboard
<?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');