Skip to content

Instantly share code, notes, and snippets.

View okwrtdsh's full-sized avatar

okwrtdsh okwrtdsh

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

posgresql 9.6 to 11.2

launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
mv /usr/local/var/postgres /usr/local/var/postgres96
brew update
brew upgrade postgresql
initdb /usr/local/var/postgres -E utf8
brew install postgresql@9.6
pg_upgrade -b /usr/local/Cellar/postgresql@9.6/9.6.11/bin -B /usr/local/Cellar/postgresql/11.2/bin -d /usr/local/var/postgres96 -D /usr/local/var/postgres
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

install gwd

1 gear s3

  1. 「設定」 > 「Gearについて」 > 「デバッグ」をON
  2. 「設定」 > 「接続」 > 「Wi-Fi」を「常にON」、Wi-Fiに接続
  3. 「設定」 > 「接続」 > 「Bluetooth」をOFF
  4. reboot

2 PC(Mac)

  1. download Gear Watch Designer

Get all tags for docker image from Docker Hub

$ REPO=okwrtdsh/anaconda3
$ curl -L -s "https://hub.docker.com/v2/repositories/$REPO/tags/?page_size=1024" | jq '.results[].name' | sed 's/"//g' | sort
8.0-cudnn6
8.0-cudnn7
9.0-cudnn7
9.1-cudnn7
9.2-cudnn7
cpu
function mkpdf() {
  while [ $# -ne 0 ]; do
    name=${1%.*}
    name=${name:="report"}
    dname=$(dirname $name)
    platex -output-directory=$dname $name
    if [ $? -eq 0 ]
    then
 platex -output-directory=$dname $name
function runkotlin() {
  name=$(echo "$1" | sed s/\.kt//g)
  kotlinc ${name}.kt -include-runtime -d tmp.jar
  java -jar tmp.jar ${@:2}
  rm -f tmp.jar
}
function runts() {
  name=$(echo "$1" | sed s/\.ts//g)
 tsc ${name}.ts --outFile tmp.js