This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__os=$(shell uname) | |
__wget=$(shell which wget) | |
__tar=$(shell which tar) | |
__make=$(shell which make) | |
__mkdir=$(shell which mkdir) | |
__cp=$(shell which cp) | |
__rm=$(shell which rm) | |
__prefix=$(shell pwd)/build | |
__include=$(__prefix)/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ apm list | |
Built-in Atom packages (88) | |
├── archive-view@0.58.0 | |
├── atom-dark-syntax@0.27.0 | |
├── atom-dark-ui@0.49.0 | |
├── atom-light-syntax@0.28.0 | |
├── atom-light-ui@0.41.0 | |
├── autocomplete-atom-api@0.9.0 | |
├── autocomplete-css@0.8.0 | |
├── autocomplete-html@0.7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from BaseHTTPServer import BaseHTTPRequestHandler | |
import urlparse, json | |
class GetHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
parsed_path = urlparse.urlparse(self.path) | |
message = '\n'.join([ | |
'CLIENT VALUES:', | |
'client_address=%s (%s)' % (self.client_address, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
tr -s ' ' < tpcc_pg_report.vmstat | sed 's/^ //g' | sed 's/ /,/g' > tpcc_pg_report.vmstat.csv | |
''' | |
from __future__ import division | |
import csv | |
from itertools import izip_longest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python (Updated for Python 3.7) | |
Usage: | |
./dummy-web-server.py -h | |
./dummy-web-server.py -l localhost -p 8000 | |
Send a GET request: |