So you’re at that point in your life where you need to have a git repo for your project but you can’t use github because it needs to be private and you don’t want to pay. Well, you can actually set up your own repo fairly easily using Dropbox.
You’ll need a terminal prompt with git installed to do this. Linux users can simply install git and they’re good to go, Windows users should look at http://code.google.com/p/msysgit/.
First, find out where your dropbox files are located.
Cd to your dropbox folder and make a directory for your repo, then cd to it.
Run ‘git –bare init’ to create the repository.
Cd to a folder in your projects directory, and run these commands:
‘git remote add dropbox file://path/to/your/dropbox/dir/arepo’
‘git push dropbox master’
Congradulations, you’ve created a git repo!
Now, to check it out from another computer you just need to run this command:
‘git clone -o dropbox file://path/to/dropbox/repo’
Now you have your own private git repo.
Posted: September 12th, 2012
Categories:
Programming
Tags:
Comments:
No Comments.
You’re viewing a blog post! Amazing isn’t it? I, a person in suburban America, can write content that can be viewed by you, a person in an Antarctica crab shack. (they have crabs there, right?)
You barely had to do any work to get here. All you had to do was type a URL into your browser and press enter (or click the little arrow next to the URL bar if that’s your thing)
However, your poor computer had a gigantic workload ahead of it when you pressed enter. Let’s look at what happened.
- Your computer scanned it’s hosts file to see if it already knew where my server lived (it probably didn’t)
- It asked your router whether it knew where my server lived (it probably didn’t)
- It asked the global DNS server where my server lived (it knew)
- Your computer bounced your connection through a bunch of other servers to get to mine (unless you happen to live right next to my server)
- It asked the server if it’s alive
- After waiting ages (in computer time), the server responds back that it’s alive
- The computer tells the server okay
- The server tells your computer okay
- The computer tells the server to send you the contents of this page
- The server sends it
- Your router recieves this and sends it to your computer (Note: this happens at a bunch of steps, I only wanted to include it once though)
- Your computer recieves it and sends it to Chrome/Chromium or Firefox or (gasp) Internet Explorer
- Chromium (because it’s the best) sends the raw HTML/CSS code to webkit to parse
- Webkit parses the webpage (this takes forever). V8(javascript), Flash, Java, and other plugins are called in as needed to parse dynamic content
- Webkit passes the rendered webpage back to Chromium
- Chromium tells the computer to blit pixel 0,0 with some color
- More pixel blitting
- More pixel blitting
- Even more pixel blitting
- New! More pixel blitting, completely free!
- More pixel blitting
- The above steps a bazillion more times (even more if you have a big monitor)
- Your webpage is displayed
Please, give your computer a break sometimes. It does a lot of work for you.
Posted: August 29th, 2012
Categories:
Uncategorized
Tags:
Comments:
No Comments.