by Angel Leon. March 17, 2015;
Last update on December 14, 2023
Updated on February 27, 2023
Updated August 29, 2019.
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
import numpy | |
import pylab | |
import random | |
n = 100000 | |
x = numpy.zeros(n) | |
y = numpy.zeros(n) | |
for i in range(1, n): |
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
query IntrospectionQuery { | |
__schema { | |
queryType { name } | |
mutationType { name } | |
subscriptionType { name } | |
types { | |
...FullType | |
} | |
directives { |
#!/bin/bash | |
# Copyright (c) 2011-2012 Cloudera, Inc. All rights reserved. | |
# | |
# Configures Oracle, MySQL or PostgreSQL for SCM. | |
SCRIPT_DIR="$( cd -P "$( dirname "$0" )" && pwd )" | |
# SCM server default file contains location of system MySQL jar | |
prog="cloudera-scm-server" | |
CMF_DEFAULTS=$(readlink -e $(dirname ${BASH_SOURCE-$0})/../../../etc/default) |
import mimetypes | |
import sys | |
from collections import OrderedDict | |
filename = sys.argv[1] | |
def file_type(filename): | |
type = mimetypes.guess_type(filename) | |
return type |
* |
$ brew update | |
$ brew install hive |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |