I hereby claim:
- I am xtremefaith on github.
- I am xtremefaith (https://keybase.io/xtremefaith) on keybase.
- I have a public key ASBR_ZZqD-C3oOI0dUQ0qIgTdT27xp7JiMzAY6ez4ZPhmwo
To claim this, I am signing this object:
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |
I hereby claim:
To claim this, I am signing this object:
/* | |
* Set up your Git configuration | |
*/ | |
git config --global user.email "you@yourdomain.com" | |
git config --global user.name "Your Name" | |
git config --global core.editor "nano" |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
##Basics
--st: status
git config --global alias.st status
--ci: commit -m
git config --global alias.ci 'commit -m'
SSH_ENV=$HOME/.ssh/environment | |
# start the ssh-agent | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
# spawn ssh-agent | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV} | |
echo succeeded | |
chmod 600 ${SSH_ENV} | |
. ${SSH_ENV} > /dev/null |
Developing locally? Here's a quick snippet for ignoring your local wp-config.php settings
git update-index --assume-unchanged -- wp-config.php
Thanks to Linquize: http://stackoverflow.com/a/14513920/1058371
####Use on other settings files as well
git update-index --assume-unchanged -- wp-content/sftp-config.json
<?php | |
function form($instance){ | |
/** Merge with defaults */ | |
$instance = wp_parse_args( (array) $instance, $this->defaults ); //Only if you set defaults in constructor (i.e.- $this->defaults = array(); ) | |
extract ( $instance, EXTR_SKIP); | |
//Create new fields by adding to this array | |
$fields = array( | |
'title' => array( | |
'label' => __( 'Title', 'div' ), |