Skip to content

Instantly share code, notes, and snippets.

View blafrance's full-sized avatar

Brian LaFrance blafrance

View GitHub Profile
@chuckreynolds
chuckreynolds / permissions.sh
Created April 24, 2014 10:46
permissions.sh shell script for WordPress installs to set file and directory permissions and ownership. Change the path to fit your install. Make sure to 'chmod 700 permissions.sh' before using './permissions.sh' to run it.
#!/bin/bash
find /var/www/public -type d -exec chmod 755 {} +
find /var/www/public -type f -exec chmod 644 {} +
chown -R www-data:www-data /var/www/public
@adamloving
adamloving / temporary-email-address-domains
Last active May 18, 2024 23:14
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@jaredatch
jaredatch / wp-disable-feeds.php
Created November 15, 2012 17:28 — forked from ramseyp/wp-disable-feeds.php
Disable Feeds for WordPress site
<?php
/**
* Disable feeds
*
* @return string die
*/
function ja_disable_feed() {
wp_die( 'No feed available, please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!' );
}
@amokan
amokan / Preferences.sublime-settings
Last active October 7, 2015 16:48
my Sublime Text 2 user preferences
{
"auto_complete_commit_on_tab": true,
"auto_indent": true,
"bold_folder_labels": true,
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
"default_encoding": "UTF-8",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,