Skip to content

Instantly share code, notes, and snippets.

View minjejeon's full-sized avatar

Minje Jeon minjejeon

  • Bank of Korea
  • Seoul, Korea
View GitHub Profile
@liviaerxin
liviaerxin / README.md
Last active December 11, 2025 09:28
FastAPI and Uvicorn Logging #python #fastapi #uvicorn #logging

FastAPI and Uvicorn Logging

When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.

Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.

Before overriding:

uvicorn main:app --reload
@kmpm
kmpm / install-weasyproxy.sh
Last active March 23, 2023 00:21
Small file that installes ad uses weasyprint instead of wkhtmltopdf on linuxserver bookstack containers..
#!/bin/bash
# SPDX-FileCopyrightText: 2022 Peter Magnusson <me@kmpm.se>
#
# SPDX-License-Identifier: CC0-1.0
#
# This file installs weasyprint and creates a script that
# tries to proxy calls from bookstack to what it believe is
# wkhtmltopdf.
#
# put this file in /custom-cont-init.d and restart the container
@taking
taking / k8s-containerd-install.sh
Last active November 4, 2024 06:38
kubernetes v1.22.9 containerd-crio-docker install scripts
#!/bin/bash
# Author by Taking
# Kubernetes Install + Reset
# Containerd
# Flannel CNI
# Cluster Name Change (Host명 기준)
# MetalLB Install
RED=`tput setaf 1`
GREEN=`tput setaf 2`
@jtmoon79
jtmoon79 / python-embedded-for-Win10.md
Last active October 16, 2025 19:42
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@ebicoglu
ebicoglu / command-prompt.reg
Last active November 24, 2024 23:20
Useful developer Windows right click items (context menu)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *\command]
@="cmd.exe /s /k pushd \"%V\""
@gmolveau
gmolveau / golang_offline.md
Last active July 7, 2025 02:48
golang mod offline dependencies download

golang offline module dependencies download

Using go mod vendor

0 - With an existing module

  • copy go.mod and go.sum files from the offline PC to the internet PC

0bis - New module

@phartenfeller
phartenfeller / Oracle Instant Client on Debian or Ubuntu
Last active November 6, 2025 17:44
Install an oracle instant client on a Debian or Ubuntu linux
apt-get install -y libaio1 alien
# Change version based on https://www.oracle.com/de/database/technologies/instant-client/linux-x86-64-downloads.html
# Example alternative: http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.5-basiclite-19.5.0.0.0-1.x86_64.rpm
wget http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.6-basic-19.6.0.0.0-1.x86_64.rpm
sudo alien -i --scripts oracle-instantclient*.rpm
rm -f oracle-instantclient*.rpm
# Optionally install SQLPlus
wget http://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/getPackage/oracle-instantclient19.6-sqlplus-19.6.0.0.0-1.x86_64.rpm
sudo alien -i --scripts oracle-instantclient*.rpm
@soulmachine
soulmachine / nfs-proxmox.md
Last active December 2, 2025 11:50
Launch a NFS server on Proxmox

Method 1: NFS server on LXC container

Create a priviledged LXC container with:

mount=nfs,nesting=1

apt update

apt install nfs-kernel-server

@bmaupin
bmaupin / install-oracle-client-ubuntu.md
Last active April 29, 2025 23:57
Install Oracle client on Ubuntu

Reference: https://help.ubuntu.com/community/Oracle%20Instant%20Client

Tested on: Ubuntu 18.04, 20.04

  1. Decide which version of the Oracle client to install

  2. Download the Oracle client packages

@jitsejan
jitsejan / Dockerfile
Last active August 18, 2024 09:53
PySpark, Docker and S3
FROM jupyter/pyspark-notebook
USER root
# Add essential packages
RUN apt-get update && apt-get install -y build-essential curl git gnupg2 nano apt-transport-https software-properties-common
# Set locale
RUN apt-get update && apt-get install -y locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen
# Add config to Jupyter notebook
COPY jupyter/jupyter_notebook_config.py /home/jovyan/.jupyter/