Sem categoria
Downloading courses from coursera
sudo apt-get install libxml2 libxml2-dev libxslt-dev python-dev
easy_install lxml
Just do a “pip install coursera-dl” and then run as follows:
coursera-dl -u myusername -p mypassword -d /my/courses/ algo-2012-001 ml-2012-002
Code is in python and can be found on Github.
Source:http://dirkgorissen.com/2012/09/07/coursera-dl-a-coursera-download-script/
Installing qtstalker in Ubuntu 12.04
sudo apt-get install build-essential libdb4.4-dev qt3-dev-tools libqt3-mt-dev
libdb4.4-dev not found
Django 1.5 User Model and Registration
Facebook Login
Sell stuff to your audience: https://gumroad.com/
https://github.com/omab/django-social-auth
https://github.com/jonathanendersby/SocialAuthCustomUserModel
Trying to get this one working!
pip install django-social-auth
django-admin.py startapp accounts
Add to settings:
‘genomex.accounts’,
‘social_auth’,
add to middleware classes
‘social_auth.middleware.SocialAuthExceptionMiddleware’,
Add to settings
Go to google api to get an id
https://code.google.com/apis/console/?pli=1#project:804861904040:access
Call back www.genomex.org/post
Add keys
Fill Models and Views, templates
add urls.py
./manage.py syncdb
migrate
Fix templateview
Deploy!
Setting up env in Webfaction
https://github.com/xenith/django-base-template
$ pip install -r requirements/local.txt
$ cp projectname/settings/local-dist.py projectname/settings/local.py
$ python manage.py syncdb
$ python manage.py migrate
$ python manage.py runserver
Edit http apache confg
edit wsgi.py
from site import addsitedir
addsitedir(‘/home/raony/.virtualenvs/cursoder/lib/python2.7/site-packages’)
sys.path.append(‘/home/raony/webapps/cursoder/rcourse’)
requirements/local
requirements/production
Set up Database
python manage.py sync
St up local.py
Redirect uri request
http://genomex.org/complete/google-oauth2/
Found this website a long time ago
https://github.com/pennersr/django-allauth
Rooting my Android Phone
Super One Click http://forum.xda-developers.com/showpost.php?p=8699742&postcount=537 sudo apt-get install lib32ncurses5 sudo apt-get install lib32stdc++ sudo apt-get install mono http://developer.android.com/tools/device.html#setting-up Link2SD http://forum.xda-developers.com/showthread.php?t=2177655
Articles of the week
http://www.ncbi.nlm.nih.gov/pubmed/21198543
http://download.cell.com/AJHG/pdf/PIIS0002929711000966.pdf
Reducing ubuntu disk space
I wanted to upgrade my system from Biolinux 7.0 to Ubuntu 13.10 and still keep all my biolinux packages like galaxy, biopython and etc …
http://www.omgubuntu.co.uk/2010/08/omg-5-five-ways-to-free-space-in-ubuntu
http://www.westernwillow.com/cms/blog/franco/reclaiming-disk-space-ubuntu-server
http://theopenhelp.com/2010/06/how-to-free-up-disk-space-in-ubuntu.html
http://askubuntu.com/questions/100004/how-can-i-free-space-from-a-massive-39-5gb-var-log-folder
Code:
sudo apt-get autoclean sudo apt-get autoremove sudo apt-get clean
Try to clean the cache using
sudo rm -rf /var/cache/apt/archives/*.deb
http://askubuntu.com/questions/39536/how-can-i-store-var-on-a-separate-partition
http://askubuntu.com/questions/32191/how-do-i-remove-cached-deb-files
raony@biolinux[raony] df -h [ 8:16AM]
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 19G 16G 1.5G 92% /
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 19G 14G 3.5G 80% /
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 19G 12G 5.8G 67% /
Nginx
http://carrot.is/coding/nginx_introduction