Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # NEW WAY / EASY WAY | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.deb | |
| sudo dpkg -i elasticsearch-1.3.4.deb | 
| # in directory with relevant mysql4 dump(s).. | |
| cat *.sql > MYSQL5DUMP.sql | |
| # replace mysql4 style "type" with mysql5 "engine", and create backup | |
| sed -i.bak -e 's/TYPE=MyISAM/ENGINE=MyISAM/g' MYSQL5DUMP.sql | 
| Ref: http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database | |
| ### wp_users table | |
| user_login – this is the username you want to use to access Wordpress | |
| user_pass – this is the password you want to use to access Wordpress (be sure to select MD5 from the phpMyAdmin Function menu – Wordpress stores passwords with MD5 encryption) | |
| user_nicename – put whatever you would like to refer to yourself as in here (not your username) | |
| user_email – this is the email account associated with this user | |
| user_url – the url to your website like – http://www.dnawebagency.com | |
| user_registered – when was this user registered – just select a date with the date selector | 
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
(from http://www.joyceleong.com/log/installing-phantomjs-on-ubuntu/)
cd ~wget http://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2sudo mv ~/phantomjs-1.9.1-linux-x86_64.tar.bz2 /usr/local/sharecd /usr/local/sharesudo tar xvf phantomjs-1.9.1-linux-x86_64.tar.bz2sudo ln -s /usr/local/share/phantomjs-1.9.1-linux-x86_64 /usr/local/share/phantomjssudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjsphantomjs --version| [core] | |
| repositoryformatversion = 0 | |
| filemode = false | |
| logallrefupdates = true | |
| [branch "master"] | |
| remote = origin | |
| merge = refs/heads/master | |
| [remote "origin"] | |
| url = <github url> | 
| # all directories (recursive) | |
| find {directory} -type d -print0 | xargs -0 chmod 0755 | |
| # all files (recursive) | |
| find {directory} -type f -print0 | xargs -0 chmod 0644 | |
| # set file permissions (for eg for local dev w/ eclipse ".project", ".buildpath", ".settings") | 
| <IfModule mod_php5.c> | |
| <Directory /usr/share/> | |
| <FilesMatch "\.ph(p3?|tml)$"> | |
| SetHandler application/x-httpd-php | |
| </FilesMatch> | |
| <FilesMatch "\.phps$"> | |
| SetHandler application/x-httpd-php-source | |
| </FilesMatch> | |
| </Directory> | |
| </IfModule> | 
| AuthName "Authorisation Required" | |
| AuthUserFile "/path/to/.htpasswd" | |
| AuthType Basic | |
| require valid-user | |
| ErrorDocument 401 "Authorisation Required" | 
| sudo mv /usr/bin/filezilla /usr/bin/prog-filezilla | |
| gksudo gedit /usr/bin/filezilla | |
| ### contents ---------------------------- | |
| #!/bin/bash | |
| export SSH_AUTH_SOCK="" | |
| export UBUNTU_MENUPROXY=0 | |
| prog-filezilla | |
| ### /end contents ----------------------- |