Skip to content

Instantly share code, notes, and snippets.

View jkleckner's full-sized avatar

Jim Kleckner jkleckner

View GitHub Profile
@jkleckner
jkleckner / brew-mac-bash-completion.txt
Created July 6, 2014 19:57
Minimal initialization for brew and bash on a Mac
Modify or create ~/.profile to contain:
PATH=/usr/local/bin:$PATH
source ~/.bashrc
Modify or create ~/.bashrc to contain:
if [ -f `brew --prefix`/share/bash-completion/bash_completion ]; then
source `brew --prefix`/share/bash-completion/bash_completion
fi
@jkleckner
jkleckner / build.sbt
Last active September 18, 2015 22:01
Edited scalajs-spa-tutorial build.sbt for eclipse settings
import sbt.Credentials
import sbt.Keys._
import sbt.Project.projectToRef
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
resolvers ++= Settings.resolvers.value
// a special crossProject for configuring a JS/JVM/shared structure
lazy val shared = (crossProject.crossType(CrossType.Pure) in file("shared"))
@jkleckner
jkleckner / output.txt
Last active May 18, 2017 23:32
Reproduce coursier/coursier#450 invariant failure when defined as global sbt plugin
+ [[ -e /Users/jim/.sbt/0.13/plugins/sbt-coursier.sbt ]]
+ rm -r /Users/jim/.sbt/0.13/plugins/sbt-coursier.sbt
+ [[ -e /Users/jim/.sbt/0.13/sbt-coursier.sbt ]]
+ rm -r /Users/jim/.sbt/0.13/sbt-coursier.sbt
+ echo Show that sbt update works when no coursier:
Show that sbt update works when no coursier:
+ [[ -e /Users/jim/.sbt/0.13/plugins/sbt-coursier.sbt ]]
+ [[ -e /Users/jim/.sbt/0.13/sbt-coursier.sbt ]]
+ mksrc
+ [[ -e ./repro450 ]]

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@jkleckner
jkleckner / 2018-04-30-nberrors.out
Created April 30, 2018 20:36
Pomegranate 0.9.0 ipython notebook errors
for nb in examples/*.ipynb tutorials/*.ipynb benchmarks/*.ipynb ; do time jupyter nbconvert $nb --execute --ExecutePreprocessor.timeout=600 --to html ; done
[NbConvertApp] Converting notebook examples/bayesnet_asia.ipynb to html
[NbConvertApp] Executing notebook with kernel: python2
[NbConvertApp] ERROR | Error while converting 'examples/bayesnet_asia.ipynb'
Traceback (most recent call last):
File "/Users/jim/miniconda2/envs/py2.7/lib/python2.7/site-packages/nbconvert/nbconvertapp.py", line 393, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "/Users/jim/miniconda2/envs/py2.7/lib/python2.7/site-packages/nbconvert/exporters/exporter.py", line 174, in from_filename
return self.from_file(f, resources=resources, **kw)
File "/Users/jim/miniconda2/envs/py2.7/lib/python2.7/site-packages/nbconvert/exporters/exporter.py", line 192, in from_file
@jkleckner
jkleckner / run-spark-pi-local.txt
Last active December 6, 2019 01:10
Output of spark-pi-local.sh for spark-on-kubernetes questions
The challenge below is to eliminate all of the sleep invocations and
make this script run to completion.
+ helm init
$HELM_HOME has been configured at /Users/jim/.helm.
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
To prevent this, run `helm init` with the --tiller-tls-verify flag.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation