Skip to content

Instantly share code, notes, and snippets.

View maulanasatyaadi's full-sized avatar
🏠
Working from home

Maulana Satya Adi maulanasatyaadi

🏠
Working from home
  • St. Lintas Barat KM 19, Pagar Bukit, Pesisir Barat, Lampung
View GitHub Profile
#!/usr/bin/bash
while getopts h:f:u:p: option
do
case "${option}"
in
h) HOST=${OPTARG};;
f) FILENAME=${OPTARG};;
u) MYSQL_USER=${OPTARG};;
p) MYSQL_PASSWORD=${OPTARG};;
#!/bin/bash
while getopts u:p:h:d:t: option
do
case "${option}"
in
u) USER=${OPTARG};;
p) PASSWORD=${OPTARG};;
d) DATABASE=${OPTARG};;
h) HOST=${OPTARG};;
import dotenv from 'dotenv'
import express, { json, urlencoded } from 'express'
import process from 'process'
import mysql from 'mysql2'
import csv from 'csv-parser'
import multer from 'multer'
import fs from 'fs'
import path from 'path'
dotenv.config()
@maulanasatyaadi
maulanasatyaadi / Phalcon + Swoole starter.php
Last active December 26, 2019 13:24
This is a script that fuse a Phalcon and Swoole frameworks.
<?php
/**
* Author: Maulana Satya Adi
* Email: maulanasatyaadi@gmail.com
* Description:
* This is a sample script of Phalcon framework that running on top of Swoole HTTP Server
*
* License:
*
* Copyright (c) 2019 Maulana Satya Adi.