CSV file of Windows Process list
If you need a CSV file of the currently running processes in Windows you can use the task manager command line tool. C:> TASKLIST.EXE This will dump the task list to the screen. But there are several options you can use: C:> TASKLIST.EXE /V /FO CSV > filename.csv The above will produce a nicely formatted [...]
Facebook – Download *all* of your data
You can download all the data you’ve ever uploaded to Facebook if you like. Once you are logged in, click this link: https://www.facebook.com/editaccount.php?ref=mb&drop and press the “Download your information” link. It will take a while as it packages up all images and videos too. Facebook will email you when it’s ready and hey hoe, you can [...]
MySQL Query Profiling
This inbuilt part of MySQL allows you to look closely at queries run – per session. And you can use this information to find bottlenecks. To enable profiling, run this command in the MySQL client: SET profiling = 1; This will turn on the profiling. Then for each query you run, MySQL will log all the [...]
Showing hidden files on Mac OS
Learning MacOS recently, and couldn’t find some hidden files, i.e. .htaccess To fix this, easy. Open Terminal, and paste the following in (both lines together), and press enter. Done. defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder To reverse the operation and re-hide them, change TRUE to FALSE.
iPhone iOS 4.2+ no longer automounting in Ubuntu
I had this problem, which meant my iPhone no longer automatically mounted in Ubuntu 10.10. I had recently upgraded the iOS to 4.3.1 and this turned out to be the cause of the issue. So, to fix it: Click on the System menu, then Administration and Software Sources. You’ll have to enter you administrator password. The [...]
Creating a copied branch in SVN
To create a new branch in SVN, its very simple. svn copy <source> <destination> -m <message> This will copy the SVN in the source folder, into a new branch under <destination>. Very simple. More, in depth information can be found here: http://svnbook.red-bean.com/en/1.5/svn.branchmerge.using.html#svn.branchmerge.using.create
How to use Nano on Unix-like systems
Nano is a basic text only text editor in Unix. It has no real GUI as such, and there is very little mouse interaction. But this makes it very useful, especially when SSHing to your web server. Here are some basic commands for you. Opening Nano to edit a file is as simple as Nano [...]
Accessing /var/www/ as normal user
Some useful linux commands to help with editing web pages on a server: To give access to others to my www folder (so I don’t have to login as sudo): chmod 2775 . -R To show the groups for the selected user: groups <username> groups www-data To add the www-data user to the local user’s [...]
Stupid Microsoft error messages
Why is it that the Microsoft developers have an inability to get their systems and processes to output a meaningful error message now and again? I mean, is it really that hard? I try to stay away from company slagging, but Microsoft, really…? I have recently bought an XBox 360 and I think its great. [...]
Linux – CHMOD 777
Just a note, when you update the permissions of a file: chmod +777 somefile.txt This change will only last as long as the session is logged in, i.e. once you reboot, it will revert back to what the permissions were.
« go back — keep looking »