I’m following step one of this docker tutorial. I have installed ubuntu version 14.04 on a virtual box vm. I intentionally downgraded by docker version so that when I type “docker version” I get Client version: 1.5.0. This is because the server I intend to communicate with is on 1.5.0. When …
Is it possible to get the version of a shared object?
I’m trying to track down a bug in my software line. I have two release build version 2.0.962 and 2.0.966. The only difference between these versions is a lib.so file. In order to figure out where to start looking in the source tree for lib.so, I need to know its version number in each of the release bui…
SystemTap script to profile latency of functions
My goal is to profile the execution time of each function in a kernel module. Using the sample scripts I saw online, I came up with the following script to fulfill my need. But occasionally I get negative values for calculated latencies. Although, they happen rarely but I guess that indicates something is wro…
Is there a bug in “zgrep -H”?
Just tried grep and zgrep on following test file: I also need the file-name printed, so I’ve added the -H switch and stepped on the following problem: E.g. depending on POSITION of -H switch in the command-line – the behavior is different for me and the issue always reproduces 🙁 One more test: Her…
Configure saucelabs for jenkins
I am trying to run my protractor tests on my Jenkins server which happens to be a Linux box (Red Hat Enterprise Linux Server release 6.6) which has no browser. So i did some research and realized I would have to use saucelabs. I do have saucelab account. So i was confused on how to edit my conf.js file and
Linux ubuntu how to stop cron status mails like “Cron /usr/bin/php /var/www/myproject”
Since couple of days i’m getting unwanted cron status emails from my server. Tried MAILTO=”” but still receiving mails. Please help me to get rid of this emails. Thanks in advance. Answer cron will email you anything that appears on stdout, so redirect stdout to /dev/null in your crontab ent…
Trigger CURL Request after boot using systemd
I’m trying to create a service that will trigger every time a raspberry pi boots. Currently the service runs a really simple script that sends a POST request to a web service endpoint I control. I can trigger said script manually and that part all works perfectly. I’m struggling with the next step…
linux rename multiple files using rename
I have a bunch of files (several thousand) called: output.temp.1.csv output.temp.2.csv output.temp.3.csv etc. I would like them all to be renamed but having the .temp removed output.1.csv output.2.csv output.3.csv etc. I think rename is what i need but not sure how to go about doing it I tried: rename ‘…
Executing an external program when forking is not advisable
I have this a big server software that can hog 4-8GB of memory. This makes fork-exec cumbersome, as the fork itself can take significant time, plus the default behavior seems to be that fork will fail unless there is enough memory for a copy of the entire resident memory. Since this is starting to show as the…
.htaccess RewriteRule keeping URL structure
My current rewrite rule: The result above works great so I can format the URL like domain.com/a/b/c I would like to add in a domain switch as well so the results I want is sub.domain.com/a/b/c when you access it using domain.com/a/b/c Currently here is what I have tried But the result of this is http://sub.do…