A tab completion script that works for Bash. Relies on the BSD md5
command on Mac and md5sum
on Linux, so as long as you have one of those two commands, this should work.
$ gradle [TAB]
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/sh | |
#================================================================================ | |
# This script fetches and builds the latest OpenJDK9 and OpenJFX (currently 8u40) | |
# and installs OpenJFX into the OpenJDK j2sdk image. | |
# | |
# It requires an existing 1.8 JDK installation to bootstrap the OpenJDK build | |
# (I used Oracle jdk1.8.0_20). | |
# | |
# Tested on Debian x86_64 (Squeeze and Wheezy) |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
./clone-jdk8.sh # see https://gist.github.com/jasontedor/a1a38cfa646c186b8736#file-clone-jdk8-sh | |
cd hotspot/src/share/tools/hsdis | |
curl -L -O http://ftp.heanet.ie/mirrors/gnu/binutils/binutils-2.26.tar.gz | |
tar xf binutils-2.26.tar.gz | |
make BINUTILS=binutils-2.26 ARCH=amd64 | |
sudo cp ./build/macosx-amd64/hsdis-amd64.dylib $JAVA_HOME/jre/lib/server/ |
# Nginx configuration for stubbing _bulk requests and proxying everything | |
# else to a local Elasticsearch instance. | |
# | |
# This can be used to test performance of network and the load generator | |
# for pure bulk indexing benchmarks. | |
# | |
# This configuration has been tested with Rally (https://github.com/elastic/rally). | |
# nginx-extras for the more-include headers module | |
# sudo apt-get install nginx nginx-extras |
Custom format for displaying bytes as kb
, mb
, gb
or tb
.
Response to a few places on the internet: https://productforums.google.com/forum/#!topic/docs/x_T_N-yRUYg And here: https://stackoverflow.com/questions/1533811/how-can-i-format-bytes-a-cell-in-excel-as-kb-mb-gb-etc
Here is one that I have been using:
[<1000000]0.00," KB";[<1000000000]0.00,," MB";0.00,,," GB"