Skip to content

Instantly share code, notes, and snippets.

View pyaephyohein's full-sized avatar
🐶
Guu Guu Ga Ga

Pyae Phyo Hein(Ou) pyaephyohein

🐶
Guu Guu Ga Ga
View GitHub Profile
## nginx configuration
## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/index.md
##
## Overrides for generated resource names
# See templates/_helpers.tpl
# nameOverride:
# fullnameOverride:
## Labels to apply to all resources
from datetime import date
import email
from dotenv import load_dotenv
import os
import smtplib
import ssl
load_dotenv()
email = os.getenv('email')
password = os.getenv('password')
host = os.getenv('host')
@pyaephyohein
pyaephyohein / accesslog2csv.py
Created November 9, 2021 05:33 — forked from joswr1ght/accesslog2csv.py
Convert Apache/Nginx Unified Log Format to CSV
# accesslog2csv: Convert default, unified access log from Apache, Nginx
# servers to CSV format.
#
# Original source by Maja Kraljic, July 18, 2017
# Modified by Joshua Wright to parse all elements in the HTTP request as
# different columns, December 16, 2019
import csv
import re
@pyaephyohein
pyaephyohein / DNS
Last active February 14, 2020 03:45
###########################################################################
$TTL 3600
@ IN SOA @ enub2.com. sysadmin.enub2.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
IN A 192.168.10.29
@pyaephyohein
pyaephyohein / gist:986d20324a075f550d58abb31ce20aa7
Created February 5, 2020 09:14 — forked from jstrosch/gist:3190568
iptables - delete all rules/chains
#view current chains
$ iptables -L
#remove/flush all rules & delete chains
$ iptables -F
$ iptables -X
$ iptables -t nat -F
$ iptables -t nat -X
$ iptables -t mangle -F
$ iptables -t mangle -X
Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@pyaephyohein
pyaephyohein / md5_hash_decrypt.py
Created November 28, 2019 17:52 — forked from miodeqqq/md5_hash_decrypt.py
Python MD5 decrypt.
# -*- coding: utf-8 -*-
import hashlib
import sys
import time
# Using: ./hash.py hashcode
# For example: ./hash.py 9743a66f914cc249efca164485a19c5c
def timing(f):