271 reputation
16
bio website ladadadada.net
location London, United Kingdom
age 33
visits member for 2 years, 5 months
seen Apr 15 at 16:46

I'm an Australian by birth but currently live in London. I'm a traveller at heart and I love seeing how different the rest of the world is. I'm always up for something new and interesting.

I've been playing with computers pretty much my whole life, working with them since 2000 in tech support and programming and as a full-time Sysadmin since 2006. I've been fascinated by security since about 2003 and I tend to become the default "security guy" at most places I have worked.

I enjoy all forms of sport and outdoors activities but particularly cycling, hockey, sailboarding, snowboarding, camping and Frisbee. I'm also passionate about the environment, growing my own food, cooking it and eating it.


Dec
28
comment IPTABLES is slow after adding '-A INPUT -j DROP' to rule list
In some cases, sudo does DNS lookups and if these are blocked, the command will be slow. Are all your other iptables commands prefixed with sudo?
Sep
24
awarded  Critic
Sep
24
awarded  Citizen Patrol
Jun
4
awarded  Commentator
Jun
4
comment Amazon EC2 MySQL Failed to Start
Also, do you have backups? I have a feeling you're going to need them.
Jun
4
comment Amazon EC2 MySQL Failed to Start
Do you have any other ibdata1 or ib_logfile0 or ib_logfile1 files on your system? You can use locate ibdata1 or sudo find / -name ibdata1 to find them. (Note that the locate database is generated daily and won't have recently created files in it.)
Jun
4
comment Amazon EC2 MySQL Failed to Start
Wouldn't this have been better migrated to DBA.SE?
Mar
16
awarded  Yearling
Mar
15
comment Use grep to find all files in a directory with two strings
@kojiro That's neat. I didn't know about the -l option until I read @HaukeLaging's edit to his answer.
Mar
14
comment Use grep to find all files in a directory with two strings
Indeed, the efficiency optimisations would be quite different for a few large files compared to lots of little ones and * just isn't going to work at all after a few thousand files.
Mar
14
comment Use grep to find all files in a directory with two strings
That's what uniq | sort | uniq is for. "foo foo" ends up being one line but "foo 321" ends up being two lines because grep -o outputs all found strings on separate lines, even if they started on the same line.
Mar
14
comment Use grep to find all files in a directory with two strings
I like that --files-with-matches option. Just read up on it in the man page and it causes grep to stop after it finds the first match, meaning it's very efficient for large files if the match happens early. It also says that the short option -l is specified by POSIX, so it can be used outside the GNU world.
Mar
14
answered Use grep to find all files in a directory with two strings
Mar
2
comment Bash -Extract characters from string
grep has an option for only returning the matched string. echo $output | grep -o '"[^"]*"' would achieve what you do above with sed.
Nov
23
comment Colorizing tail output with sed
The reason it's not working is that backticks have no special meaning inside single quotes but they do have a special meaning inside double quotes.
Nov
23
answered Colorizing tail output with sed
Jul
4
awarded  Autobiographer
Mar
27
answered Attach multiple times to a single screen session
Mar
8
comment Add consecutive numbers succintly and elegantly to index lines
So will ^ as the regex.
Nov
19
comment Remove copyright symbol
Thanks for adding that fered. I had no idea tr worked that way.