Skip to content

Instantly share code, notes, and snippets.

View nasutionam's full-sized avatar
🐈
meow meow

MuhammadAsriN nasutionam

🐈
meow meow
  • Indonesia
View GitHub Profile
@nasutionam
nasutionam / .env
Created August 16, 2021 09:41 — forked from itsprdp/.env
Golang MySQL ORM Example
MYSQL_USER="root"
MYSQL_PASSWORD=""
MYSQL_DBNAME="gorm_test"
MYSQL_PROTOCOL="tcp"
MYSQL_HOST="127.0.0.1"
MYSQL_PORT="3306"
@nasutionam
nasutionam / method_chaining.py
Created November 16, 2018 08:28 — forked from bagrow/method_chaining.py
A small example of method chaining/cascading in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# method_chaining.py
# Jim Bagrow
# Last Modified: 2016-12-05
"""
Method chaining (or cascading) is a technique for making many calls to an
object with less code. Each method should return a reference to the object
@nasutionam
nasutionam / nginx.conf
Created August 30, 2018 14:38 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@nasutionam
nasutionam / letsencrypt-nginx-centos.md
Created August 30, 2018 14:37 — forked from masasdani/letsencrypt-nginx-centos.md
letsencyript SSL nginx proxy centos 7

Install Letsencrypt Nginx Centos 7

install certbot

  sudo yum install epel-release
  sudo yum update
  sudo yum install certbot

install nginx

  sudo yum install nginx

sudo systemctl start nginx

@nasutionam
nasutionam / crud.py
Created July 31, 2018 15:02 — forked from alessandrocucci/crud.py
MySQL CRUD Operations using Python
#!/usr/bin/env python
'''
MySQL CRUD (Create Retrieve Update Delete) Operations using Python
'''
__author__ = "Alessandro Cucci"
__license__ = "MIT"
__version__ = "0.0.1"
__email__ = "[email protected]"
__status__ = "Development"