LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > sag47
User Name
Password

Notices


Uncategorized Entries with no category
Old

Creating special devices to solve problems

Posted 01-19-2012 at 03:53 PM by sag47
Updated 01-21-2012 at 11:41 PM by sag47
Tags jboss, mknod

With tax season coming up I have been asked to set up a certain centralized tax service for a company. I won't mention the company nor the well known tax program involved as this post isn't about flaming a product but just to show you how cool commands in Linux can be used to solve, what would originally seem like, complicated problems.

Here's the scenario. The software runs on JBoss (a java app server) and it has log output. During client testing with fake social security numbers...
Senior Member
Posted in Uncategorized
Views 633 Comments 0 sag47 is offline
Old

Ventrilo and RHEL/Fedora

Posted 01-03-2012 at 07:19 PM by sag47
Updated 01-03-2012 at 07:25 PM by sag47

Well I just set ventrilo up on my internal dev server. Just trying it out because I've heard other people talk about it and thought I would integrate it better with my system. I'm running Fedora 14 on my server but all of these scripts should work on Fedora 12/14 and RedHat EL 5/6. Untested on the new Fedora 16. Here's the service script.
Code:
#!/bin/bash
#Created by Sam Gleske
#For RHEL and Fedora-like operating systems

# chkconfig: - 0 0
# description:
...
Senior Member
Posted in Uncategorized
Views 1131 Comments 0 sag47 is offline
Old

Stress testing a new hard drive...

Posted 11-20-2011 at 10:38 PM by sag47
Updated 11-20-2011 at 10:40 PM by sag47
Tags hardware

You should always stress test a new harddrive when you buy it.

Some people say, "Just hook it up for a few months and keep unimportant data on it. If it breaks in that 1-3 month time then it will be good for 3 or 4 years."

While that metric is okay at best I prefer to take a more systematic approach to it. I want to fill the whole hard drive with random 1 and 0 over a constant and long period of time. I do that because you are stressing the hard drive out...
Senior Member
Posted in Uncategorized
Views 7940 Comments 0 sag47 is offline
Old

Limiting and blocking connections dynamically.

Posted 10-31-2011 at 03:46 PM by sag47
Updated 01-29-2014 at 11:14 AM by sag47

Today I feel like talking about limiting connections which get made to a server. There are a few ways to do it; some cooler than others. I'd like to feature some open source software while I'm at it.

Today I happened upon this thread which hilariously got closed for good reason. Once you wade through all the crap you'll see some pretty cool posts which explain how to limit incoming connections within a certain time period and other suggestions. I'll point out the most useful related...
Senior Member
Posted in Uncategorized
Views 904 Comments 0 sag47 is offline
Old

Server latency

Posted 10-27-2011 at 08:26 AM by sag47

I wanted a quick and dirty way to determine server latency on my Kubuntu machine. This just parses simple output from ping and provides only the time values.

Code:
for x in drexel.edu google.com;do echo -n "[$x]: "; ping -c 1 $x | head -n 2 | tail -n 1 | awk '{split($8,arr,"=")} END{print arr[2],$9}';done
Output
Code:
[drexel.edu]: 0.576 ms
[google.com]: 6.23 ms
You can put as many servers or IPs as you want in the for loop to get a comparison....
Senior Member
Posted in Uncategorized
Views 547 Comments 0 sag47 is offline

  



All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration