Articles
- Using grep and wget to download all hyperlinks to .pdf

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 [...]

No comments

- IRSSI SSL

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

No comments

- Debian remove unused dependences

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 [...]

No comments

- Modified theme

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.

No comments

- iptables reroute to another IP

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 [...]

No comments

- Inject things into a screen session

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 [...]

No comments

- How to install Icinga Debian [UNFINISHED]

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 [...]

No comments

- ssh login with out password

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 [...]

No comments

- rm exclude

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 [...]

No comments

- Some info on apt

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. [...]

No comments