Skip to content

Instantly share code, notes, and snippets.

View bastula's full-sized avatar
🤠
See you space cowboy...

Aditya Panchal bastula

🤠
See you space cowboy...
View GitHub Profile
import threading
import SocketServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
import httplib2
class QuietSimpleHTTPRequestHandler(SimpleHTTPRequestHandler):
"""Quiet http request handler
Subclasses SimpleHTTPRequestHandler in order to overwrite the log_message
method, letting us reduce output generated by the handler. Only standard
messages are overwritten, so errors will still be displayed.
@bastula
bastula / # vtk - 2017-12-24_21-47-23.txt
Created December 25, 2017 03:58
vtk on macOS 10.13.2 - Homebrew build logs
Homebrew build logs for vtk on macOS 10.13.2
Build date: 2017-12-24 21:47:23

Keybase proof

I hereby claim:

  • I am bastula on github.
  • I am bastula (https://keybase.io/bastula) on keybase.
  • I have a public key ASAXtgTx7KY27mdHtIofqrVS3wLnEa3fljjO561Xsw5uMAo

To claim this, I am signing this object:

@bastula
bastula / basic_pipeline.py
Created September 10, 2016 19:06
Script to plot City of Chicago building permits on a map using Luigi.
import luigi
import requests
import pandas as pd
class DownloadTask(luigi.ExternalTask):
"""
Downloads Permit Data from the Portal
"""
def run(self):
@bastula
bastula / autoreload.py
Last active March 8, 2016 21:05
Python script to reset Orthanc to reload Lua scripts when scripts are modified
import sys
import time
import logging
import requests
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
ORTHANC_HOST = "http://localhost:8042"
ORTHANC_RESET_URL = ORTHANC_HOST + "/tools/reset"
# Set user/pass if basic authentication is enabled
# Original is from: https://www.snip2code.com/Snippet/46915/Orthanc-Homebrew
require "formula"
class Orthanc < Formula
homepage "http://www.orthanc-server.com/"
url "https://github.com/jodogne/Orthanc/releases/download/0.7.3/Orthanc-0.7.3.tar.gz"
sha1 "30176fe2c4f9917a4f7230dbe5dda59572a4487e"
depends_on "cmake" => :build
depends_on "glog"