This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- NAME | |
================================================== --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Apache | |
sudo apachectl -k start | |
# Stop Apache | |
sudo apachectl -k stop | |
# Restart Apache | |
sudo apachectl -k restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Which version of Ruby | |
ruby -v | |
//install bundles | |
bundle install | |
//install bundler | |
gem install bundler | |
//Database commands |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 "*" |