git pull "http://[user]:[password]@bitbucket.org/[user]/[repo].git" master
hasta!
Porquê mais que uma vez é muito.
git pull "http://[user]:[password]@bitbucket.org/[user]/[repo].git" master
mysqldump -u USER -p --opt --quote-names --skip-set-charset --default-character-set=latin1 DBNAME > dump.sql
mysql -u USER -p --default-character-set=utf8 DBNAME < dump.sql
aptitude search apache2 aptitude install apache2 ps aux | grep apache sudo aptitude install libapache2-mod-wsgi sudo service apache2 restart
apt-get install python-virtualenv
apt-get update apt-get install mysql-client-core-5.5 apt-get install mysql-server mysql -u root -p ps aux | grep mysql
apt-get update aptitude install php5 libapache2-mod-php5 /etc/init.d/apache2 restart mysql -u root -p ps aux | grep mysql
apt-get install git ssh-keygen
virtualenv --no-site-packages --unzip-setuptools ENV pip install django
... <input type="file" name="imagem_upload" id="id_foto"> <div id="img2"></div> ...
#img2 { width: 80px; height: 80px; background: url(imagem-padrao.jpg) no-repeat center center; background-size: cover; position: absolute; top: 50%; left: 50%; margin-left: -40px; margin-top: -40px; border-radius: 50%; border: 5px solid #fff; z-index: 1; }
$('#id_foto').live('change', function(){ var input = document.getElementById("id_foto"); var fReader = new FileReader(); fReader.readAsDataURL(input.files[0]); fReader.onloadend = function(event){ $("#img2").css('background', 'url('+event.target.result+') no-repeat center center'); $("#img2").css('background-size', 'cover'); } });
sudo nano /etc/apache2/httpd.conf
DocumentRoot "/Users/myusername/Sites" <Directory "/Users/myusername/Sites"> Options Indexes FollowSymLinks Multiviews MultiviewsMatch Any AllowOverride All </Directory>
sudo apachectl restart
function UpdateQueryString(key, value, url) { if (!url) url = window.location.href; var re = new RegExp("([?&])" + key + "=.*?(&|#|$)(.*)", "gi"); if (re.test(url)) { if (typeof value !== 'undefined' && value !== null) return url.replace(re, '$1' + key + "=" + value + '$2$3'); else { var hash = url.split('#'); url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, ''); if (typeof hash[1] !== 'undefined' && hash[1] !== null) url += '#' + hash[1]; return url; } } else { if (typeof value !== 'undefined' && value !== null) { var separator = url.indexOf('?') !== -1 ? '&' : '?', hash = url.split('#'); url = hash[0] + separator + key + '=' + value; if (typeof hash[1] !== 'undefined' && hash[1] !== null) url += '#' + hash[1]; return url; } else return url; } }
location.href = UpdateQueryString('seu_parametro',SEU_VALOR);