Deploy a subversion repository to a server without subversion

The problem

You have a website, stored in a subversion repository. The server you’d like to deploy to has shell access (ssh) but subversion is not installed, and you can’t install it. You want to be able to deploy changes to your website quickly and easily.

The solution

  1. Download this ruby script and place it in the parent directory of your working copy of the site.
  2. Edit the script and change the “src” parameter to the name of the directory containing your website.
  3. Determine the SVN revisions you’d like to deploy. This might be something like “128:132″.
  4. Run the script, like so: ruby deploy.rb 128:132
    Insert your own revisions as the command line parameter.
  5. The script will generate a file deploy-128-132.tgz. Copy this to your server.
  6. From within the production directory, untar the deploy-128-132.tgz file. This will overwrite the files that are to be modified in this update. It will also untar a delete script: delete-128-132.sh.
  7. Run the delete script: . delete-128-132.sh
  8. Remove the delete script: rm delete-128-132.sh
  9. Party!

Has this been useful? Drop me a line in the comments!

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

Twitter Wasssssup?

Here’s a greasemonkey script to give Twitter a bit more attitude:

Twitter Wasssssup?

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

Patterns

Your life follows patterns.

If you’re employed, a large part of this comes from your job.
If you’re self-employed, you have to make up your own patterns.
If you’re an entrepreneur, your occupation is to make up patterns.

Patterns for yourself. Patterns for your employees. Patterns for the people your business serves.

Patterns that improve their lives. Patterns that improve your life.

This is how you change the world.

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

How important are your desires?

