Skip to content

Instantly share code, notes, and snippets.

View etamong's full-sized avatar
🕹️
Focusing

Jooho Lee etamong

🕹️
Focusing
View GitHub Profile
#!/bin/bash
# $1: osm file path
export PGPASSWORD=$DB_PASSWORD
osm2pgsql \
-H $DB_HOST \
-P $DB_PORT \
-d $DB_NAME \
#!/bin/bash
BASE_URL="https://osmdata.openstreetmap.de/download/"
POSTFIX=".zip"
names=("simplified-water-polygons-split-3857" "water-polygons-split-3857" "antarctica-icesheet-polygons-3857" "antarctica-icesheet-outlines-3857")
for (( i=0; i<${#names[@]}; i++)); do
wget ${BASE_URL}${names[i]}${POSTFIX}
unzip ${names[i]}${POSTFIX}
#!/bin/bash
BASE_URL="http://download.geofabrik.de/"
POSTFIX="-latest.osm.pbf"
names=("africa" "antarctica" "asia" "australia-oceania" "central-america" "europe" "north-america" "south-america")
# for (( i=0; i<${#names[@]}; i++)); do
# wget --spider ${BASE_URL}${names[i]}${POSTFIX}
# done
@etamong
etamong / starUML.md
Created June 11, 2020 02:48 — forked from trandaison/starUML.md
Get full version of StarUML
certifi==2020.4.5.1
click==7.1.2
efficientnet-pytorch==0.6.3
Flask==1.1.2
future==0.18.2
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
mkl-fft==1.0.15
mkl-random==1.1.0
name: pdf_api
channels:
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- blas=1.0=mkl
- bzip2=1.0.8=h7b6447c_0
- ca-certificates=2020.1.1=0
- cairo=1.14.12=h8948797_3
- certifi=2020.4.5.1=py37_0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@etamong
etamong / 4.detect_face.ipynb
Created April 8, 2020 15:10
Mask R-CNN, transferred from coco pre-trained model, by 50 epochs.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/sh
tmux new-session -d 'htop'
tmux split-window -h 'watch -n 1 -d nvidia-smi'
tmux split-window -v 'watch -n 1 -d sensors'
# tmux -2 attach-session -d
tmux -2 attach-session -d
@etamong
etamong / 1.inspect_face_data.ipynb
Created April 7, 2020 14:58
Mask R-CNN with celebA Dataset & COCO pre-trained model.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.