View node-version
#!/usr/bin/env bash
set -e
[[ ! -z "$1" ]] && export LOCAL_BIN="$1"
[[ -z "${LOCAL_BIN}" ]] && export LOCAL_BIN="${HOME}/bin"
[[ ! -d "${LOCAL_BIN}" ]] && mkdir -p "${LOCAL_BIN}"
[[ -z "${NODEJSVERSION}" ]] && export NODEJSVERSION="6.11.2"
[[ -z "${NODEJSOS}" ]] && export NODEJSOS="linux"
View go-versions
#!/usr/bin/env bash
set -e
[[ ! -z "$1" ]] && export LOCAL_BIN="$1"
[[ -z "${LOCAL_BIN}" ]] && export LOCAL_BIN="${HOME}/bin"
[[ ! -d "${LOCAL_BIN}" ]] && mkdir -p "${LOCAL_BIN}"
[[ -z "${GOVERSION}" ]] && export GOVERSION="1.8.3"
[[ -z "${GOOS}" ]] && export GOOS="linux"
View go-tasks
#!/bin/bash
THIS_DIR=$(pwd)
cd $(dirname $0)
MY_DIR=$(pwd)
cd ${THIS_DIR}
[[ -z "${MY_GOPATH}" ]] && export MY_GOPATH=$(basename $MY_DIR)
[[ -z "${GO_MAIN_FILE}" ]] && export GO_MAIN_FILE="main.go"
View mdbm.quicksetup.rhel6BaseDistros.sh
#!/usr/bin/env bash
set -e
#####
# MDBM workspace quick-setup helper
#####
GARAGE_BASEDIR="/tmp/mdbm-garage"
MDBM_BASEDIRNAME="github-yahoo-mdbm"
MDBM_GITURI="https://github.com/yahoo/mdbm"
View tcp_client.go
package main
import (
"fmt"
"io/ioutil"
"net"
"os"
)
const (
View md2html.sh
#!/usr/bin/env bash
# Download HTML converted from provided Markdown, using GitHub API v3
##
md2html(){
if [[ $# -ne 2 ]]; then
echo "ERROR.\nSYNTAX: Markdown_To_HTML <markdown-filepath> <dest-html-filepath>"
return
fi
unset _markdown_filepath
View just-delay.js
// dumb non-jquery delay for quick offline tryouts
function delay(milliseconds) {
var _start = new Date().getTime();
for (;;) {
var _now = new Date().getTime();
if ((_now - _start) > milliseconds){
break;
}
}
View README.md

Use of each:

  • notepad : is a bit tweaked console-color notepad available in browser via bookmark

  • markdown-editor-need-www : live-preview markdown editor; does GET 2 Markdown JS files online

  • live-preview-markdown-editor-offline : will give a pure offline live-preview markdown editor

These will work directly by copy/pasting the content in Browser URL and pressing "Enter". Then you can bookmark it on render with proper name and use whenever want.

View get-python-pip-venv.sh
#!/usr/bin/env bash
export LANGUAGE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="UTF-8"
export LANG="en_US.UTF-8"
##### Var
PIP='pip'
View devstack_neutron_migration.patch
diff --git a/lib/neutron b/lib/neutron
index 465b57c..4a8863f 100644
--- a/lib/neutron
+++ b/lib/neutron
@@ -427,6 +427,10 @@ function init_neutron() {
# install_neutron() - Collect source and prepare
function install_neutron() {
git_clone $NEUTRON_REPO $NEUTRON_DIR $NEUTRON_BRANCH
+ _TMP_PWD=$PWD
+ cd $NEUTRON_DIR