[Note: There's still 26 hours left if you'd like to prepay for some freelance web coding and pick up the discount. If this is for you, I'd love for you to make it.]

I’m trying to piece together a few puzzle pieces. I’m in the process of working this out, so let’s go for a wander and see where it leads us.

Piece one: A trial of fear polarity at the start of the year

I spent 30 days practicing the use of fear polarity. For quite a while I feared using this polarity since there’s a lot of baggage associated with it; it seems kind of ‘evil’. But eventually I decided that it would be useful to try as an experiment. It wasn’t going to be a permanent change, and I’d learn something in the process.

Learn I did. I essentially adopted the attitude that my desire was the #1 most important thing, and that I would conquer anything that got in my way. This had the immediate effect of clearing a layer of mental fog. Before, I would have an intention and then worry about what other people would think of it. My power would disperse before I could get started. Now, my intention was all that mattered, and any objection was an obstacle to overcome, not something that could diminish my determination. I felt like I had laser-focus on what I wanted and my intellect sprang into action in a way it hadn’t for a long time. At the same time, I felt much greater inner peace – I’d overcome a large amount of inner conflict in one fell swoop.

The surprising part was that I didn’t turn overtly evil. I still knew that harming people would make me feel bad and that it would create opposition to my intention. Therefore, it was a simply logical not to do so.

I left the trial enjoying the results of a number of great intentions, my motorbike amongst them.

Piece two: I am the only intender

After the fear polarity trial, my intensity dropped off. I still wasn’t comfortable with fear polarity long-term, but I hadn’t figured out how to use love polarity, so I sat in the middle for awhile. Then I discovered an interesting belief which filled in some gaps in the puzzle.

In Steve’s “True Nature of Reality” podcast, he describes subjective reality. Basically, it’s a model of reality centered around you, but “you” the conscious container of reality, not “you” the person. (Yes, it can be quite confusing. Check out the podcast for clarification). In this model of reality, there’s only one consciousness with intentions, and that’s yours.

That’s significant, because I’ve noticed a pattern. I observe intentions in other people that conflict with my desires, and then hold those intentions myself by thinking about them. I might think of an intention, and then think “Oh, but so-and-so will react badly if I do that” and thereby cancel my intention, even though it’s something I truly wanted.

By adopting the view that I am the only intender, I take responsibility for all of my intentions. Now, if I notice an intention that’s contrary to my desires, no matter where I perceive it to be coming from, it’s my responsibility to shift my intention back to my desire.

I tested this mindset today, and it worked. I was able to have a far more productive and enjoyable day than I would otherwise have had.

This mindset is more compatible with love polarity than the “only my desires matter” mindset of fear polarity. But it still results in giving my desires a place of high importance. And that makes me uneasy. Doesn’t that make me selfish? Isn’t selfishness morally wrong?

In which we go to the heart of the matter

The problem: this mindset works. Very well. There must be some validity to it, some deep truth behind it. But at the same time it places huge importance on my desires. Which seems selfish, and selfishness is wrong, right?

I have a bunch of thoughts on this

The first is, desire is the path to happiness. When you’re moving towards what you want, you’re happy. When everything’s going wrong and you’re moving away from what you want, you’re unhappy.

I should mention that desire, as I use it here, is distinct from impulsive craving. An easy way to distinguish between the two is to check how you would view your desire from the perspective of the future, after the thing that you desired has passed. For instance, I did a trial of polyphasic sleep several years ago. In the beginning, I anticipated it excitedly. During the trial, I enjoyed the challenge of it. Looking back on it, I look back with fondness. Completing the trial has created lasting happiness for me, and I’m glad that it was a part of my life (even if it wasn’t successful by an objective standard).

By contrast, a craving is essentially a desire with shallow, impulsive and conflicted motives. You might anticipate it and enjoy it, but afterwards you experience guilt and regret.

We can distinguish between desire and craving. Following desire leads to happiness. So why do I think I have to deny it? Because I don’t trust it. Logically, I don’t think I’ll have a desire to harm another person, but the possibility’s still there. If I allowed myself absolute freedom to pursue my desires, what would happen?

Another thought

Good deeds performed because we feel we should do them are not as beneficial as good deeds performed out of our own free will. In other words, giving our desires freedom is the only way to actually do good, because truly good acts can only arise out of our heartfelt desire to do good.

Which all leads to…

The thing that’s keeping me from following my desire: fear of my own darkness. Fear of what I will actually find if I take a deep, long look into my desires. Fear of what will happen if I unleash this potential, because it’s sitting right there.

I’m noticing that fear unravelling already. I’m becoming more convinced of the innate goodness in everyone. That maybe what we call evil comes from a source other than what I suspected.

And the theme that I’m being drawn to is to trust in my own innate goodness. To give myself permission to take a look and see what I really want. And to go after it without restraint.

This is getting interesting. Join me?

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

Getting better

[Note: You know what goes here by now: 4 days left to grab an awesome deal on freelance web coding. Just drop me a line if you've got something you'd like to squeeze in!]

I was having real trouble writing a blog post tonight. I had some ideas but the post itself didn’t want to be written. Eventually I had the good sense to get up and flail my arms and legs around wildly. But it wasn’t all wild flailing, at least at first, and that’s what I want to talk about in this post.

The non-wild-flailing bit

When I started my Shiva Nata session tonight, I was being very careful. I was just learning a new leg pattern and I was trying to get it right. But! (I recalled) Dance of Shiva is about getting it wrong! So I doubled my speed and went full tilt at it.

This is where things get interesting

It was pretty messy. But it was a lot more fun. And I thought,

“Sometimes you just have to dive in and do things at full steam without checking if you’re doing it right. No second guessing yourself.”

I should know this. I’ve been doing Aikido for five years now, and the magic always happens not when you’re analysing your technique, but when you’re going at it intensely and just watching, silently, what you do and what happens when you do it.

This might tell us something about how we learn best

Not by critically watching ourselves, but by jumping in there and doing it. If you blog, just write something. You can analyse it and decide what to tweak later. If you’re starting a business, just create your website and start talking to people. Dive in without a care for how much you’ll mess up. You will. You know you will. But that’s not the point.

The point is that when you act like this, you act naturally. When you stuff it up, it’s because you’ve found something to improve in your natural behaviour, not because you should have spent an extra hour second-guessing your course of action. But when you’ve done this for a while, where will that lead?

You’ll do your thing naturally, at full steam, and you won’t miss a beat. You’ll be fully engaged with it, giving it your all, and creating amazing things in the process.

Won’t that be something?

Feel like joining my gang of super awesome people? Subscribe to my feed. You know you want to. ;)

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

