Gamecreatures' Development Blog

Software Development Adventures

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About

Category Archives: linux

FreeBSD, (SuSE) Linux date differences

Posted on 4 September, 2007 by admin
Reply

I wanted to retrieve yesterdays date with a format of YYYYMM
This was solved in FreeBSD like this:

date -v-1d  "+%Y%m"

(SuSE) Linux doesn’t know the -v option
The same thing in Linux could be done like this:

date -d yesterday "+%Y%m"

Why the difference?

share!
Posted in freebsd, linux | Tagged date, freebsd, linux | Leave a reply

ANSI Highlighting With less

Posted on 20 August, 2007 by admin
Reply

My less command of my FreeBSD installation doesn’t show the ansi colors embedded in the Rails log file. Well it does shows the codes, but I don’t want to see those.

I found a simple solution for this:

export LESS='--RAW-CONTROL-CHARS'

Put the code above in the ~/.bashrc/ file and less will finally show the colors…!

share!
Posted in freebsd, linux | Tagged ansi, less, shell | Leave a reply

Calendar

February 2012
M T W T F S S
« Dec    
 12345
6789101112
13141516171819
20212223242526
272829  

Archives

  • December 2011 (1)
  • November 2011 (1)
  • October 2011 (1)
  • September 2011 (3)
  • August 2011 (5)
  • July 2011 (1)
  • September 2009 (1)
  • August 2009 (1)
  • November 2008 (2)
  • June 2008 (1)
  • May 2008 (2)
  • April 2008 (1)
  • March 2008 (1)
  • February 2008 (1)
  • January 2008 (4)
  • December 2007 (2)
  • September 2007 (4)
  • August 2007 (15)
  • July 2007 (13)

Tags

actionscript ajax ansi apache blog book calendar constants date eclipse flash freebsd httpd ie iis java javascript less libhttpd linux locking mantis microsoft mssql mysql objects php prototype rails rexml rsync ruby shell sourceforge ssh subversion svn table test tools updates webrick windows wordpress xml

Categories

  • apache
  • blog
  • books
  • browsers
  • flash
  • freebsd
  • javascript
  • libhttpd
  • linux
  • misc
  • mysql
  • os x
  • php
  • rails
  • rsync
  • ruby
  • svn
  • windows
  • wordpress

RSS FreeBSD Security

api

  • Got API
  • Haml
  • Prototype API
  • ReXML API
  • Ruby API Refs
  • Sass

frontpage

  • Coffeescript
  • GitHub
  • http://html5boilerplate.com/
  • Mikker.nl
  • Modernizr

Links

  • Java libhttpd

stock-resources

  • FreeSounds
  • Sock XCHNG

tools/windows

  • grepWin
  • Powermenu
  • Scite Tools
  • StExBar
Proudly powered by WordPress