- Update all packages
- Install Unity2D
- Install Vim
sudo apt-get install vim
- Change default editor to be Vim
editor-select
- Install Google Chrome http://www.google.com/chrome
- Customize terminal prompt
.bashrc
and.vimrc
- Install LAMP
sudo apt-get install tasksel
- Install PHPMyAdmin
sudo apt-get install phpmyadmin
This file contains 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
## Security | |
Captcha | |
All In One WP Security | |
Wordpress Login Delay | |
## SEO | |
Google XML Sitemaps | |
SEO Friendly Images | |
All In One SEO Pack OR Yoast | |
Far Future Expiration Plugin (this one cannot be installed from the search plugin functionality: http://www.tipsandtricks-hq.com/) |
This file contains 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 | |
$countries = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Island |
Writing a plugin http://codex.wordpress.org/Writing_a_Plugin
The plugin API http://codex.wordpress.org/Plugin_API
Post Meta fields http://codex.wordpress.org/Function_Reference/post_meta_Function_Examples
Taxonomies
This file contains 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
# Export the database to a file | |
mysqldump -u YourUser -p 'UserPassword' YourDatabaseName | gzip > wantedsqlfile.sql.gz | |
# Make a local copy the file from the server | |
scp user@xxx.xxx.xxx.xxx:/path_to_your_dump/filename.sql.gz your_detination_path/ | |
# Import the database locally | |
gunzip filename.sql.gz | mysql -u [user] -p [password] [database] |
This file contains 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
#!/bin/bash | |
UP=$(pgrep mysql | wc -l); | |
if [ "$UP" -ne 1 ]; | |
then | |
echo "MySQL is down."; | |
sudo service mysql start | |
else | |
echo "All is well."; | |
fi |
This file contains 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
$dbo = $this->Job->getDatasource(); | |
$logs = $dbo->getLog(); | |
$lastLog = end($logs['log']); | |
debug( $lastLog['query'] ); |
This file contains 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
git checkout -b nomDeMaBrancheDistante origin/nomDeMaBrancheDistante | |
if | |
``` | |
fatal: git checkout: updating paths is incompatible with switching branches/forcing | |
Did you intend to checkout ‘origin/‘ which can not be resolved as commit?’ | |
``` | |
then | |
``` | |
git remote update |
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
- Register Roles
- Register Users
- Update Users
This file contains 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
**Create a Bing API key** | |
https://www.bingmapsportal.com/application/create/1354301 | |
**Download the plugins** | |
https://github.com/shramov/leaflet-plugins | |
```html | |
<!DOCTYPE html> | |
<html> | |
<head> |
OlderNewer