Determination + compassion = fearshifting

[Note: There's only one week left on the June 25% discount for freelance web coding. If you need a hand with something, jump in quick and I'll do my best to fit you in before the end of the month.]

Committing to posting three times a week on set days has been an interesting experience for me. Previously I’d post only occasionally, when the urge to write coincided with some free time. Now I’m regularly writing three posts a week – almost always posted within a few hours of midnight on the night the post is due. So what’s happening with my motivation? Let’s start with a quick diversion into some thoughts on fear.

Ways of dealing with fear

I was thinking about methods for dealing with fear earlier, and I’ve been trying to synthesise two ideas. The first is the “feel the fear and do it anyway” school of thought. Pushing through the fear to overcome it.

The second is the method that Havi teaches – your fear is there to protect you and it will tell you why if you ask it. You don’t want to bulldoze through your fear because you created it and it’s a part of you. Instead, listen to it and dissolve it with compassion.

What I’ve noticed is that I’m only able to apply Havi’s method – talking to fear – when I’m determined to do the thing that I fear. It’s like once the intent is there, the fear shows up clearly, and I’m able to meet it and work with it compassionately.

If I’m not determined to do the thing that I fear, the fear lies in hiding, and I’m not able to do anything about it. It’s only when I’m determined to do the thing that I’m able to make progress.

And back to blog posting

When I have the determination to write a post, and to write it right Now, everything falls into place. When it’s late at night and I’ve promised a post by midnight, the right mindset comes forward and the words flow. Until that determination is present, I’m fuzzy and unproductive.

Conclusion: Determination is the key that makes things happen. Compassion is how you go about it so you don’t beat yourself up along the way.

Jump on my feed. It’s like a trampoline! Then you’ll have the rare privilege of listening to me say even more crazy stuff next time I post whilst half asleep. ;)

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

Installing new beliefs

Have you ever heard about a belief or a new way of looking at things, and thought it would be great if you could adopt that perspective? And then, despite your enthusiasm, watched as the changes failed to materialise?

Say, for example, that you read about the principle of oneness, and you would love to relate to people from a position of togetherness rather than separation and conflict. But despite being convinced of the value of the principle, your shift in your actual behaviour and experience is very slow, if noticeable at all.

I’d like to introduce an analogy from the software development world to illustrate this situation. In software development, there are many high-level principles of good software design and construction. An example is the “Don’t Repeat Yourself” (or DRY) principle. It suggests, quite logically, that if you avoid duplicating information in your program, and you want to change something, you’ll only have to change it in one place. If you don’t follow this principle and you want to make a change, you’ll have to make the change in many places. There will be a high chance you’ll miss one of those places and by doing so, introduce a defect into your program. That’s a quick and simple summary of the DRY principle.

Now imagine that you’re a software developer. You’ve been writing code for a spiffy project and you’ve just learnt about this principle. You see it’s immediate beauty and elegance, and you are impressed. But your code is still the same as it was before you learnt about this principle (ie. messy). If you don’t get into your code and refactor it, little will change. You might write new code of a higher quality, but the improvement will be swamped under the mass of old, messy code.

What does this mean for belief installation? To install a new belief, it’s not enough to familiarise yourself with the belief itself. You have to engage with your messy code, your habits and everyday behaviours, your patterns of thinking and acting. Start by examining what you’re actually thinking and doing. Does it mesh with the belief or perspective you’re trying to install? If not, how does it disagree? How could you shift and change your patterns of thought and action to align with the new belief?

At this level, things aren’t as neat and tidy (at least, not when you begin). But here, at the coalface, is where the change happens.

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

Are you awake or are you dreaming?

Are you awake or are you dreaming? When I seriously consider that I might be in a dream right now, I become intently aware of my experience. I wake up a bit. If this is a dream right now, that’s really interesting! Particularly to be aware that I’m dreaming while I’m dreaming. I don’t experience many lucid dreams at all. I wonder what strange things I could try out that I couldn’t do normally?

If this isn’t a dream, what is it? What is it really? How does it work? I think I know what’s going on, but maybe I’m blundering through it half asleep?

