Random thoughts.
-
Setting up Push-to-Deploy with git – Kris Jordan
I first set up a push-to-deploy system with git and puppet for a side project a few years back. It worked so well I transitioned my company’s development process onto it for all of our new projects starting last year. It offers the simplicity of the “push-to-deploy” model Heroku pioneered, with full control and flexibility…
-
Setup .dev root domain for local web development on mac
Terminal commands for setting up a .dev root domain on your Mac OS X 10.9+ for local development. Homebrew ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” dnsmasq brew install dnsmasq cd $(brew –prefix) mkdir etc echo ‘address=/.dev/127.0.0.1’ > etc/dnsmasq.conf sudo cp -v $(brew –prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist sudo mkdir /etc/resolver sudo bash -c…
-
Comcast vs Consolidated Communications Internet Speed Test
I’m all about getting the fastest Internet available if it’s at a reasonable price. With so many devices these days connected to the Internet, it’s hard not to live without it and the connection speed is definitely important. Who’s got time to wait around on a slow connection? I’ve had Comcast Xfinity Internet with Blast! Speed…
-
IE8 checkbox not printing bug fix using jQuery
checkbox IE8 bug IE8 has a bug where if you check a checkbox then print the form the checkbox does not show as being checked. MSFT bug #431489 I’ve found that this piece of code solves that problem and it works for HTML5. IE8 checkbox printing bug FIX // fix for ie8 printed checkbox bug…
-
25 signs you are passionate about something
There are several signs and indicators which show that you’re really passionate about something. You know you are really passionate about something when… You wake up in the morning and you can’t wait to start working on it. You can’t really get to bed because you keep thinking about it. Your eyes light up and…
-
Search for files modified in the last X amount of days in UNIX
Searches for files modified up to 2 days ago. find ./ -type f -mtime -2 -exec ls -al {} \
-
Kilo Bytes Per Second vs. Kilo Bits Per Second (KBps vs. kbps)
Measure of file size: KBps File size i.e. how big the file or how much space a file occupies in the hard disk measured in terms of KiloBytes (KB upper case “K” and upper case “B”). In computing terms the upper case “K” stands for 1024. 1024 is computed from 210. (2 power 10). 2…
-
How to create a 1 gig file
dd if=/dev/zero of=big-file.bin bs=1g count=1 or mkfile 1g big-file.bin
-
How to tar a directory and only include certain file types
find myProjectDirectory -type f \( -name \*\.php -o -name \*\.js -o -name \*\.css -o -name \*\.inc \) | xargs tar -rf myProjectTarName.tar