function cheat-grep(){
if [[ $1 == "" ]]; then
echo "nothing to search"
return;
fi
search_line=""
for each_input_arg in "$@"; do
if [[ $search_line == "" ]]; then
search_line=$each_input_arg
else
search_line=$search_line".*"$each_input_arg
fi
done
grep -r $search_line -i -A 2 $HOME_PROJECTS/cheat-sheet/*.md $HOME_PROJECTS/bash-example/*
}
- Development
https://raw.githack.com/[user]/[repository]/[branch]/[filename.ext]
- Production (CDN)
https://rawcdn.githack.com/[user]/[repository]/[branch]/[filename.ext]
example:https://raw.githack.com/cherkavi/javascripting/master/d3/d3-bar-chart.html
http://htmlpreview.github.io/?[full path to html page]
example
http://htmlpreview.github.io/?https://github.com/cherkavi/javascripting/blob/master/d3/d3-bar-chart.html
http://htmlpreview.github.io/?https://github.com/twbs/bootstrap/blob/gh-pages/2.3.2/index.html
https://rawgit.com/[user]/[repository]/master/index.html
https://rawgit.com/cherkavi/javascripting/master/d3/d3-bar-chart.html
- diagrams within markdown
- markdown editor realtime collaboration
- list of markdown code supported languages
- online editor with prepared UI frameworks
- code compiler/editor online
- code compiler/editor online
- typescript sandbox
- repl online
- code sandbox
-
sqlline sqlline doc installation from source
git clone https://github.com/julianhyde/sqlline.git cd sqlline git tag git checkout sqlline-1.12.0 mvn package
download from maven
ver=1.12.0 wget https://repo1.maven.org/maven2/sqlline/sqlline/$ver/sqlline-$ver-jar-with-dependencies.jar
usage
java -cp "*" sqlline.SqlLine \ -n myusername -p supersecretpassword \ -u "jdbc:oracle:thin:@my.host.name:1521:my-sid"
usage with db2
JDBC_SERVER_NAME=cat.zur JDBC_DATABASE=TOM_CAT JDBC_PORT=8355 JDBC_USER=jerry JDBC_PASSWORD_PLAIN=mousejerry JDBC_DRIVER='com.ibm.db2.jcc.DB2Driver' java -cp "*" sqlline.SqlLine -n ${JDBC_USER} -p ${JDBC_PASSWORD_PLAIN} -u "jdbc:db2://${JDBC_SERVER_NAME}:${JDBC_PORT}/${JDBC_DATABASE}" -d $JDBC_DRIVER