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/
If you’re experiencing this issue, navigate to your current lithium project’s folder and run: li3 test /
Find: find [dir] -type d|f -iname ‘searchstring’
Delete a user account
Add an New user
( -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:
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
Set password of new user
Make a new Group:
To see what groups currently exist:
To see current users logged in:
Count lines in file:
Well after trying to recompile the entire library, i came across this link.
A plethora of precompile python libraries. What a great resource.
Up until i found the precompiled libraries i came across a plethora of errors trying to compile MySQLdb. Errors I’ve gotten:
File setup_windows.py line 7, in get_config serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
error: Unable to find vcvarsall.bat
Hope this helps you as much as it did me.
Add the following urls to your sources.list file:
deb http://nginx.org/packages/ubuntu/ lucid nginx deb-src http://nginx.org/packages/ubuntu/ lucid nginx
Close and save the file. Then run the following commands:
sudo apt-get update sudo apt-get install nginx
That simple. Next comes Configuring NGiNX.