Fork me on GitHub
Nation Pigeon

Viewing Monthly Archive January 2011

Using grep and wget to download all hyperlinks to .pdf

28th January 11 | Linux

I had a site that contained a load of pdfs that I wanted to download, to save me from clicking on each of the pdfs I did some googleing and found how to download all files ending in .pdf. cat index.html | grep -o -e http://[^[:space:]\”]*.pdf | xargs wget and for an even better approach [...]

[ Read More → ]

IRSSI SSL

28th January 11 | Systemless

To enable SSL connections in IRSSI /set use_ssl on /set ssl_verify on /save And then you should be able to connect to SSL enabled servers. /connect -ssl irc.nationpigeon.com 5567

[ Read More → ]

Debian remove unused dependences

27th January 11 | Linux

After installing and playing around with your Linux distribution you might end up with a load of installed dependences doing nothing but taking up space on your drive. With a cool little program you can find all packages that can be removed, deborphan. deborphan –guess-all This will give you a list of packages that are [...]

[ Read More → ]

Modified theme

24th January 11 | Systemless

Hey, I changed the site theme to have next and previous posts at the bottom of each full post. It doesn’t really work when there are no more before it, because it leaves a floaty line :/ . I’m sure there’s something that will fix that. Now I’m off to find food.

[ Read More → ]

iptables reroute to another IP

22nd January 11 | Linux

This is how I re-routed all traffic through port 25565 to another IP address. echo “1″ > /proc/sys/net/ipv4/ip_forward iptables -t nat -A PREROUTING -p tcp –dport 25565 -j DNAT –to-destination <IP> iptables -t nat -A POSTROUTING -j MASQUERADE To clear what you just did: iptables -F iptables -X iptables -t nat -F iptables -t nat [...]

[ Read More → ]

Inject things into a screen session

22nd January 11 | Linux

Say you have a screen session running and you want to have a bash script access and run a command, you can do it with this. #!/bin/sh screen -S minecraft -p 0 -X stuff “`printf “say This is a test.\r”`”; This injects the command “say This is a test” to the screen called minecraft. Found [...]

[ Read More → ]

How to install Icinga Debian [UNFINISHED]

21st January 11 | Linux

Upload the tar to user server. scp ./icinga-1.2.1.tar.gz osaka[at]nationpigeon.com:./icinga/ Extract it tar -xvf icinga-1.2.1.tar.gz ./configure make make all Then I got an error on make install, said there was no user ‘icinga’ so I created one. useradd -m icinga passwd icinga And it worked fine. Created a group for the user so it can send [...]

[ Read More → ]

ssh login without password

21st January 11 | Linux

If you frequently use ssh to login or run commands on a remote machine, it might be helpful for you if you did not have to not enter a password each time you want to connect to the server, this can be done by uploading your public ssh key to the servers ssh files. With [...]

[ Read More → ]

rm exclude

21st January 11 | Linux

With help from Google and Linux forum, found a cool command that will delete everything else but not the folder or file name in the specified field behold the command of destiny! rm -r `ls | grep -v ‘snapshots’` Make sure that around the piped ls command you have tilda and a single quote around [...]

[ Read More → ]

Some info on apt

21st January 11 | Linux

apt-get install food apt is a very cool and easy to use package manager for UNIX based systems. Here are some simple and effective commands that might help you do things XD apt-get update – makes sure that all the information is newest. apt-get upgrade – checks for all packages that needs to be updated. [...]

[ Read More → ]

Go Back in Time »

Copyright © 2007 ∞ Nation Pigeon - Designed by Peter Mayanrd
Theme Based on Black-Green - Fork it on GitHub