Skip to content

Instantly share code, notes, and snippets.

from pyspark import SparkContext
from pyspark import SparkConf
import os
import sys
if __name__ == "__main__":
conf = SparkConf()
conf.setAppName("version-check")
"""
Generally used like this:
1. fab show_status # shows mongo replication status
2. fab kill_master # kills the current master - only if the replicaset has no failures, see "safe" flag
3. fab start_down_mongo # brings up down machine
"""
import os.path
import subprocess

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@bkreider
bkreider / nginx.conf
Created February 19, 2020 18:27
Resty proxy domain socket to conda
server {
listen unix:/tmp/conda.sock;
root /Users/bkreider/mine/resty/html;
location / {
# conda
proxy_pass https://repo.anaconda.com/;
proxy_pass_header Server;