Skip to content

Instantly share code, notes, and snippets.

{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 16}, "objects": [{"deleted_at": null, "followed_at": "2012-08-06T14:04:00.148184", "id": "20", "last_check": "2012-08-07T16:46:40.024772", "lat": null, "lng": null, "max_distance": null, "name": "2007 Audi RS4", "resource_uri": ""},
...
]
#
# Urls
#
from django.conf.urls.defaults import patterns, url, include
from django.contrib import admin
from tastypie.api import Api
from resources import UserResource, FollowResource, FollowItemResource
15199734 95137668395 1236789689135 95137668395 894102
138449190 13 4123 13 547230
1799839470 12903 106398138 12903 3650790
7113990 13 107198 13 105872910
167739 19002830 5596333435 19002830 9867
@omarish
omarish / uninstall_vmware_fusion.sh
Created November 5, 2012 19:28
Uninstall Vmware Fusion 5.0 on OSX. Restart your machine when you're done!
#!/bin/sh
# Instruction from http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017838
sudo rm -rf "/Library/Application Support/VMware"
sudo rm -rf "/Library/Application Support/VMware Fusion"
sudo rm -rf "/Library/Preferences/VMware Fusion"
sudo rm -rf "/Applications/VMware Fusion.app"
rm -rf "~/Library/Application Support/VMware Fusion"
rm -rf "~/Library/Caches/com.vmware.fusion"
#!/usr/bin/env python
_ = (
255,
lambda
V ,B,c
:c and Y(V*V+B,B, c
-1)if(abs(V)<6)else
( 2+c-4*abs(V)**-0.4)/i
) ;v, x=1500,1000;C=range(v*x
);import struct;P=struct.pack;M,\
# Setting the prefix from `C-b` to `C-a`.
# By remapping the `CapsLock` key to `Ctrl`,
# you can make triggering commands more comfottable!
set -g prefix C-a
# Free the original `Ctrl-b` prefix keybinding.
unbind C-b
# Ensure that we can send `Ctrl-a` to other apps.
bind C-a send-prefix
@omarish
omarish / es.sh
Created May 17, 2012 20:09 — forked from aaronshaf/es.sh
Install ElasticSearch 0.19.8 and AWS Cloud Plugin on Ubuntu 11.04.
cd ~
sudo apt-get update
sudo apt-get install unzip curl python-software-properties -y
#sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.8.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
@omarish
omarish / server.py
Created May 2, 2013 00:25
A Tornado StaticFileHandler to disable static asset caching when you're in debug mode. Thanks to @didip for https://gist.github.com/didip/902931.
import tornado.web
class NoCacheStaticFileHandler(tornado.web.StaticFileHandler):
def set_extra_headers(self, path):
self.set_header("Cache-control", "no-cache")
class Application(tornado.web.Application):
def __init__(self):
handlers = [
# ...

Keybase proof

I hereby claim:

  • I am omarish on github.
  • I am obb (https://keybase.io/obb) on keybase.
  • I have a public key ASDIeAVpKvwV3vCq56hv4VTRXv_wNzmDUIvvTUJiMJwrhwo

To claim this, I am signing this object:

Dear Client:

We are writing to share with you important information about a security compromise involving a database containing some of your personal information, as well as steps we are taking in response, and the resources we are making available to you.

What Happened

Federal law enforcement officials recently informed us that they’ve been investigating cybersecurity crimes involving the theft of information from Scottrade and other financial services companies. We immediately initiated a comprehensive response.

Based upon our subsequent internal investigation coupled with information provided by the authorities, we believe a list of client names and street addresses was taken from our system. Importantly, we have no reason to believe that Scottrade’s trading platforms or any client funds were compromised. All client passwords remained encrypted at all times and we have not seen any indication of fraudulent activity as a result of this incident.