Skip to content

Instantly share code, notes, and snippets.

@junkor-1011
junkor-1011 / README.md
Last active November 28, 2020 13:08
Leaflet get BBox by drawing rectangle

Leaflet get BBox by drawing rectangle

dependencies

Leaflet-1.7.1 leaflet--hash-0.2.1 Leaflet.draw-1.0.4

demo

@junkor-1011
junkor-1011 / export.sh
Created September 11, 2020 12:34
s-jis & CRLF => utf-8 & LF
#!/usr/bin/env sh
# s-jis to utf-8 & CRLF to LF
# requirements: nkf, dos2unix
TARGET_DIR=$1
EXPORT_DIR=$2
# prepare export dir
for dir in `find $TARGET_DIR -type d`
@junkor-1011
junkor-1011 / make_key.sh
Last active September 13, 2020 03:57
autogenerate openssl key & crt
#!/usr/bin/env sh
# get this script's path
SCRIPT_DIR=$(cd $(dirname $0); pwd)
cd $SCRIPT_DIR
# generate key & crt
openssl req -batch -new -x509 -newkey rsa:4096 -days 3650 -sha256 -nodes \
-subj /CN=example.com \
-addext "subjectAltName=DNS:example.com,DNS:www.example.com" \
@junkor-1011
junkor-1011 / .dockerignore
Last active April 6, 2021 12:35
gitlab_ce with SSL
logs/*
config/*
data/*
@junkor-1011
junkor-1011 / create_env_nvim.yml
Last active September 19, 2021 16:52
neovim python3-setting with conda
name: nvim_backend
channels:
- conda-forge
dependencies:
- python
- pynvim
- nodejs
- pygments
- ctags
- sqlparse
@junkor-1011
junkor-1011 / README.md
Last active September 22, 2020 17:22
D3 TimeSeries Graphs in jQuery-UI Dialog
@junkor-1011
junkor-1011 / README.md
Last active September 26, 2020 14:52
Setup Ubuntu(20.04-LTS) Note

Setup Ubuntu 20.04LTS Note

for setup


shell

zsh

@junkor-1011
junkor-1011 / README.md
Last active September 27, 2020 15:11
swagger-codegen & redoc test

swagger-codegen & redoc test

create env

# create env: swagger_codegen_test
conda env create -f create_env.yml
# enter env
conda activate swagger_codegen_test
@junkor-1011
junkor-1011 / README.md
Last active September 27, 2020 14:44
Sphinx Note

Sphinx Note

ToDo

# initial setting: generate by sphinx-apidoc with -F option
sphinx-apidoc -e -F -o ${DOCUMENT_SOURCE_DIR} ${PYTHON_SOURCE_CODE}
# build
sphinx-build -a -b html ${DOCUMENT_SOURCE_DIR} ${DOCUMENT_PUBLISH_DIR}
@junkor-1011
junkor-1011 / README.md
Created December 7, 2020 14:51
install terraform @Linux