Skip to content

Instantly share code, notes, and snippets.

View hsteinshiromoto's full-sized avatar

Humberto STEIN SHIROMOTO hsteinshiromoto

View GitHub Profile
@hsteinshiromoto
hsteinshiromoto / run_container.sh
Last active August 28, 2019 12:34
Wordpress: Run Container
#!/bin/bash
# ---
# Global Variables
# ---
project_name=$(basename $(pwd))
docker_user=docker_username
registry=docker_registry
tag=latest
docker_image=${registry}/${docker_user}/${project_name}:${tag}
@hsteinshiromoto
hsteinshiromoto / Dockerfile
Created August 28, 2019 12:36
Wordpress: Dockerfile
FROM python:3.7-slim-stretch
# ---
# Build Arguments
# ---
ARG BUILD_DATE
ARG PROJECT_NAME
# Avoid questions from debconf
ARG DEBIAN_FRONTEND=noninteractive
@hsteinshiromoto
hsteinshiromoto / Makefile
Created August 28, 2019 12:38
Wordpress: Makefile
# ---
# Global Variables
# ---
SHELL:=/bin/bash
docker_user = docker_username
registry = docker_registry
project_name = $(shell basename $(shell pwd))
tag = latest
build_date=$(shell date +%Y%m%d-%H:%M:%S)
@hsteinshiromoto
hsteinshiromoto / entrypoint.sh
Created August 28, 2019 12:42
Wordpress: entrypoint.sh
#!/bin/bash
set -e
# If "-e uid={custom/local user id}" flag is not set for "docker run" command, use 9999 as default
CURRENT_UID=${uid:-9999}
# Notify user about the UID selected
echo "Current UID : $CURRENT_UID"
# Create user called "docker" with selected UID
@hsteinshiromoto
hsteinshiromoto / script.sh
Created March 2, 2020 01:41
Bash script to run functions using arguments
# Documentation
display_help() {
echo "Usage: [variable=value] $0" >&2
echo
echo " -m, --my_function run my_function"
echo " -h, --help display help"
echo
# echo some stuff here for the -a or --add-options
exit 1
}
@hsteinshiromoto
hsteinshiromoto / wordpress.covid19.01-hss-eda_brasilio.ipynb
Last active April 5, 2020 23:33
Initial EDA of Brasil.io data of COVID 19
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hsteinshiromoto
hsteinshiromoto / template.python.project.jupyter_eda_header.ipynb
Last active August 7, 2021 02:17
Header Template for and EDA Jupyter Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hsteinshiromoto
hsteinshiromoto / HSteinShiromoto.bib
Last active October 17, 2021 02:09
LaTeX bib files
%% This BibTeX bibliography file was created using BibDesk.
%% https://bibdesk.sourceforge.io/
%% Created for Humberto Stein Shiromoto at 2021-10-17 13:09:18 +1100
%% Saved with string encoding Unicode (UTF-8)
@hsteinshiromoto
hsteinshiromoto / pandas_datime_resample.ipynb
Last active July 23, 2020 04:56
Data Manipulation with Pandas
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.