git branch -d name-of-branch
git push origin :name-of-branch
{ | |
"basics": { | |
"profiles": [ | |
{ | |
"url": "https://mastodon.social/@scottnath", | |
"username": "scottnath@mastodon.social", | |
"network": "Mastodon" | |
}, | |
{ | |
"url": "https://dev.to/scottnath", |
<?php | |
// This is the meat of the plugin and should go in mu-plugins/0-env-url-override.php | |
// Only load these filters if we're not in the production environment | |
if ( defined( 'ENV_NOT_PRODUCTION' ) && ENV_NOT_PRODUCTION ) { | |
// This always needs to be filtered | |
add_filter( 'site_url', 'env_filter_site_url', 0 ); | |
// We don't filter home_url in the admin so that we get production URLs for posts. | |
// This does break certain links like "Preview/View Post", however. |
//Giving Editors Access to Gravity Forms | |
function add_grav_forms(){ | |
$role = get_role('editor'); | |
$role->add_cap('gform_full_access'); | |
} | |
add_action('admin_init','add_grav_forms'); |
# Kill the port you found | |
`kill -9 PID` | |
i.e.: | |
`kill -9 11623` | |
# Find the port | |
`lsof -i :PORT` | |
i.e.: |
pg_ctl -D /usr/local/var/postgres stop | |
original: http://stackoverflow.com/questions/36436120/fatal-error-lock-file-postmaster-pid-already-exists |
find . -name '*' -exec grep -li 'text_to_search_for' {} \; | |
// ignore directories (won't show ".. is a directory") | |
find . -name '*' -exec grep -sli 'TEXT' {} \; | |
// exclude directories (like `node_modules`) | |
find . -name '*' -not -path './node_modules/*' -exec grep -sli 'TEXT' {} \; |
<?php | |
/* | |
Plugin Name: OSE Firewall | |
Plugin URI: http://wordpress.org/extend/plugins/ose-firewall/ | |
Description: OSE Firewall - A WordPress Firewall created by Open Source Excellence. It protects your WordPress-powered blog against attacks and hacking. The email alert / notification function is disabled by default, while it can be activated and configured in <strong>Settings -> OSE Firewall</strong>. Please go to your <a href="options-general.php?page=ose_wp_firewall">OSE Firewall configuration</a> page. | |
Author: Open Sourcce Excellence | |
Version: 1.0.2 | |
Author URI: http://www.opensource-excellence.com/ | |
*/ | |
define('DS', DIRECTORY_SEPARATOR); |
//from the folder: | |
rm -rf `find . -type d -name .svn` | |
//to just find them all: | |
find . -type d -name .svn |
#!/bin/sh | |
# mpo2gif | |
# convert a .mpo file to a animation gif. | |
# this idea is from http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=16275 | |
# this script requires exiftool and imagemagick. | |
rjpg=/tmp/$$_r.jpg | |
ljpg=/tmp/$$_l.jpg | |
echo $1 |