Skip to content

Instantly share code, notes, and snippets.

View joshuaadrian's full-sized avatar

Joshua Adrian joshuaadrian

View GitHub Profile
sudo vim /etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName test.local
DocumentRoot "/Users/name/Sites/site"
ErrorLog "/private/var/log/apache2/test.local-error_log"
CustomLog "/private/var/log/apache2/test.local-access_log" common
ServerAdmin [email protected]
# Start Apache
sudo apachectl -k start
# Stop Apache
sudo apachectl -k stop
# Restart Apache
sudo apachectl -k restart
## GLOBAL CONFIG ##
git config --global user.name "John Doe"
git config --global user.email "[email protected]"
## LOCAL CONFIG ##
git config user.email "[email protected]"
## COLOR CONFIG ##
<!-- NAME
================================================== -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Title</title>
<meta name="description" content="Page Description">
<meta name="author" content="John Doe">
<select>
<option value=" " selected>(please select a country)</option>
<option value="--">none</option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
/************************************************************************/
/* NAME
/************************************************************************/
<?php
/* ABSOLUTE PATH */
if ( !defined( 'ABSPATH' ) ) :
define('ABSPATH', dirname(__FILE__) . '/');
endif;
/* DB CREDS */
if ( file_exists( ABSPATH . 'wp-config.local.php' ) ) :
require_once( 'wp-config.local.php' );
alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'"