Re: remove timestamp/watermark from digital images

2010-07-02 Thread Ben Trussell
You might use ImageMagick's convert command to crop out the portion at the bottum with the timestamp. You'd loose a bit of the image (lower strip of the image) but if all of the images are the same size then you could batch (bash) it out.. http://www.imagemagick.org/script/convert.php An example

Re: Defcon 18

2010-07-23 Thread Ben Trussell
I'm indeed giving a trip to Vegas that weekend some serious thought =) BTW I bought Fyodor's Nmap book and love it. Ben On Sun, Jul 18, 2010 at 6:32 AM, Lisa Kachold wrote: > Opps, I did it.  I read the list of presentations, so now I HAVE to go to > Defcon 18: > > https://www.defcon.org/html/d

Re: MySQL grant use?

2010-07-23 Thread Ben Trussell
With the general query log enabled in advance its easy to see when a and by whom a query was run, just be sure to put that log in the logrotate cycle because it can get big, fast.. Ben On Fri, Jul 23, 2010 at 9:09 AM, Bryan O'Neal wrote: > Other then query the MySQL grant table I am not sure of

Re: MySQL grant use?

2010-07-23 Thread Ben Trussell
Come and live on the wild side Bryan! On Fri, Jul 23, 2010 at 1:11 PM, Bryan O'Neal wrote: > I would not have that enabled on a production server, but you are correct > that if you do you can see almost everything > > On Fri, Jul 23, 2010 at 12:03 PM, Ben Trussell wrote: >&

Re: What is the command to copy files from A to B when ssh connected?

2010-08-03 Thread Ben Trussell
If you need to preserve attributes such as uid/gid (owner, group) and timestamps etc, you can use rsync: rsync -av -e "ssh -l username" /some/dir/locationA remote.host.name:/dest/location preserving extended attributed and ACLs? try using rsync -avAX -e "ssh -l username" /some/dir/locatio

Re: East side Stammtisch at NEW LOCATION

2010-08-23 Thread Ben Trussell
Awesome! That's in my zipcode and strategically located (sort of) between work and home for me =) Ben On Mon, Aug 23, 2010 at 1:57 AM, Brian Cluff wrote: > The east-side Free Software Stammtisch will no longer be meeting at Boulders > on Broadway. > > Starting on September 21st the we will be m

Re: password

2010-12-10 Thread Ben Trussell
Instead of being a separate account, keyring is a password manager feature employed in Ubuntu's desktop (Gnome) and just needs to be reset (this will however reset any saved password info stored in the keyring). It sounds like from a previous thread you recently reset your account password and had

Re: Booting from a USB Drive

2010-12-13 Thread Ben Trussell
If its a Sandisk Cruzer there is a utility to remove that infernal "CD" mount. check here: http://www.google.com/search?q=sandisk+cruzer+u3+removal http://u3.sandisk.com/launchpadremoval.htm and possibly (possibly) helpful: http://u3-tool.sourceforge.net/ On Tue, Nov 30, 2010 at 7:25 AM, Step

A Random Bashing - primes

2011-01-08 Thread Ben Trussell
A Random Act of Bashing... Find all primes between and (expects/assumes integer values) and print to sdtout.. --- #!/bin/bash for (( a=$1; a<=$2; a++ )) do n=`factor $a|awk '{print $NF}'` if [ $a == $n ] then echo $a fi done --- EOF - B

Re: Logwatch Filtering for Apache

2011-02-11 Thread Ben Trussell
This is by far not the only solution, but its one that can be used to filter, combine, etc logs based on your needs. Switch to rsyslog if not already using it. The default configuration for Distros like RHEL, CentOS, Debian etc shouldn't be any different than sysklog etc when installed via a pac

Re: Logwatch Filtering for Apache

2011-02-11 Thread Ben Trussell
Note that email prematurely wrapped the examples. rules need to be all on one line in rsyslog.conf On Fri, Feb 11, 2011 at 5:08 PM, Ben Trussell wrote: > This is by far not the only solution, but its one that can be used to > filter, combine, etc logs based on your needs. > > Switch

Re: Logwatch Filtering for Apache

2011-02-11 Thread Ben Trussell
PPS: Last, but not least =) If you want to not see it in logwatch reports, just tell logwatch to ignore it.. http://www.google.com/search?q=logwatch+ignore.conf Ben On Fri, Feb 11, 2011 at 5:11 PM, Ben Trussell wrote: > Note that email prematurely wrapped the examples.  rules need to