The point of this question is not to determine whether you are in the middle of a lucid dream or not (though it’s awesome if it can do that for you). The deeper purpose is to look more closely at reality and question it. Not in a philosophical way, but in a concrete, right-here-and-now kind of way. What is this that I’m experiencing right now and how does it all work?

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

Working with (not against) life

[Note: Need some help with some web coding work? I'm running a 25% discount on freelance web coding for June.]

I’ve been thinking a lot recently about Steve’s post on problem solving. His basic premise is that life’s problems aren’t there to make things difficult for you, they’re there to help you grow. I have a habit of trying to avoid facing my problems, or of trying to get them out of the way so that I have a nice, clean, problem-free slate.

There stands the dilemma: there will always be problems, and if I hold a mindset that doesn’t engage with them and work with them as a matter of course, I’ll be doomed to continually experience the same problems, and feel perpetually frustrated about my situation.

I’ve thought about it, and I think there are two main attitudes we can take towards life’s problems: resentment and gratitude. Let’s explore each of these mindsets.

Resentment

When we resent problems, we wish they weren’t there in the first place. We might, at best, grudgingly accept that they’re here, and gather the energy to get off our ass and fix them so that we can go back to being comfortable again.

This attitude is not very effective though. We build up some energy to get things fixed, then sink back down into comfort and lethargy. There’s no chance to build momentum. We’re fighting against life’s problems instead of working with them. They’ll always be a thorn in our side, and we won’t make much progress if we hold this mindset.

Gratitude

The alternative mindset is gratitude. Instead of seeing problems as, well, problems, we look at the positive side. By solving problems, we start to engage with life. We’re more involved and more alive. By solving problems, we stop avoiding and start walking the path to what we really, truly want, and we become stronger along the way.

This mindset requires a huge step up in energy. Instead of occasionally getting the energy together to fix things up, we continually operate at this level.

Being willing to face and work through our problems allows us to do truly amazing things. Just about any desirable goal is going to present obstacles along the path, and we simply can’t reach our goals unless we can work through these.

With this mindset, we are working with life, not against it. We see that life gives us these challenges to broaden our horizons, to help us become stronger, and so that we can live the bold and adventurous life that we truly want to live. Life is not about getting rid of problems and vegging out. It’s about taking initiative, setting our own course, following it and really Living Fully along the way.

This shift, from resentment to gratitude, is a quantum leap. Before it, the world is against us. After it, we understand how the world works and why. We accept the challenge and summon the energy to begin engaging with our problems instead of running and hiding from them.

What do we do about all this?

Well, that’s quite a challenging question (a healthy challenge ;) ). I’m going to throw some ideas out there, and we’ll see how they turn out.

I reckon a viewpoint shift comes first. First you need to see the benefits of solving a problem. But that’s not enough, because at that stage you’re still trying to get rid of the problem. You need to be grateful that you ever got the problem in the first place. I have, posted on the wall above my desk, this affirmation:

“I feel only gratitude for the challenges that life presents to me.”

I’m hoping that by continually reminding myself of this mindset, I’ll be able to notice when I’m resenting problems, and look at the situation from a different angle.

What are your thoughts on this? Do you have some awesome tricks for getting out of resentment? I’d love to hear from you in the comments.

Does this post strike a chord with you? Subscribe to my feed and we can hang out some more.

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter

Intention-first blogging

I’ve been thinking about how I go about blogging. Recently, I’ve used the following method: Pick something that I don’t quite understand, but that I’d like to explore. Journal about it, then turn that journal article into a blog post.

That might be fine for a personal log book, but I don’t think it allows me to communicate as well as I could. I’m now leaning towards a different approach: blogging to share something interesting that I already have worked out. This way, I’d be doing the journaling first, and separately. Then, I would write the blog post with the intention of sharing what I had learnt in a more easily digestible manner.

Separating the research and the sharing would give me the space to begin with an intention that’s entirely about the effect on you, my reader. What new point of view would I like to show you? In what way could I inspire you? I’d be out of my own self-centred headspace and really interacting with others.

I think this could work out to be pretty cool.

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter