Skip to content

Instantly share code, notes, and snippets.

View GVRV's full-sized avatar
🎯
Focusing

Gaurav Dadhania GVRV

🎯
Focusing
View GitHub Profile
@GVRV
GVRV / about.md
Created August 13, 2011 07:47 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@GVRV
GVRV / install-ruby.sh
Created October 30, 2012 07:57
install rvm and ruby 1.9.2 on Ubuntu 12.04
#!/usr/bin/env sh
# according to http://octopress.org/docs/setup/rvm/
# !! notice the line about bash and zsh!!!
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@GVRV
GVRV / resources.txt
Created August 7, 2013 15:37
Python packaging talk resources
http://svn.python.org/projects/sandbox/trunk/setuptools/doc/formats.txt
https://python-packaging-user-guide.readthedocs.org/en/latest/index.html
http://guide.python-distribute.org/index.html
http://www.scotttorborg.com/python-packaging/everything.html
http://docs.python.org/2/install/index.html
http://docs.python.org/2/distutils/setupscript.html
http://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
http://pythonhosted.org/distribute/setuptools.html#automatic-script-creation
@GVRV
GVRV / api.py
Created August 13, 2013 08:49
tastypie example
# For address model
class AddressResource(ModelResource):
street_name = fields.CharField()
suburb = fields.CharField()
# For organization model
class OrganizationResource(ModelResource):
address = fields.ToOneField(AddressResource, 'address')
# Now when you get /api/v1/organization
@GVRV
GVRV / joyent.txt
Created November 9, 2013 01:35
Joyent not able to reach Ubuntu keyserver
root@sckor-in:/usr/local/src/node/node-v0.10.18# ping keyserver.ubuntu.com
PING keyserver.ubuntu.com (91.189.89.49) 56(84) bytes of data.
From leszi.canonical.com (91.189.93.244) icmp_seq=11 Destination Host Unreachable
^C
--- keyserver.ubuntu.com ping statistics ---
15 packets transmitted, 0 received, +1 errors, 100% packet loss, time 14014ms
pipe 2
✘  ~/www/Hiive/sckor-in  ± master  ./deploy nko
○ deploying
○ hook pre-deploy
○ fetching updates
Fetching origin
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
error: Could not fetch origin
fetch failed
Meteor.startup(function () {
Deps.autorun(function () {
var selected = Session.get("selected");
if (selected) {
var hiive = Hiives.findOne(selected);
if (hiive) {
Meteor.subscribe("messages", hiive._id);
Meteor.subscribe("activeUsers", hiive._id);
}
@GVRV
GVRV / keybase.md
Created March 17, 2014 04:11
Proving myself for Keybase

Keybase proof

I hereby claim:

  • I am GVRV on github.
  • I am GVRV (https://keybase.io/GVRV) on keybase.
  • I have a public key whose fingerprint is A087 B5C2 F58F 6A29 52E7 C3A6 A471 B41B BE0C B32E

To claim this, I am signing this object:

// put this as the filter and enable 'regex'
^((?!extensions::).)*$