Tell us a little bit about yourself:
Birthday:
June 15th
Age:
About to enter my 3rd decade of life
interconnectit() { | |
if [[ -z $1 ]] || [[ $1 == "help" ]]; then | |
echo "usage: interconnectit search_for replace_with your_email" | |
echo "Email is optional- if you provide it, an email will be sent to you once the search and replace finishes." | |
echo "Run this from the root of the WordPress you want the search and replace done on." | |
else | |
#acquire and prep search and replace script | |
wget https://github.com/interconnectit/Search-Replace-DB/archive/master.zip | |
unzip master.zip && rm master.zip | |
checkup() { | |
install=$(pwd | cut -d / -f 6) | |
environment=$(pwd | cut -d / -f 5) | |
echo "Install: ${install}" | egrep --color ".*" | |
#home and siteurl | |
wp db query "SELECT option_name, option_value FROM $(wp db tables | grep options) WHERE option_name='home' OR option_name='siteurl'" | |
echo | |
echo "Theme Information:" | egrep --color ".*" | |
wp theme status |
# for asha | |
# This is a list of dictionaries, saved into people | |
people = [ | |
{ | |
'name' : 'tim', | |
'eyes' : 'brown', | |
'silly' : False | |
}, | |
{ |
from multiprocessing import Pool | |
import argparse | |
import requests | |
import sys | |
#Functions | |
def getgeo(ip): | |
"""Give this a string of an IPv4 or IPv6 address | |
Returns a dict with geographical data about the ip | |
""" |
Tell us a little bit about yourself:
Birthday:
June 15th
Age:
About to enter my 3rd decade of life
<?php | |
/** | |
* This file can be used to validate that the WordPress wp_mail() function is working. | |
* To use, change the email address in $to below, save, and upload to your WP root. | |
* Then browse to the file in your browser. | |
* | |
* For full discussion and instructions, see the associated post here: | |
* http://b.utler.co/9L | |
* | |
* Author: Chad Butler |
$ turnoffplugin query-monitor
site.com/ :: Success: Plugin 'query-monitor' deactivated.
test.site.com/ :: not deactivating, plugin status is inactive
test2.site.com/ :: not deactivating, plugin status is inactive
$ turnoffplugin query-monitor
site.com/ :: not deactivating, plugin status is inactive
echo hello |
function inode_counter() { | |
#give me a path | |
#i'll count the inodes recursively | |
#I'm pretty slow, but I'm real purdy | |
path=$1 | |
z=0 | |
find $path 2>/dev/null | while read x | |
do ((z++)) | |
printf '\r%-16s %-8s' "$install" "$z" | |
done |