- Edit /etc/mysql/my.cnf;
#bind-address = 127.0.0.1
bind-address = 0.0.0.0
- Restart MySQL;
sudo service mysql restart
- Connect to MySQL;
if [[ `uname` == 'Linux' ]]; then | |
alias f5="sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && cd ~/.dotfiles && git pull-sub && source ~/.zshrc" | |
else | |
alias f5="brew update && brew upgrade && cd ~/.dotfiles && git pull-sub && source ~/.zshrc" | |
fi |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
indent_style = space | |
trim_trailing_whitespace = true | |
[*.html] |
// https://www.facebook.com/photo.php?fbid=447072162065063&set=a.135862593186023.23269.135845729854376&type=1 | |
// Feito com apenas 78 bytes. Quem faz com menos? ; ) | |
for(i=1;i<9;)console.log(++i>8?'Ta na hora de molhar o biscoito':i^6?i:'meia') |
#bind-address = 127.0.0.1
bind-address = 0.0.0.0
sudo service mysql restart
#!/bin/sh | |
# | |
# One line installer | |
# sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y install language-pack-pt curl git-core mysql-server mysql-client libmysqlclient-dev postgresql postgresql-client libpq-dev apache2 php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json | |
# Locale | |
echo "Changing locale" | |
sudo apt-get -y install language-pack-pt | |
clear |
/** | |
* Car object | |
* | |
* @author Gustavo Franco | |
* @since 2013-06-30 | |
*/ | |
;var Car = (function(Vehicle, $, window, document, undefined) { | |
'use strict'; | |
/** |
/** | |
* FooBar object | |
* | |
* @author Gustavo Franco | |
* @since 2013-06-27 | |
*/ | |
;var FooBar = (function($, window, document, undefined) { | |
'use strict'; | |
/** |
#!/bin/sh | |
# System upgrade | |
echo "Updating repositories and upgrading system" | |
sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove | |
clear | |
# Install Unity Tweak Tool | |
echo "Installing Unity Tweak Tool" | |
sudo apt-get -y install unity-tweak-tool |
#!/bin/sh | |
# System update | |
sudo apt-get update | |
# Curl | |
sudo apt-get -y install curl | |
# Git | |
sudo apt-get -y install git-core |