Posted in 27 October 2010 ¬ 13:47h.John
I’m often switching between different Amazon AWS accounts. So to speed things along I’ve set up some simple scripts to easily switch between accounts while at the command line On Linux (aws_setup): <code>#!/bin/bash export EC2_URL=https://eu-west-1.ec2.amazonaws.com export EC2_CERT=/home/john/cert-12345678901234567890123456789012.pem export EC2_PRIVATE_KEY=/home/john/pk-12345678901234567890123456789012.pem</code> Once saved, run chmod +x aws_setup On Windows (aws_setup.cmd): <code>SET EC2_URL=https://eu-west-1.ec2.amazonaws.com SET EC2_CERT=C:\Users\John\cert-12345678901234567890123456789012.pem SET EC2_PRIVATE_KEY=C:\Users\John\pk-12345678901234567890123456789012.pem</code> Save [...]
Read the rest of this entry »
Posted in 24 November 2009 ¬ 16:35h.John
For shutting down multiple computers on a network: <code>for /L %C in (1,1,30) do shutdown -f -s -t 0 -m \\ict-%C</code> This shuts down all Windows computers named ict-X where X is a number from 1 to 30.
Read the rest of this entry »
Posted in 29 August 2009 ¬ 11:23h.John
Today, I was looking at my printer queue and realised that Claire had tried to print something from the internet to my work printer. This meant that unless I went to the office – it would not print. A problem. Because Claire had decided to use my laptop rather than one of the desktops, I [...]
Read the rest of this entry »
Posted in 21 August 2009 ¬ 11:01h.John
I needed to delete a chunk of cookies today – but I didn’t want to delete them all. Thankfully there is a handy command that is within Windows versions after XP such as Server 2003 and Vista that will enable to clean up without too many problems. The forfiles command will allow you to set [...]
Read the rest of this entry »
Posted in 12 June 2009 ¬ 23:40h.John
Here’s a useful guide for some IT people that are getting into Linux, and more specifically Ubuntu. Basically, it’s a reference for Windows users to do Linux-type commands. I’ll be adding to this post as time goes on. Shell Commands sudo -i set the command shell to have root privileges Networking Commands ifconfig shows network [...]
Read the rest of this entry »
Posted in 14 November 2007 ¬ 01:22h.John
Downloading FLV videos can be a nuisance, as there are few regular players that they work on. In Linux, there are various ways to convert FLV files to other formats. I’m hoping to build up a collection of commands and comment on the quality of the result. Hopefully others will find it useful. FFMpeg <code>ffmpeg [...]
Read the rest of this entry »