create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
<?php | |
/** | |
* Add Extra Code to Any Menu | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customizing-wordpress-menus/ | |
* | |
* @param string $menu | |
* @param object $args | |
* @return string modified menu | |
*/ |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#!/bin/bash | |
#++++++++++++++++ | |
# Monitor Switch | |
# | |
# Moves currently focused window from one monitor to the other. | |
# Designed for a system with two monitors. | |
# Script should be triggered using a keyboard shortcut. | |
# If the window is maximized it should remain maximized after being moved. | |
# If the window is not maximized it should retain its current size, unless | |
# height is too large for the destination monitor, when it will be trimmed. |
<?php | |
// MyShortcode usage [myshortcode greeting="Hello" who="World"] | |
function myshortcode_func( $atts, $content = null ) { | |
// use given attributes or defined defaults | |
extract( shortcode_atts( array( | |
'greeting' => '', | |
'who' => '' | |
), $atts ) ); |
# Apache Server Config | MIT License | |
# https://gist.github.com/bhubbard/6082577 | |
# Modified from https://github.com/h5bp/server-configs-apaches | |
# ############################################################################## | |
# # Default WordPress # | |
# ############################################################################## | |
# http://randomtype.ca/blog/the-wordpress-htaccess-file-explained/ | |
# BEGIN WordPress |
# Create directory for new site | |
cd ~/Sites | |
mkdir {query} | |
cd {query} | |
# Download latest version of WordPress | |
wp core download | |
# Setup wp-config file with WP_DEBUG enabled | |
wp core config --dbname={query} --dbuser=root --dbpass=root --dbprefix={query}wp_ --extra-php <<PHP |
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# http://ironco.de/bare-minimum-git/ | |
# ver 20150227 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
<?php | |
/** | |
* Remove Genesis Page Templates | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/remove-genesis-page-templates | |
* | |
* @param array $page_templates | |
* @return array |
@mixin hocus { | |
&:hover, | |
&:focus { | |
@content; | |
} | |
} | |
// Before | |
E { | |
&:hover, |