Monthly Archives: May 2009

set bach as default shell on freeBSD

0
Filed under BSD, Uncategorized, WEB-DEV-LOG
Tagged as

chsh -s /usr/local/bin/bash

freeBSD gloabal vimrc

0
Filed under BSD, Uncategorized, WEB-DEV-LOG
Tagged as

/usr/local/share/vim/vimrc

FreeBSD 7.0 – Bash

0
Filed under BSD
Tagged as
  1. Execute cd /usr/ports/shells/bash
  2. Execute make install clean
  3. Execute chsh or chsh -s /usr/local/bin/bash

http servers

0
Filed under server side, WEB-DEV-LOG
Tagged as

nginx

used by wordpress.com

lighttpd

WordPress.com has this line in its response header: “X-hacker: If you’re reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.”

shell / GNU Coreutils

0
Filed under server side, WEB-DEV-LOG
Tagged as

http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html

ETL

http://commandline.org.uk/command-line/ten-cool-coreutils-commands/

GNU Coreutils

FreeBSD + GNU userland

0
Filed under BSD
Tagged as

http://tomayko.com/writings/gnu-is-killing-solaris

.bashrc

# prefer GNU version of most core utilities (interactive shell only).
alias awk=$(type -p gawk gnuawk awk | head -1)
alias base64=$(type -p gbase64 base64 | head -1)
alias basename=$(type -p gbasename basename | head -1)
alias cat=$(type -p gcat cat | head -1)
alias cp=$(type -p gcp cp | head -1)
alias cut=$(type -p gcut cut | head -1)
alias date=$(type -p gdate date | head -1)
alias diff=$(type -p gdiff diff | head -1)
alias df=$(type -p gdf df | head -1)
alias du=$(type -p gdu du | head -1)
alias false=$(type -p gfalse false | head -1)
alias fmt=$(type -p gdu du | head -1)
alias head=$(type -p ghead head | head -1)
alias join=$(type -p gjoin join | head -1)
alias make=$(type -p gmake make | head -1)
alias md5sum=$(type -p gmd5sum md5sum | head -1)
alias mv=$(type -p gmv mv | head -1)
alias nl=$(type -p gnl nl | head -1)
alias paste=$(type -p gpaste paste | head -1)
alias printf=$(type -p gprintf printf | head -1)
alias readlink=$(type -p greadlink readlink | head -1)
alias rm=$(type -p grm rm | head -1)
alias seq=$(type -p gseq seq | head -1)
alias sha1sum=$(type -p gsha1sum sha1sum | head -1)
alias sleep=$(type -p gsleep sleep | head -1)
alias sort=$(type -p gsort sort | head -1)
alias split=$(type -p gsplit split | head -1)
alias tac=$(type -p gtac tac | head -1)
alias tail=$(type -p gtail tail | head -1)
alias tar=$(type -p gnutar gtar tar | head -1)
alias tee=$(type -p gtee tee | head -1)
alias touch=$(type -p gtouch touch | head -1)
alias tr=$(type -p gtr tr | head -1)
alias true=$(type -p gtrue true | head -1)
alias uniq=$(type -p guniq uniq | head -1)
alias uptime=$(type -p guptime uptime | head -1)
alias wc=$(type -p gwc wc | head -1)
alias who=$(type -p gwho who | head -1)
alias whoami=$(type -p gwhoami whoami | head -1)
alias yes=$(type -p gyes yes | head -1)

backup with DD

1
Filed under Uncategorized, WEB-DEV-LOG
Tagged as

full hard disk copy
dd if=/dev/hdx of=/dev/hdy
dd if=/dev/hdx of=/path/to/image
dd if=/dev/hdx | gzip > /path/to/image.gz
dd if=/dev/sda | bzip2 > disk.img.bz2

Restore Backup of hard disk copy
dd if=/path/to/image of=/dev/hdx
gzip -dc /path/to/image.gz | dd of=/dev/hdx

Yahoo spam

0
Filed under Uncategorized, WEB-DEV-LOG
Tagged as

My mail is still marked as spam by yahoo. It seems they need domain keys setup. setting up SPF seems to have fixed hotmail. Fingers crossed.

WWW or no WWW

0
Filed under Uncategorized, WEB-DEV-LOG
Tagged as

Google Hosted Service

Do I need to change the reverse pointers for my DNS to point to host.TLD or it TLD fine.

should I remap mail.TLD to mx.TLD it would fit better with a.ns.TLD a.mx.TLD

Punktoronto updates

0
Filed under Uncategorized
Tagged as

Punktoronto finaly switched to openpress ( wordpress + phpBB). Trying to figure out a phpBB portal was too weird and something it didn’t seem that a lot of people were trying to do.