Skip to content

Instantly share code, notes, and snippets.

Vish (Ishaya) Abrams vishvananda

Block or report user

Report or block vishvananda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View python-is-slow.md

Introduction

A few weeks ago I was browsing Hacker News, and I noticed a post about a little online programming game called Colossal Cue Adventure. I was instantly hooked and three problems quickly fell to some hacked-together Python.

I was feeling pretty satisfied with myself until I noticed the little phrase at the bottom:

you can try your hand at the bonus level by typing bonus...
View keybase.md

Keybase proof

I hereby claim:

  • I am vishvananda on github.
  • I am vish (https://keybase.io/vish) on keybase.
  • I have a public key whose fingerprint is F79D 5621 D6B6 EAC6 F633 081E 6B4E B3E1 BCCC 3C0A

To claim this, I am signing this object:

View Vagrantfile
Vagrant::Config.run do |global_config|
# Change the user name so nodes don't conflict
user = "vish"
aptdir = "/home/vishvananda/aptcache/"
global_config.vm.define :chef do |config|
ip = "192.168.76.100"
# path where code is checked out
checkout = "/home/vishvananda/openstack-cookbooks"
config.vm.box = "base"
config.vm.box_url = "http://images.anso.com/vagrant/maverick64.box"
View Vagrantfile
Vagrant::Config.run do |global_config|
aptdir = "#{ENV['HOME']}/aptcache/"
checkout = "#{ENV['HOME']}/openstack-cookbooks"
global_config.vm.define :chef do |config|
ip = "192.168.76.100"
# path where code is checked out
config.vm.box = "base"
config.vm.box_url = "http://images.anso.com/vagrant/maverick64.box"
config.vm.network ip
config.vm.share_folder("v-apt", "/var/cache/apt", aptdir)
View Vagrantfile
Vagrant::Config.run do |config|
ip = "192.168.76.11"
# path where code is checked out
checkout = "#{ENV['HOME']}/openstack-cookbooks"
config.vm.box = "base"
config.vm.box_url = "http://images.ansolabs.com/vagrant/maverick64.box"
config.vm.network ip
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "#{checkout}/cookbooks"
chef.roles_path = "#{checkout}/roles"
View Vagrantfile
Vagrant::Config.run do |global_config|
aptdir = "#{ENV['HOME']}/aptcache/"
checkout = "#{ENV['HOME']}/openstack-cookbooks"
global_config.vm.define :chef do |config|
ip = "192.168.76.100"
# path where code is checked out
config.vm.box = "base"
config.vm.box_url = "http://images.anso.com/vagrant/maverick64.box"
config.vm.network ip
config.vm.share_folder("v-apt", "/var/cache/apt", aptdir)
View Vagrantfile
Vagrant::Config.run do |config|
ip = "192.168.76.10"
aptdir = "#{ENV['HOME']}/aptcache/"
checkout = "#{ENV['HOME']}/openstack-cookbooks"
config.vm.box = "base"
config.vm.box_url = "http://images.ansolabs.com/vagrant/maverick64.box"
config.vm.network(ip, :mac => "080027666010")
config.vm.share_folder("v-apt", "/var/cache/apt", aptdir)
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "#{checkout}/cookbooks"
View Vagrantfile
Vagrant::Config.run do |global_config|
aptdir = "#{ENV['HOME']}/aptcache/"
checkout = "#{ENV['HOME']}/openstack-cookbooks"
ip_prefix = (ENV['IP_PREFIX'] or "192.168.76.")
mac_prefix = (ENV['MAC_PREFIX'] or "080027076")
global_config.vm.define :chef do |config|
suffix = "100"
ip = "#{ip_prefix}#{suffix}"
config.vm.box = "base"
config.vm.box_url = "http://images.anso.com/vagrant/maverick64.box"
View Vagrantfile
Vagrant::Config.run do |global_config|
aptdir = "#{ENV['HOME']}/aptcache/"
checkout = "#{ENV['HOME']}/openstack-cookbooks"
ip_prefix = (ENV['IP_PREFIX'] or "192.168.76.")
mac_prefix = (ENV['MAC_PREFIX'] or "080027076")
fixed = (ENV['FIXED'] or "10.0.76.0/24")
global_config.vm.define :chef do |config|
suffix = "100"
ip = "#{ip_prefix}#{suffix}"
config.vm.box = "base"
You can’t perform that action at this time.