Skip to content

Instantly share code, notes, and snippets.

View tastycode's full-sized avatar

Sasha Devol tastycode

  • Elsewhere Labs
  • New Orleans, LA
View GitHub Profile
@tastycode
tastycode / .vimrc
Created August 16, 2011 14:12
development_tools
"pathogen is a plugin manager
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
"save my position / view next time ai load the file
au BufWinLeave * mkview
au BufWinEnter * silent loadview
"highlight column/linee
if &bg == 'dark'
@tastycode
tastycode / extconf.rb
Created July 22, 2011 00:46
Levenshtein C extension Draft
require 'mkmf'
dir_config('string');
create_makefile('string');
~
@tastycode
tastycode / phpmemcached.php
Created July 6, 2011 22:31
PHP Memcached Server
<?php
/**
* A really simple memcache implementation for PHP - Based on https://gist.github.com/949850
* Run the script, it listens on port 8000
* To store a value, http://localhost:8000/write/family/key/val
* To read a value , http://localhost:8000/read/family/key
*
* This is just a proof of concept .. it doesn't handle errors etc..
*
@tastycode
tastycode / commands0
Created June 5, 2011 02:16
Gem Flaws
root@tara:~/tmp/1008583# locate images_controller.rb
/usr/lib/ruby/gems/1.8/gems/refinerycms-images-0.9.9.21/app/controllers/admin/images_controller.rb
root@tara:~/tmp/1008583# vim `locate images_controller.rb`