-
Recent Posts
Recent Comments
Archives
Categories
Meta
Stop Nano from adding newline character to end-of-file
I use Nano for all of my cli text file editing and I had always noticed that it puts a newline at the bottom of the file, but this has never bothered me much. Well today it caused me quite … […] Continue reading
Posted in Googling for Answers, Linux
Tagged linux, nano
Debian: show a list of all packages that are to be upgraded with apt
This is a super easy one, and can easily be found in the man page, but I’ve googled it enough times that I think it’s worth including here. To see packages with available upgrades, without installing them, use the -u … […] Continue reading
Posted in Googling for Answers, Linux
Tagged Apt, debian, linux
jQuery: Execute a callback once, after a class based animation completes
I was developing some web recently and ran into a jQuery problem that was new to me. I was using a class selector to fade a group of elements, and using a callback function which would fire after the fade … […] Continue reading
Posted in Googling for Answers, Web Development
Tagged jQuery
Stop truncating your output you jerk!
The jerk in this scenario is the linux command ‘ps’. I was using it recently in a script that checks to make sure a certain process is running. Whenever I would run the command directly, I would get the desired … […] Continue reading
Posted in Googling for Answers, Linux
Tagged linux, ps, scripting
LEMP Site Setup Script, including SFTP
Setting up a LEMP server on Debian 6 was the first post I ever wrote. The impetus for that post (and this blog) was to chronicle all the steps I took, so that I could go back later and find … […] Continue reading
Display All Errors and Warnings in PHP
I find myself googling this up waaaaaaay too often, but there’s nothing unusual about that. I usually put this at the top of my code during development. [note color=”#DDD”]
1 2 |
error_reporting(E_ALL); ini_set('display_errors', '1'); |
[/note] Here’s another handy tip I picked up somewhere: If you’ve got … […] Continue reading
Posted in Googling for Answers, Web Development
Tagged php, web development
Colored Output for ls as root
I feel like a total nubbins for this one. I’ve been messing around with linux for many years now and I’ve always wondered why my regular users had pretty color coded files and directories when using ls, but root never … […] Continue reading
Posted in Googling for Answers, Linux
Tagged bash, linux
Linux Command Line Aliases
Ok, you have to promise not to make fun of me if you’re going to continue reading. You promise? Pinky swear? Alright then, here we go. Somehow or another, I managed to avoid knowledge of command aliases in Linux for … […] Continue reading
Posted in Googling for Answers, Linux
Tagged bash, linux
Nginx: 502 Bad Gateway
I just recently switched from Apache to Nginx and everything seemed to be going well. However, while testing a PunBB site that I brought over, I got a 502 Bad Gateway error when trying to make a post. The strange … […] Continue reading
Posted in Googling for Answers, Linux, Nginx
Tagged linux, nginx
Linux Find and Replace with sed
Have you ever found yourself googling how to find and replace within a file from the linux command line? Me too. Here’s the answer that works for me: sed -i 's/search/replace/g' /path/to/file.txt Rather than type that command all the time, I wrote a … […] Continue reading
Posted in Googling for Answers, Linux
Tagged linux