Skip to content

Instantly share code, notes, and snippets.

View joshuaadrian's full-sized avatar

Joshua Adrian joshuaadrian

View GitHub Profile
<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>
<!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">
<!-- NAME
================================================== -->
## 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 ##
# Start Apache
sudo apachectl -k start
# Stop Apache
sudo apachectl -k stop
# Restart Apache
sudo apachectl -k restart
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]
php artisan key:generate
php artisan session:table
php artisan migrate:install
php artisan migrate
php artisan migrate application
php artisan migrate bundle
php artisan migrate:rollback
php artisan migrate:reset
# Make a new cron job
crontab -e
# List your cron jobs
crontab -l
# Example cron command using artisan
0/5 * * * * /usr/bin/php /Users/joshua/Dropbox/htdocs/laravel/artisan cron:run
//Which version of Ruby
ruby -v
//install bundles
bundle install
//install bundler
gem install bundler
//Database commands
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
</IfModule>
</IfModule>
<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"