Skip to content

Instantly share code, notes, and snippets.

View rednam-ntn's full-sized avatar
🌏

RedNam rednam-ntn

🌏
View GitHub Profile
@rednam-ntn
rednam-ntn / answerfile
Created May 7, 2023 08:16 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@rednam-ntn
rednam-ntn / .zshrc
Created April 1, 2022 02:20 — forked from callumlocke/.zshrc
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".
@rednam-ntn
rednam-ntn / plt_imshow.py
Created October 4, 2021 08:08
matplotlib.pyplot imshow with high resolution
import cv2
import matplotlib.pyplot as plt
from matplotlib import rcParams as mpl_param
mpl_param["figure.dpi"] = 200
img = cv2.imread("sample.png")
plt.imshow(img)