Search Results

Search: Posts Made By: STOIE
Forum: Cybersecurity 09-16-2016
5,822
Posted By STOIE
What are these events (from Proxy access logs)?
Hi all,

I'm trying to identify what this is in my proxy access logs:

POST http://123.123.123.123/open/1

Followed by thousands of:

POST http://123.123.123.123/IVmYwvJKhJFesFjK/1001
POST...
Forum: Red Hat 08-29-2012
4,710
Posted By STOIE
After it boots, I would do this... (as root) ...
After it boots, I would do this... (as root)

fdisk -l

This will print you your partitions like this:

Device Boot Start End Blocks Id System
/dev/sda1 * 2048...
Forum: Web Development 11-28-2011
2,248
Posted By STOIE
Resource based http load balancing
Hi all,

I am looking for a solution to the following issue.
Basically, we are going to be implementing a series of front end splunk search heads (basically IO intensive web servers).
And wish to...
Forum: Red Hat 01-31-2011
33,896
Posted By STOIE
Option is this: Create a new partition same...
Option is this:

Create a new partition same size as the old one.
Copy contents to it.
umount the old one, mount the new one... (a few seconds downtime)... will have to bounce services.
Expand...
36,790
Posted By STOIE
Very true, but, that just means either the proper...
Very true, but, that just means either the proper attention to monitor backups correctly is not in place. Or the proper backup strategy to begin with is not in place.

One on-site, one off-site and...
36,790
Posted By STOIE
Honestly, every time I read something like this,...
Honestly, every time I read something like this, it makes me think.. remember to backup!
3,057
Posted By STOIE
Only way to be safe is: find / -user...
Only way to be safe is:

find / -user <username>

This will take a long time as it scans the whole system, but, will return on anything that's owned by the user.

Remember, it is near...
Forum: Web Development 01-03-2011
1,317
Posted By STOIE
Those are the lines I was originally thinking...
Those are the lines I was originally thinking along... but,

That will simply display the distinct city values, and only not show ones where "bob" is the only name associated.

I have now...
Forum: Web Development 01-03-2011
1,317
Posted By STOIE
Solved: SELECT DISTINCT(x.city) FROM places...
Solved:

SELECT DISTINCT(x.city) FROM places x WHERE NOT EXISTS (SELECT 1 FROM places y WHERE y.name = 'bob' AND x.city = y.city);
Forum: Web Development 01-03-2011
1,317
Posted By STOIE
SQL - Distinct plus more
Hi all,

I have an interesting and I am sure simple question for yau'll.

Basically this is what I am after:

The table:
CREATE TABLE places (id INT, city VARCHAR(24), name VARCHAR(24));
...
Forum: Web Development 10-22-2010
1,490
Posted By STOIE
How to: IFNULL(SELECT ...,0)
Hi all,

Wondering is this possible:

SELECT id AS cid, name, phone, url, streettype, IFNULL((SELECT ROUND(AVG(stars)*2, 1) / 2 FROM " . $dbconf{'prefix'} . "reviews WHERE location=cid) AS...
3,424
Posted By STOIE
Yeah RPM's are always fun, remember to create and...
Yeah RPM's are always fun, remember to create and uninstall function too :P
Forum: Web Development 09-16-2010
2,582
Posted By STOIE
Hmmm. Well that definitely gets me thinking,...
Hmmm.

Well that definitely gets me thinking, from everything I have been taught is do as much in the query as possible, "your database will always be faster than your cgi".

So, this is pretty...
Forum: Web Development 09-16-2010
2,582
Posted By STOIE
How about this: select id, pid, name (SELECT...
How about this:

select id, pid, name (SELECT max(saved) WHERE pid = 2.pid) AS max_date, (SELECT min(saved) WHERE pid = 2.pid) as min_date
from property property1
where saved = (select...
Forum: Web Development 09-16-2010
2,582
Posted By STOIE
Complex MySQL Query(s)
Hi all,

I have a bit of an issue, I am working on a bit of a CMDB for a friend, it's to do with real estate.

Anyway, this is my situation.

I have a table which contains all the properties...
1,602
Posted By STOIE
if [ ! -f "/my/file" ] ; then exit 0; ...
if [ ! -f "/my/file" ] ; then
exit 0;
fi
7,481
Posted By STOIE
Hehe you original statement is fine except your...
Hehe you original statement is fine except your missing a very simple switch...

find /WMID/data/temp/TxTest/Dev/txStore -maxdepth 1 -type d -mtime +1 -exec rm -rf {} \;
2,886
Posted By STOIE
my_perl_script.pl #!/usr/bin/perl ...
my_perl_script.pl


#!/usr/bin/perl

while (<>) {
chomp $_;
if ($_ =~ /.*xref\ (href\=\"\S+\")\ \/\>.*/) {
print $1 . "\n";
}
}


Then run it something like this:
cat /my/xml_file.xml...
1,863
Posted By STOIE
bzip2 /ifx01/etldata/lmt/*.xml; mv...
bzip2 /ifx01/etldata/lmt/*.xml; mv /ifx01/etldata/lmt/*.bz2 /ifx01/etldata/archive/
Forum: Infrastructure Monitoring 09-08-2010
3,686
Posted By STOIE
Yeah 90% of my job is SNMP on Nix... it is a very...
Yeah 90% of my job is SNMP on Nix... it is a very dull and full on thing to explain to people when you get right into it.

Cacti forums are a great place to find out information, but, if you just...
1,735
Posted By STOIE
Yeah nice work there. Good quick solution.
Yeah nice work there.
Good quick solution.
Forum: What is on Your Mind? 09-06-2010
20,559
Posted By STOIE
Yeah I understand that, but wrote wrote something...
Yeah I understand that, but wrote wrote something before I thought about it :(

Anyway, furthers the point I guess, even BASH has the functionality to do regex.
Forum: What is on Your Mind? 09-06-2010
20,559
Posted By STOIE
Agreed, and Frank, you too. find /my/dir...
Agreed, and Frank, you too.

find /my/dir -maxdepth 1 -type f -not -name *bz2 -exec bzip2 {} \; FTW baby!

None of this ls stuff, BASH is where the action is at.
And perl is where the trickiness...
Forum: What is on Your Mind? 08-30-2010
20,559
Posted By STOIE
Yes, this is true... What "level" do you...
Yes, this is true...

What "level" do you want to dig into...?
If you wish to create CGI and things that are generally speaking not "SYSTEM" level, then maybe you will only need Perl and very...
13,392
Posted By STOIE
Agree. I would still recommend to use rsync...
Agree.

I would still recommend to use rsync in the archive mode. This preserves pretty much EVERYTHING and does a damn nice job at doing it.
Showing results 1 to 25 of 45

 
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy