I hereby claim:
- I am warfox on github.
- I am warfox (https://keybase.io/warfox) on keybase.
- I have a public key ASC2qFxzXcPpH1Uu3xyJGINTfjwJ7LqXj5geqOFgZAVW3wo
To claim this, I am signing this object:
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/bin/bash | |
| # https://gorails.com/deploy/ubuntu/14.04 | |
| cd | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv & | |
| wait # wait for cloning to finish | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
| exec $SHELL |
| #!/usr/bin/env bash | |
| kibana_nodes=(server1 server2 server3) | |
| elasticsearch_url=http://myelasticsearch.com | |
| function install_kibana { | |
| echo "install kibana" | |
| sudo rpm -i https://download.elastic.co/kibana/kibana/kibana-4.6.1-x86_64.rpm | |
| } |
| #!/usr/bin/env bash | |
| touch build.sbt ; touch README.md; mkdir -p project; touch project/plugins.sbt; mkdir -p src/{main/{scala,resources,java},test/{scala,resources,java}}/ |
| sample gist from emacs gist.el | |
| `SPC g g b` | |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ;; Change these | |
| (setq project-name "project-name" | |
| main-class-name "canonical.name.of.main.class" | |
| version "0.0.0" | |
| project-root (projectile-project-root) | |
| log4j-configuration (s-lex-format "file://${project-root}/log4j.properties") | |
| config-file (concat project-root "app.conf")) | |
| (defun spark-submit-command(class-name java-options jar-location) | |
| (let ((command (s-lex-format |
| (ns warfox.date | |
| (:import [java.time LocalDate] | |
| [java.time.temporal ChronoUnit])) | |
| (defn date-seq | |
| "Returns lazy sequence of dates starting from `start`" | |
| [^LocalDate start] | |
| (lazy-seq | |
| (cons start | |
| (date-seq (.plusDays start 1))))) |