Skip to content

Instantly share code, notes, and snippets.

View srid99's full-sized avatar

Sridhar Gnanasekaran srid99

View GitHub Profile
@srid99
srid99 / server.py
Last active May 28, 2016 15:45
Simple python server
#!/usr/bin/python
from wsgiref.simple_server import make_server
def application(environ, start_response):
response_body = '{"id": 1}'
status = '200 OK'
response_headers = [('Content-Type', 'application/json'),
('Content-Length', str(len(response_body)))]
@srid99
srid99 / install-intellij.sh
Created June 9, 2014 15:14
A bash script to create and install a desktop entry for intellij ultimate edition in (mostly) any linux distro
#!/usr/bin/env bash
# Run this script from your '/.../intellij-location/bin' directory.
# Application name
APPLICATION=intellij-idea
# Application path
APPLICATION_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P)