SVN UP, Recursive CHMOD and CHOWN for user passed via STDIN

If you want to be able to run a script to quickly perform a svn up, chmod and chown of your site files, the following command will accept the username from stdin (standard input [command parameter]).

#!/bin/bash
svn up /home/$1/public_html/
find /home/$1/public_html/ -type f -exec chmod 644 {} ; && find /home/$1/public_html/ -type d -exec chmod 755 {} ;
chown -Rv $1:$1 /home/$1/public_html/*
echo “The public_html/ direcotry for $1 has been updated.”

If you want a more portable version that will only effect the current directory recursively, use the following.

#!/bin/bash
svn up ./
find ./ -type f -exec chmod 644 {} ; && find ./ -type d -exec chmod 755 {} ;
chown -Rv $1:$1 ./*
echo “The current direcotry for $1 has been updated.”

CHMOD the script file to 700 to allow execution. Then call the script like so…

[user@host ~]# /path/to/script/scriptname username

Enjoy! 🙂

The #1 Barrier to Success

open-minded

There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance—that principle is contempt prior to investigation. –Herbert Spencer

Marinate on that for a little bit. 😉

Listen to Papa

Sometimes, inspiration can come from the most unexpected places. This is particularly true of music. At least, that is the case for me. I find listening to a wide variety of music helps me to stay open minded. This helps keep the creative juices flowing, which I then apply to family, work, and play.

Often times, when I’m listening to music, I don’t really hear so much of what is being said. This is rather intentional as I tend to listen to quite a bit of music dominated by rather explicit lyrics. I choose to ignore the expletives and focus on the music itself. However, there are times that I put on my headphones, lean back in my chair, and listen intently on what the artist is saying and try to relate the lyrics to my life. Sure, the artist may have their own meaning for their words, but I have my own interpretation as well.

One group I’ve been listening to quite a bit lately is Papa Roach. I like their aggressive Hip-Hop/Hard Rock blend. Their sound could easily be described as powerful. Thick drums, rapid attack guitar riffs, and aggressive lyrics dominate their style. I liken their lyrical content to teenage angst all grown up.

Putting aside the generalizations of their sound and lyrics, there is one song of theirs that has been stuck in my head a lot. For some reason, I just can’t seem to shake it for long. Tonight, it came to me as I sat down to review the day’s RSS Feeds… This song could be an anthem for those who take the bold step of starting their own online venture. The song is “Not Listening” and here are the lyrics.

Papa Roach – Not Listening

I’m not listening, not anymore
The more I learn, the more I ignore
I’m not listening, not anymore
The more I hear, the more I ignore
No I’m not listening, not anymore, No

Cause You gotta be bigger, be faster, be stronger
if your gonna survive any longer
in this lifetime, it better be the right time
the first time might be your last time
am I a failure if I got nothing to lose
No, I’m not a failure, I got something to prove

Chorus:
I’m not listening, not anymore
The more I learn, the more I ignore
I’m not listening, not anymore
The more I hear, the more I ignore, the more I ignore

Cause I’ve lost my innocence
and I’m a stranger, A life changer
I’m a man that’s not afraid of danger
I walk my own path, and blaze my own trail
because I’m not afraid to derail
I won’t get in line or be a middle man
so f*** you I’ll make my own plan
and I got respect and I dont neglect
the people that i really care to protect
am I a failure if I got nothing to lose
No, I’m not a failure, I got something to prove

[Chorus]

I told you before, won’t listen anymore
I told you before, lets settle the score
I told you before, won’t listen anymore
I told you before, lets settle the score

If not me then who?
If not now then when? X2

[Chorus]

I told you before, wont listen anymore
I told you before, lets settle the score
I told you before, wont listen anymore
I told you before, lets settle the score

Set it off right now
Blow it up, set it off
F*** it up, set it off
Blow it up, Blow it up right now

If reading the lyrics alone are not enough to whet your appetite, here is the studio version of the song.

Taking this song on surface value, it might be a bit difficult for some to get the correlation between this song and starting an online venture. Rightly so. There’s nothing in the lyrics that even remotely implies business or the Internet. However, if you take a moment to step outside the tiny box of taking things literally, you can easily see how this can be related. Let’s break the song down an analyze it a bit closer.

Turn a Deaf Ear to the Naysayers

I’m not listening, not anymore
The more I learn, the more I ignore
I’m not listening, not anymore
The more I hear, the more I ignore
No I’m not listening, not anymore, No

When you announced to your friends and/or family that you were going to start your own online venture/business/blog, how many of them had a pessimistic view? The fact is, a lot of people are pessimistic about online opportunities. Some of this is due to ignorance, and some of this is due to the naysayer’s own failures. Whatever the reason, you cannot allow someone else’s negativity poison your goals. If you believe that you can be successful online, then you can.

Hard Lessons Must Be Learned

Cause You gotta be bigger, be faster, be stronger
if your gonna survive any longer
in this lifetime, it better be the right time
the first time might be your last time
am I a failure if I got nothing to lose
No, I’m not a failure, I got something to prove

If you think for one minute that you’re going to be a success overnight, you are either the luckiest S.O.B. on the face of the earth, or you’ve got a very rude awakening coming, which is most likely. The fact is, starting any venture is work and lots of it. Along with that work comes hard lessons to learn. What the above verse illustrates to me is some of these lessons. Those lessons include:

  • The market is extremely competitive (most markets anyways). Know your competition and be prepared to take them on, toe to toe. You will have to prove how you are the better alternative.
  • There is no better time than now. If you don’t step up and do it now, the opportunity will pass.
  • If you are not truly prepared to take on this challenge, your first attempt could be your last attempt. Make sure you are ready to play the game.
  • Do not waste your time with self-doubt. You are not a failure unless you accept failure.
  • Be prepared to prove yourself. Everyone else is expecting you to prove yourself.

It’s An Uphill Battle. Your Stamina Will Be Tested.

Cause I’ve lost my innocence
and I’m a stranger, A life changer
I’m a man thats not afraid of danger
I walk my own path, and blaze my own trail
because I’m not afraid to derail
I won’t get in line or be a middle man
so f*** you I’ll make my own plan
and I got respect and I dont neglect
the people that i really care to protect
am I a failure if I got nothing to lose
No, I’m not a failure, I got something to prove

  • There is a certain degree of naiveté when you first start out. People may act nice and like they are willing to help, but don’t be foolish. Just like in the physical world, there are people out there that will take every dime you own and wont loose a second of sleep over it.
  • Until you’ve built a name for yourself, you will be a stranger in every place you go online. You have to make your own name. Often times, this requires a significant life change because of the time you have to invest in building your brand/image.
  • There are dangers and calculated risks around every corner. You have to be prepared to face the dangers and take the calculated risks as they come.
  • How much more clear can you get than, “I walk my own path, and blaze my own trail”?
  • You better not be afraid to fail or occasionally get off track because that is a normal part of the process. How you handle these set backs will help determine your success.
  • If you spend your time following the masses, you are just another one of the heard waiting for the slaughter. You have to find your own niche, your own identity, your own style. Being the middleman isn’t much better. It’s like being the Shepard’s dog. You’re not necessarily one of the heard, but you’re also not the one reaping the bulk of the benefits. Instead, the Sheppard throws you scraps for doing the bulk of the work.
  • How many “fool proof plans”, have you read? How many times have you seen a book or site taught *The Plan* for success. Don’t waste your money! Instead, do your homework, find reputable information and devise your own success plan based on your goals. What may be successful for Joe Guru might not net you a single penny. Don’t fall for snake oil.
  • Hard work, dedication, and belief in yourself will show and will earn you respect.
  • Don’t put your family on the back burner while you chase success. Your family is your greatest asset and greatest source of strength. Protect that asset by not neglecting them.
  • Again, because we all need a reminder, you are only a failure if you accept failure.
  • You never stop proving yourself.

I’m Good Enough, I’m Smart Enough, and Gosh Darn It, People Like Me!

If not me then who?
If not now then when?
If not now then when?

  • If YOU don’t go out and make your own success, someone else will take your place. If YOU think YOU can do it, then who has the right to say you cannot?
  • The longer you wait, the less likely you will succeed.
  • Procrastination precedes failure. Waiting until tomorrow is waiting until it is too late.

Can I Get a “G”? Can I Get a “O”? What’s That Spell? GO!

Set it off right now
Blow it up, set it off
F*** it up, set it off
Blow it up, Blow it up right now

You’re still reading this post? Get out there, right now, and forge your path to success!

You’ve read my two cents. Now have your say!
Do you find inspiration in music?
Do you take music literally, or do you filter it through your own perspective?
Do you believe that success is 10% inspiration and 90% perspiration?
After reading this post, do you feel jacked up and ready to take on the world? If not, read it again with the song playing! 🙂

Darkness Cannot Drive Out Darkness

bethelight

Maybe life has jaded me. Maybe it made my skin too thick. Though, it didn’t make my heart hard. I still love with all that is in me, and I’ll jump to help anyone I can. But I just don’t see the sense in raising hell over something I can’t change. All I can change is me and what I do.

Perhaps that’s the problem… Perhaps too many look outside themselves and take it upon themselves to try to change others. I can’t change you. I can only change me. If I want to see more love and tolerance in the world it needs to start with me. I need to be the change I want to see in the world.

Maybe I’m weird. Maybe I don’t get it. I don’t know. But when my Lord and Savior said, “Love your enemy” I took that to heart. I can’t change people’s opinions by arguing with them. But I can model sane, loving, kind behavior in my own actions.

Maybe the old saying, “You can get a lot more bees with honey than with vinegar” has been forgotten.

All I know is the events of the last several months have exposed a fundamental defect in our modern society. In our society, we seem to have an entitlement complex where we believe other people have to bend to our wills. I’m sorry, but that’s just not the case. As long as you don’t break the laws, you can think what you want to think and that’s your right.

Do I think we should have intelligent discussion about certain topics? Absolutely. But I don’t have to believe what you believe, and you don’t have to believe what I believe. As long as you don’t try to infringe upon my rights, I won’t give you any problems. Live and let live!

And if you think, “Easy for you to say… Your a white, heterosexual male.” You obviously don’t know me and my life. I have homosexual family members and my child is biracial. The issues facing our country today are issues I’m facing every day. But inciting riots and attacking others with differing viewpoints is NOT the solution.

Please, let us never forget the message of the late Dr. Martin Luther King Jr.

Returning hate for hate multiplies hate, adding deeper darkness to a night already devoid of stars. Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that. Hate multiplies hate, violence multiplies violence, and toughness multiplies toughness in a descending spiral of destruction.

Love one another. Be kind and gentle with one another. Seek to hear and understand one another. Then, and only then, can we hope to bring our society together.

To Love Is Never A Mistake

To Love Is Never A Mistake

In my short 39 years of life here on terra firma I can honestly say I’ve made my fair share of mistakes.

  • I dropped out of high school at 17yrs old.
  • I dropped out of college just before earning a double bachelors.
  • I did entirely too much drinking for far too many years.
  • I got in plenty of trouble, some of which landed me in jail a few times.
  • I screwed up business opportunities that could have made me wealthy.
  • I hurt those closest to me, even when they proved their loyalty beyond doubt.

On paper, I’m a complete screw up. But, I took those poor choices I made in my youth and I turned them around and let them shape me into being a better man.

Of all my poor choices, all my mistakes, one choice I’ve made I will never regret is loving. I refuse to regret loving anyone I’ve ever loved. Whether the relationship was family, friendship or significant other, I will not regret loving them.

I have loved family members who abused me, stole from me, and tried to kill me (literally). I have loved friends that stole my girlfriend, talked behind my back, and picked a fight with me. I have loved partners that have cheated on me, mentally abused me, and used me for what I could offer. But I don’t regret loving them. My love is a reflection of what is in my heart, not their behavior. Everyone deserves love.

I learned this because, even though I made so many mistakes and hurt so many people, there were people who continued to love me, no matter what. There was my family, of course, but there were friends, and even my ex-wife. They loved me through it all. They loved me until I could love myself. And when I learned of God’s great love an mercy, I fully understood that love is never a mistake.

Love is something that cannot be earned. Love is a choice. Love is a gift. My Lord and Savior, Jesus Christ, taught me to love the unlovable. To love without expectation of return. To love even those who do you harm. To love, even if it costs you your life.

So, today, I choose to love. I choose to love even if someone harms me. Some people may no longer have a place in my life, but they will forever have a place in my heart. I will love them from afar. I will love them through my prayers.

No matter what happens; no matter what someone does to you; no matter the pain you have suffered; choose love.

love_cropped