Skip to content

Instantly share code, notes, and snippets.

View minhnguyenvan95's full-sized avatar
πŸ˜†

Minh Nguyen minhnguyenvan95

πŸ˜†
View GitHub Profile
@pantsel
pantsel / docker-compose.yml
Last active October 2, 2025 02:21
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active December 4, 2025 10:03
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
#!/usr/bin/env python
'''Crop an image to just the portions containing text.
Usage:
./crop_morphology.py path/to/image.jpg
This will place the cropped image in path/to/image.crop.png.
For details on the methodology, see
@wojteklu
wojteklu / clean_code.md
Last active December 12, 2025 01:36
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@tranzium
tranzium / autoview-syntax.txt
Last active June 9, 2025 16:42
TradingView can now become automated trading.
---------- Usage
The syntax created by these parameters is placed in an alert's description on TradingView
to be utilized by Autoview, a Chrome Extension.
Autoview: https://chrome.google.com/webstore/detail/autoview/okdhadoplaoehmeldlpakhpekjcpljmb
> Website: https://autoview.with.pink
> Help: https://use.autoview.with.pink
> Discord: https://discordapp.com/invite/BFz8VPn
TradingView: https://tradingview.go2cloud.org/aff_c?offer_id=2&aff_id=1187
@andrioli
andrioli / README.md
Created November 22, 2014 22:28
JaCoCo offline instrumentation command-line support

This is a general purpose Ant build file that execute JaCoCo offline instrumentation.

Requirement: Just create a environment variable JACOCO_LIBS that point to a directory with the JaCoCo jar files.

There is also two BASH scripts to help setting the necessary build variables. Execute the BASH script with -h option for more information.