Collection of images used in my project README files.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/env bash | |
brew install openblas | |
brew install lapack | |
# Set the following environment variables so that the build tools can find the libraries. | |
# openblas | |
export LDFLAGS="-L/usr/local/opt/openblas/lib $LDFLAGS" | |
export CPPFLAGS="-I/usr/local/opt/openblas/include $CPPFLAGS" | |
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig $PKG_CONFIG_PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show contents of MANIFEST.MF in a jar | |
unzip -q -c target/{name}.jar META-INF/MANIFEST.MF | |
# List files in a jar | |
jar -tf target/{name}.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
file_with_anchor_text=$1 | |
file_with_new_content=$2 | |
BEGIN_TEXT='<!-- BEGIN anchor text --!>' | |
END_TEXT='<!-- END anchor text --!>' | |
function get_line_number() { | |
local text=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa -out jwt-private.pem 2048 | |
openssl rsa -in jwt-private.pem -pubout -out jwt-public.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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 |
I hereby claim:
- I am warfox on github.
- I am deepu (https://keybase.io/deepu) on keybase.
- I have a public key ASCrBcADwFjYASFkJKpn0GksuDURXbLCLf0cFVLohhxcxwo
To claim this, I am signing this object:
NewerOlder