Never forget to activate that virtualenv or set that environment variable ever again...
-
Install pyenv
brew install pyenv
| #!/bin/bash | |
| set -x | |
| set -e | |
| project="XXX" | |
| prefix="http" | |
| metrics=$( | |
| curl \ |
| import org.apache.spark.rdd.NewHadoopRDD | |
| import org.apache.hadoop.hbase.mapreduce.TableInputFormat | |
| import org.apache.hadoop.hbase.HBaseConfiguration | |
| import org.apache.hadoop.hbase.client.Result | |
| import org.apache.hadoop.hbase.io.ImmutableBytesWritable | |
| import scala.collection.JavaConversions._ | |
| import scala.collection.JavaConverters._ | |
| val sc = new SparkContext("local", "Simple App") |
| /** | |
| * dirwatcher.scala | |
| * | |
| * Uses the Java 7 WatchEvent filesystem API from within Scala. | |
| * Adapted from: | |
| * http://download.oracle.com/javase/tutorial/essential/io/examples/WatchDir.java | |
| * | |
| * @author Chris Eberle <eberle1080@gmail.com> | |
| * @version 0.1 | |
| */ |
| #!/bin/sh | |
| echo Install all AppStore Apps at first! | |
| # no solution to automate AppStore installs | |
| read -p "Press any key to continue... " -n1 -s | |
| echo '\n' | |
| echo Install and Set San Francisco as System Font | |
| ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
| echo Install Homebrew, Postgres, wget and cask | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |