Craig Waterman | Technologist, Software Engineer | Syracuse, NY
  • Facebook
  • Twitter
  • Home
  • Portfolio
  • Contact Me

Shell/Unix

Home» Programming » Shell/Unix

OS X Lion font anti-aliasing breaks after connecting new ASUS monitor

Posted on April 18, 2012 by craig in Mac OS X, Programming, Shell/Unix No Comments

It appears OS X Lion still takes suggestions from connected monitors as to the correct level of anti-aliasing to use for rendering text.
If you’ve recently connected an ASUS monitor and suddenly your type looks wonky, run the following command via Terminal.app to restore goodness.

defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

Read full article »

View Post

HOW-TO: Determine what version of Ubuntu you’re running

Posted on March 5, 2012 by craig in Programming, Shell/Unix

Two simple commands, these are actually for far more than just Ubuntu:

lsb_release -a
uname -a

Sample output:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
 
# uname -a
Linux Somehost 3.0.0-12-virtual #20-Ubuntu SMP Fri Oct 7 18:19:02 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
View Post mini

Exporting every table in a MySQL database to separate CSV files

Posted on July 19, 2011 by craig in Programming, Shell/Unix

While phpMyAdmin, mysqldump and SELECT INTO OUTFILE are great tools on their own, sometimes you need a little automation to make life a little easier.
I needed the ability to export every table in a MySQL database to individual CSV files, I’ve thrown together a bash script that does just that. I am looking to use … Read full article »

View Post mysql, os x, shell scripting

Random Portfolio Pieces

About Craig

I'm a seasoned developer who codes, consults, trains and more. Download my resume, or visit my portfolio to learn more.

  Craig's Resume

Twitter Feed


Follow @ckh2oman on Twitter

Categories

  • Cycling
  • Family
  • Flash/Actionscript
  • Git
  • JRuby
  • Link
  • Mac OS X
  • MongoDB
  • Movies
  • MySQL
  • Node
  • PHP
  • Portfolio
  • Programming
  • Random
  • Road to Fitness
  • Ruby on Rails
  • Science & Technology
  • Shell/Unix
  • Weight Lifting
  • WordPress

Archives

  • May 2012 (1)
  • April 2012 (1)
  • March 2012 (4)
  • February 2012 (4)
  • January 2012 (14)
  • December 2011 (4)
  • November 2011 (3)
  • October 2011 (1)
  • August 2011 (2)
  • July 2011 (13)

Obligatory Tag Cloud

.net ajax asp.net cakephp code editing coffee script coldfusion cycling dailymile dblizzy execjs family fitness flash health html/css ide jquery jruby kids lion magnolia mcrypt mini mongo monkey brain mysql os x oxrocket pdf php ruby ruby debugging rubygems rvm shell scripting silverstripe social twitter undefined method website weight weight lifting wordpress xml

(c) 2012 Craig Waterman | Technologist, Software Engineer | Syracuse, NY - Web Design by Jason Bobich