This file contains 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
/* | |
By default Wordpress will ping itself with each internal link. | |
This is annoying and a tad inefficient. To disable: | |
1. Open your Wordpress theme's functions.php file located in /wp-content/themes/[YOUR THEME]/ | |
2. Paste the code snippet below into your functions.php | |
3. Save to have the changes take effect. | |
*/ | |
function disable_self_pings( &$links ) { |
This file contains 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
/* | |
By default Wordpress does not include post thumbnails in RSS feeds. | |
To enable: | |
1. Open your Wordpress theme's functions.php file located in /wp-content/themes/[YOUR THEME]/ | |
2. Paste the code snippet below into your functions.php | |
3. Save to have the changes take effect. | |
*/ |
This file contains 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
/* | |
The AddToAny plugin is a great (and inobtrusive) way to add social sharing buttons to Wordpress posts. | |
It does not natively include RSS feed support however. To rectify that: | |
1. Open your Wordpress theme's functions.php file located in /wp-content/themes/[YOUR THEME]/ | |
2. Paste the code snippet below into your functions.php | |
3. Save to have the changes take effect. | |
*/ |
This file contains 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
/* | |
Setting up a new Mac | |
*/ | |
#!/bin/bash | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install cask | |
brew install ffmpeg | |
brew install git |
This file contains 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
/* | |
iTunes likes mp3 format music. This script converts any *.aac format files to *.mp3 format, then shifts the processed files into the appropriate old and new folders. | |
*/ | |
#!/bin/bash | |
cd ~/Downloads/ | |
mkdir new_music | |
mkdir old_music | |
for f in *.aac; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 new_music/"${f%.aac}.mp3"; mv "$f" old_music; done |
This file contains 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
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
This file contains 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
/* | |
The Wordpress Jetpack plugin offers a subscription widget that can be added via shortcodes. | |
To enable: | |
1. Open the Wordpress template file (e.g. footer.php) containing the desired location of the widget. | |
These are located in /wp-content/themes/[YOUR THEME]/ | |
2. Paste the code snippet below into your template file in the required location. | |
3. Replace the [PARAMETER n] values with your desired values. | |
4. Save to have the changes take effect. | |