This file contains hidden or 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
#!/bin/bash | |
# You can use this script as AWS user-data like | |
# $ aws ec2 run-instances [<other_params>] --user-data https://gist.githubusercontent.com/tsuyo/a6fe43549599b622c8f2331a14f795da/raw/aws-user-data-jdk | |
JDK_URL=http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.tar.gz | |
JDK_VER=jdk1.8.0_102 | |
CUR_USER=${SUDO_USER:-$(tail -1 /etc/passwd | cut -d: -f1)} | |
installJDK() { |
This file contains hidden or 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 | |
# global parameters | |
g_tmp_folder="ncdc_tmp"; | |
g_output_folder="ncdc_data"; | |
g_remote_host="ftp.ncdc.noaa.gov"; | |
g_remote_path="pub/data/noaa"; | |
This file contains hidden or 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
# keybind (for ver 4.5.0) | |
Window -> Preferences -> General -> Keys | |
Scheme: Emacs | |
Delete Previous: Ctrl+H | |
Contenst Assist: Ctrl+/ | |
Set Mark: Ctrl+Space | |
Find and Replace: Ctrl+], Shift+5 (aka M-%) |
This file contains hidden or 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 hidden characters
{ | |
"cmd": ["sh", "-c", "javac $file_base_name.java && java $file_base_name"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java" | |
} |
NewerOlder