Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"| keytool -noprompt -importcert -trustcacerts -file /prussia.crt -alias prussia -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit |
| # Copyright 2018 Cloudera, Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # impor spark, set spark context | |
| from pyspark import SparkContext, SparkConf | |
| from pyspark.sql.context import SQLContext | |
| import sys | |
| import os | |
| if len(sys.argv) == 1: | |
| sys.stderr.write("Must enter input file to convert") | |
| sys.exit() | |
| input_file = sys.argv[1] |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| # Compile and install certificates for the Java trust keystore | |
| # and main keystore. Let's face it, this is everyone's keystore password. | |
| # Note I install java very flatly normally. | |
| COPY trust-certs/ /usr/local/share/ca-certificates/ | |
| RUN update-ca-certificates && \ | |
| ls -1 /usr/local/share/ca-certificates | while read cert; do \ | |
| openssl x509 -outform der -in /usr/local/share/ca-certificates/$cert -out $cert.der; \ | |
| /java/bin/keytool -import -alias $cert -keystore /java/jre/lib/security/cacerts -trustcacerts -file $cert.der -storepass changeit -noprompt; \ | |
| rm $cert.der; \ | |
| done |
| yum -y install texlive texlive-latex texlive-xetex | |
| yum -y install texlive-collection-latex | |
| yum -y install texlive-collection-latexrecommended | |
| yum -y install texlive-xetex-def | |
| yum -y install texlive-collection-xetex | |
| Only if needed: | |
| yum -y install texlive-collection-latexextra |
| #!/bin/sh | |
| # Setup encrypted disk image | |
| # For Ubuntu 14.04 LTS | |
| CRYPTFS_ROOT=/cryptfs | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install cryptsetup |
| /* | |
| * Dependencies: Apache POI Library from http://poi.apache.org/ | |
| */ | |
| package poi_excels; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.logging.Level; |