Dazed Programmer

rm Argument list too long

rm Argument list too long

rm * Argument list too long The dreaded message when you are hurriedly trying to delete logs from your production machines because your /var partition is filling up fast and your machine is about to crap out. Well, maybe that’s not the case for you, but if you are here, you are here because you tried to delete a bunch of files using a wildcard […]

Read Me Leave comment

Github Enterprise Admin Manually Add to Repo or Organization

Github Enterprise Admin Manually Add to Repo or Organization

I am the Github Enterprise admin for my organization, and I often have to jump into other organizations repos and wikis. I thought to myself, I should be able to do this by going through the Admin interface or the Management interface, but apparently you cannot. So here is my cheat sheet for adding myself to other repos or to other organizations. Adding yourself to […]

Read Me Leave comment

Truncate Log File

Truncate Log File

Truncate Log File Use the truncate command to shrink or extend the size of each FILE to the specified size:

The -s option is used to set SIZE to zero. See truncate command man page for more details:

    That’s all folks.

Read Me Leave comment

Play Framework Start Script for RHEL 7

Play Framework Start Script for RHEL 7

I modified these play framework start scripts to replace our original init.d scripts that we used to use for our Play Framework Scala applications. The original scripts were always a bit flaky on us, and well, never really worked 100%. I decided it was time to redo the init.d scripts. In the end, I decided to use sbt-publish plugins to create RPM packages that we […]

Read Me Leave comment

Newrelic High Response Times

Newrelic High Response Times

NewRelic High Response Times Today I am tasked with troubleshooting why a set of newly provisioned physical RHEL 7.3 (Maipo) servers are showing bad performance in Newrelic. I just setup these new physical servers and I installed our apps into them.  The apps themselves are Play Framework Scala based web applications. Upon starting the application, and doing rigorous internal QA on it, I got sign-off […]

Read Me Leave comment

Setting up logrotate in RHEL

Setting up logrotate in RHEL

So on today’s fun things to deal with, I had a teammate come to me with a problem with one of the servers. It seems nginx just refused to startup. Well it turns out that the reason Nginx wouldn’t start, was because the hard drive was completely full, and there was no space left on the device. But how did I figure this out? 1. […]

Read Me 1 Comment

Hello world!

Hello world!

Here is my obligatory Hello World first post. Since I have been doing a lot of scala recently, I will do it in this language.

Read Me Leave comment