- Copy this "shift_space_input_source.json" to ~/.config/karabiner/assets/complex_modifications/
- Karabiner-Elements -> Preferences -> Complex Modifications -> Add rule -> Enable "Toggle input sources (English or Japanese) by shift + space"
This file contains 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" | |
} |
This file contains 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 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 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 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
create 'test', 'cf' | |
list 'test' | |
describe 'test' | |
put 'test', 'row1', 'cf:a', 'value1' | |
put 'test', 'row2', 'cf:b', 'value2' | |
put 'test', 'row3', 'cf:c', 'value3' | |
scan 'test' | |
get 'test', 'row1' | |
disable 'test' | |
enable 'test' |
This file contains 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
hdfs dfs -mkdir input | |
hdfs dfs -put ${HADOOP_HOME}/etc/hadoop/*.xml input | |
hadoop jar ${HADOOP_HOME}/share/hadoop/mapreduce/hadoop-mapreduce-examples-*.jar grep input output 'dfs[a-z.]+' | |
hdfs dfs -cat output/* |
Download Artifactory or Download Artifactory from Bintray
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home
$ export JFROG_HOME=/opt/jfrog
$ tar -C $JFROG_HOME -zxvf jfrog-artifactory-pro-7.2.1-darwin.tar.gz
$ ln -s /opt/jfrog/artifactory-pro-7.2.1 $JFROG_HOME/artifactory-pro
$ $JFROG_HOME/artifactory-pro/app/bin/artifactoryctl start
This file contains 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 | |
cat > /tmp/dashboard-adminuser-1.yaml << EOF | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: admin-user | |
namespace: kubernetes-dashboard | |
EOF |
OlderNewer