Re: Bash question - redirect stderr to a variable

2011-03-15 Thread Ben Trussell
This might be helpful (and by that I mean mostly not helpful - you can easily send stderr to a file then input a file into a variable however). http://stackoverflow.com/questions/962255/redirecting-stderr-to-a-variable-in-a-bash-script Ben On Tue, Mar 15, 2011 at 1:08 AM, James Mcphee wrote: >

Re: Why these mostly empty hidden files?

2011-05-03 Thread Ben Trussell
Judicious use of the chmod and/or setfacl commands a potential cure ? On Tue, May 3, 2011 at 10:51 PM, Dan Lund wrote: > Never attribute to malice what can be easily attributed to laziness/hubris :) > > I'm sure it's just flash leaving it's wrappers laying around after camping. > > --Dan > > O

Re: IPTables on LAMP server in data center

2011-05-12 Thread Ben Trussell
Another method to manage users and groups from given ips/subnets (not just any user from a given IP or subnet) is to use PAM's access.conf (pam_access.so, found defined in the /etc/pam.d directory, with the config file usually in /etc/security/access.conf) to augment the firewall ruleset. It need

Re: Linux sys vars?

2011-05-12 Thread Ben Trussell
You can also define your own file descriptors, and use them in creative and useful ways within your scripts: http://tldp.org/LDP/abs/html/io-redirection.html On Thu, May 12, 2011 at 1:52 PM, Dale Farnsworth wrote: >> Hi, >> >> I keep seeing a reference to what looks like two pre-populated varia

Re: Hi PLUG - Moving Back in July

2011-06-07 Thread Ben Trussell
An early welcome back! Ben On Tue, Jun 7, 2011 at 8:00 AM, Austin Godber wrote: > Hello PLUG Folks, >    Seems I will be back in Phoenix in just a few weeks.  Just thought I'd > mention it to those I still know here. > > Austin > --- > PLUG-discuss

Re: [Plug-webdev] Hackfest Saturday @ MakerBench in Tempe 3PM - 6PM SUBJECT: "Linux Attack Vectors" or "Are we safe yet?"

2011-07-09 Thread Ben Trussell
[opts for the RTF version, after today's talk =)] On Sat, Jul 9, 2011 at 7:08 PM, Lisa Kachold wrote: > The presentation materials from today's Hackfest "Linux Attack Vectors" are > available from: > > https://www.it-clowns.com/LinuxAttackVectors.doc > https://www.it-clowns.com/LinuxAttackVector

Re: CentOS 6 almost ready!

2011-07-09 Thread Ben Trussell
You can also use SL6 (Scientific Linux) if you want to check it out before CentOS finishes downstreaming from them. Ben On Sat, Jul 9, 2011 at 6:02 PM, Dan Lund wrote: > Just in time for Red Hat 7 to come ;) > *jk* > > --Dan Lund > > On Sat, Jul 9, 2011 at 4:04 PM, Dennis Kibbe wrote: > > > "Ho

Re: Is it possible to extract the root password from the file system?

2011-07-17 Thread Ben Trussell
[possible_device_bricking_advice] You might try just extracting the tarball, editing the shadow file removing the root password altogether (::), then, re-tar the extracted archived then re-flashing with the updated tarball. Then hit 'enter' for the the root password, and then set it to whatever y

Re: PHP preg_match question

2011-07-20 Thread Ben Trussell
Possibly: $vaidateStr = "this is a test 1"; // not valid, contains spaces.. $compared = preg_replace("/[^a-z0-9\+\-]/", "", $vaidateStr); $is_validated = $vaidateStr == $compared; if ($is_validated) { echo "valid\n"; } else { echo "not valid\n"; } // /

Re: PowerPC Recommendations

2011-07-20 Thread Ben Trussell
Its a *nix of another variety, but OpenBSD has a MacPPC port Is Darrin C. on the list? If so do you have the box set for 4.9 for sale? Getting started http://openbsd.org/ Getting ISO http://openbsd.org/ftp.html A more detailed bit of information specific to MacPPC port: http://mirror.servihoo

Re: PHP preg_match question

2011-07-20 Thread Ben Trussell
Ah yes, I also forgot the uppercase chars if ($vaidateStr == preg_replace("/[^a-zA-Z0-9\-]/", "", $vaidateStr)) { /true, or valid... } BTW also as Eric says, the carrot (^) inside the square brackets means "anything but" (negation), thus how this works.. Ben On Wed, Jul 20, 2011