Hardening Linux Systems
20060912
20060718
Jolli-worms?
Are we eating cultured worms? Check out this website:
http://www.jollibee.com.ph/jollibee-food-corporation.html
Open the HTML page:
Mozilla: CTRL+U
Opera: CTRL+F3
Internet Explorer: Edit->View source(???)
<META NAME="object" CONTENT="jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food">
This is not an official indication that they do use cultured earthworms. If you also check out the end of the HTML page, they have lots of keywords put in for search engines. I wonder if this is allowed by Google?
http://www.jollibee.com.ph/jollibee-food-corporation.html
Open the HTML page:
Mozilla: CTRL+U
Opera: CTRL+F3
Internet Explorer: Edit->View source(???)
<META NAME="object" CONTENT="jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food, jollibee food corporation, earthworm, earthworm hamburger, earthworm hamburger issue, earthworm hamburger patties, earthworm meat, earthworm meat price, earthworm price, earthworms, earthworms price, eating fast food">
This is not an official indication that they do use cultured earthworms. If you also check out the end of the HTML page, they have lots of keywords put in for search engines. I wonder if this is allowed by Google?
20060703
Mac Mini Project
I'm planning to build a media center PC using Mac Mini. Here are the things to digest:
The howto by Chris
The hardware that connects the mini to a TV
The software that rips the DVDs and save them to a file
The howto by Chris
The hardware that connects the mini to a TV
The software that rips the DVDs and save them to a file
20060622
Convert FLV files to MPEG
to convert to "keys me" videos and the like
ffmpeg -i video.flv -ab 56 -ar 22050 -b 500 -s 320x240 test.mpg
ffmpeg -i video.flv -ab 56 -ar 22050 -b 500 -s 320x240 test.mpg
20060613
20060523
WAMP?
Windows Apache MySql Php
Been getting flack about me moderating a guy's sub-forum at an all-female dominated community board. It's hard to act "professional" when some people act like children.
Been getting flack about me moderating a guy's sub-forum at an all-female dominated community board. It's hard to act "professional" when some people act like children.
20060329
20060315
k700i & VGA Mode lines
Just got a new phone! It's Sony Ericsson k700i. It's an old phone but it's the phone I really want.
Just saw this on /.
I know I'll get moderated as a troll again because I suggest using Linux over Windows, but
Modeline "800x480" 40 800 864 928 1088 480 481 484 509 +hsync
Will do the trick for X. No drivers necessary.
It might come in handy someday.
Just saw this on /.
I know I'll get moderated as a troll again because I suggest using Linux over Windows, but
Modeline "800x480" 40 800 864 928 1088 480 481 484 509 +hsync
Will do the trick for X. No drivers necessary.
It might come in handy someday.
20060117
Ultra Electro Magnetic Top!
I was checking out the Eraserheads entry at Wikipedia to see the albums they've made. I have their first album, titled "UltraElectroMagneticPop!". The Wiki entry didn't say where the name of the album came from so I tried editing it.
The Wiki hanged for a while till I decided to save it again.
Check it out! Hopefully, my update was accurate enough:
http://en.wikipedia.org/wiki/The_Eraserheads#Discography
The Wiki hanged for a while till I decided to save it again.
Check it out! Hopefully, my update was accurate enough:
http://en.wikipedia.org/wiki/The_Eraserheads#Discography
20051028
Bookmarks: Windowx XP Remote Booting
Might be handy someday.
http://msdn.microsoft.com/embedded/usewinemb/xp/deploy/default.aspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xpehelp/html/xehowhowtoconfigureeltorito.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xpehelp/html/xetbshowtocreaterun-timeimageformassdeployment.asp
http://msdn.microsoft.com/embedded/usewinemb/xp/deploy/default.aspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xpehelp/html/xehowhowtoconfigureeltorito.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xpehelp/html/xetbshowtocreaterun-timeimageformassdeployment.asp
20050819
20050817
20050810
Unix: Old dog, new tricks
Renaming files in linux:
To rename all files ending in ".old" to ".new", use the following:
for i in *.old; do echo mv $i `basename $i .old`.new; done
To remove the first few characters from a file, you can try the following:
for i in *; do echo mv $i `echo $i | tr -d "wqy"`; done
To rename/change uppercase to lowercase in current directory:
for i in `ls`; do mv $i `echo $i | tr '[A-Z]' '[a-z]'`; done
To rename/change uppercase to lowercase excluding directories:
for i in `find . -type f -print`; do
base=`basename $i`;
echo mv $i `dirname $i`/`echo $base | tr '[a-z]' '[A-Z]'`;
done
To rename/change uppercase to lowercase directories:
for i in `find . -print -maxdepth 1 -type d | grep [a-z]`; do
echo mv $i `echo $i | tr '[a-z]' '[A-Z]'`;
done
Remove markup tags in files:
cat filename.xml |sed -e "s/<\/*tagname>//gi"
cat filename.xml |sed -e "s/<\/*tagName>//g"
To rename all files ending in ".old" to ".new", use the following:
for i in *.old; do echo mv $i `basename $i .old`.new; done
To remove the first few characters from a file, you can try the following:
for i in *; do echo mv $i `echo $i | tr -d "wqy"`; done
To rename/change uppercase to lowercase in current directory:
for i in `ls`; do mv $i `echo $i | tr '[A-Z]' '[a-z]'`; done
To rename/change uppercase to lowercase excluding directories:
for i in `find . -type f -print`; do
base=`basename $i`;
echo mv $i `dirname $i`/`echo $base | tr '[a-z]' '[A-Z]'`;
done
To rename/change uppercase to lowercase directories:
for i in `find . -print -maxdepth 1 -type d | grep [a-z]`; do
echo mv $i `echo $i | tr '[a-z]' '[A-Z]'`;
done
Remove markup tags in files:
cat filename.xml |sed -e "s/<\/*tagname>//gi"
cat filename.xml |sed -e "s/<\/*tagName>//g"
20050805
20050727
iptables brute force rule
Saw this on /. today:
iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW -j SSH_Brute_Force
iptables -A SSH_Brute_Force -m recent --name SSH --set --rsource
iptables -A SSH_Brute_Force -m recent ! --rcheck --seconds 60 --hitcount 4 --name SSH --rsource -j RETURN
iptables -A SSH_Brute_Force -m limit --limit 3/min -j LOG --log-prefix "SSH Brute Force Attempt: "
iptables -A SSH_Brute_Force -p tcp -j REJECT
4 ssh connections within a second causes a 3 minute ban. I wonder if there's a FreeBSD equivalent.
iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW -j SSH_Brute_Force
iptables -A SSH_Brute_Force -m recent --name SSH --set --rsource
iptables -A SSH_Brute_Force -m recent ! --rcheck --seconds 60 --hitcount 4 --name SSH --rsource -j RETURN
iptables -A SSH_Brute_Force -m limit --limit 3/min -j LOG --log-prefix "SSH Brute Force Attempt: "
iptables -A SSH_Brute_Force -p tcp -j REJECT
4 ssh connections within a second causes a 3 minute ban. I wonder if there's a FreeBSD equivalent.
20050722
20050721
More FreeBSD notes
Why oh why isn't there a UbuntuGuide.org equivalent for FreeBSD? The Handbook and FAQ just doesn't cut it. Anyway, here's some stuff I just learned:
1. Install sudo (pkg_add -r sudo) so you don't have to switch to root. This is sort of a remant of Ubuntu in me. Never was a fan of sudo before.
2. pkg_add -r freebsd-update. Then copy the sample configuration file & create a folder called /usr/local/freebsd-update. Then do a sudo freebsd-update fatch. If all looks good, do a sudo freebsd-update install
3. Have sex.
1. Install sudo (pkg_add -r sudo) so you don't have to switch to root. This is sort of a remant of Ubuntu in me. Never was a fan of sudo before.
2. pkg_add -r freebsd-update. Then copy the sample configuration file & create a folder called /usr/local/freebsd-update. Then do a sudo freebsd-update fatch. If all looks good, do a sudo freebsd-update install
3. Have sex.
FreeBSD as a Desktop
Just ditched my office workstation running Ubuntu 5.04 (based off Debian) to FreeBSD 5.4. I used FreeBSD before but as a server. What am I thinking? Though GNOME (my choice of WM) is supported, it's not *fully* supported per-se. For one, whenever I access the Users & Groups in the Admin section while running as a regular user, the bloody program just waits there. For nothing. It should at least ask me for the root password but it didn't.
But I still like it, it's small and stable considering what I mentioned above. What I did:
1. Install FreeBSD minimal - at this point I have a "usable" FreeBSD machine. Then used pkg_add to install the Xorg X server. Since FireFox isn't on the CD, I used pkg_add -r firefox to do a web install. So pkg_add proceeds to download firefox *and* it's dependencies... including perl. WTF? Why?
2. OK, I need to install GNOME. A lot of people are whining about some WMs are too bloated. Luckily, FreeBSD's ports include gnome2-lite which is a minimal install of GNOME. So off I go via pkg_add -r gnome2-lite.
3. Also pkg_add -r gdm for good measure.
4. Edited /etc/ttys and enabled GDM.
5. I'm still sexy.
I also tried adding the flash plugin for FireFox. Interestingly, firefox crashes from time to time so I removed it via pkg_delete. Good ridence I say. No flash? It's all good. I don't need it anyway since I'm at work. :D
But I still like it, it's small and stable considering what I mentioned above. What I did:
1. Install FreeBSD minimal - at this point I have a "usable" FreeBSD machine. Then used pkg_add to install the Xorg X server. Since FireFox isn't on the CD, I used pkg_add -r firefox to do a web install. So pkg_add proceeds to download firefox *and* it's dependencies... including perl. WTF? Why?
2. OK, I need to install GNOME. A lot of people are whining about some WMs are too bloated. Luckily, FreeBSD's ports include gnome2-lite which is a minimal install of GNOME. So off I go via pkg_add -r gnome2-lite.
3. Also pkg_add -r gdm for good measure.
4. Edited /etc/ttys and enabled GDM.
5. I'm still sexy.
I also tried adding the flash plugin for FireFox. Interestingly, firefox crashes from time to time so I removed it via pkg_delete. Good ridence I say. No flash? It's all good. I don't need it anyway since I'm at work. :D
20050705
Subscribe to:
Posts (Atom)