Category Archives: Uncategorized

Run as Administrator

To run software with Admin privileges, simply hold ctrl+shift when you launch the application.  If you have UAC enabled, it will prompt you at this point before opening the software.

If you wish to use the mouse, simply locate the software in your start menu. Simply right click on the software and choose Run as Administrator.

Installing Cloud9IDE on Ubuntu 10.04

Prerequisites:  node 0.6.19 (specifically this version, if need be use Node Version Manager to run multiple versions of Node simultaneously.

git clone https://github.com/ajaxorg/cloud9.git /directory/of/your/choice

cd /directory/that/you/chose

npm install -d

npm install -g sm

sm install

bin/cloud9.sh

Marc Ghorayeb • MongoDB schema definitions in Li3

Marc Ghorayeb • MongoDB schema definitions in Li3.

Adding Tags to lithium blog.  I found how to use list items / nested strings
in lithium using mongo.

More useful resources include: http://blog.raymondjulin.com/2011/01/06/list-of-useful-lithium-li3-resources/

http://cogfactory.net/2010/12/10/lithium-framework-blog-tutorial-extended-mongodb/

Lithium Error lithiumactionDispatchException (Code #404)

Error lithiumactionDispatchException (Code #404)

 

If you’re experiencing this issue, navigate to your current lithium project’s folder and run: li3 test /

 

Ubuntu 10.04 Linux Commands Cheat Sheet

Unzip:

  • sudo apt-get install unzip
  • unzip [file]

Tar:

  • tar -cvvf foo.tar [directory]
  •  tar -zcvf {new file name}.tar.gz {directory to compress}

Untar:

  • tar -zxvf yourfile.tar
  • tar -xvfz filename.tar.gz
  • tar -xvzf filename.tar.gz [directory]
  • tar -jxvf filename.tar.bz2

Find: find [dir] -type d|f -iname ‘searchstring’

  • find / -type -d -iname ‘python’
  • find ~ -type d -exec chmod +x {} ;

Delete a user account

  • sudo deluser <username>

Add an New user

  • sudo useradd <username>

or

  • sudo useradd -d /home/<directory> -m <username>

( -d specifies home directory, -m makes the folder if it doesn’t exist )

useradd doesn’t add password unless you add -p     …. or you can just set the password later with:

  • sudo passwd <username>

If called with two non-option arguments (see below), adduser will add an existing user to an existing group.

Add an existing user to an existing group

  • sudo usermod -a -G <group> <user>

Set password of new user

  • sudo passwd <username>

Make a new Group: 

  • groupadd <groupname>

To see what groups currently exist:

  • cat /etc/group

To see current users logged in:

  • w

Count lines in file:

  • wc -l <filename>

 

Password protecting nginx

Create a Username/Password which will be stored in ‘useraccess’, a file I just made up.

htpasswd -b -c useraccess username password

Now in the nginx config, under:

auth_basic "Message box title of password prompt";
auth_basic_user_file /path/to/useraccess;

How to get around the Wikipedia blackout.

Copy and paste this into your address bar: javascript:$("#content").css("display", "block");$("#mw-sopaOverlay").css("display","none");   To disable blackout on wordpress.com: (this does you no good because the url’s are rewritten) javascript: jQuery("span").removeClass("picture");jQuery(".posttitle").attr("style", "background: #FFFFFF ! important");jQuery("small span").attr("style", "background: #FFFFFF ! important");jQuery("span span").attr("style", "background: #FFFFFF ! important");jQuery("span strong").attr("style", "background: #FFFFFF ! important");