Skip to content

Instantly share code, notes, and snippets.

View async-costelo's full-sized avatar
🚀

4sync async-costelo

🚀
  • Philippines
View GitHub Profile
@async-costelo
async-costelo / ph-pc-pricelist
Created February 7, 2022 11:50
PH-PC Pricelist
JDM - https://tinyurl.com/2p946e6k
PC WORTH - https://tinyurl.com/789v82jy
PC HUB - https://pchubpricelist.online/
PC EXPRESS - https://drive.google.com/file/d/1n-xuetSFmy8cA6CbDIp2_2lWeghlYjSw/view
PC CORNER - https://pccorner.com.ph/downloads/pricelist_lettersize.pdf
PC GILMORE - https://tinyurl.com/yck7s25z
BATTLE PASS TECH PARTS - https://tinyurl.com/2p89cpc8
PC MASTER HUB - https://tinyurl.com/2s357dkn
PC WORX - https://www.pcworx.ph/pcworx_pricelist
@async-costelo
async-costelo / sequelize-schema-file-generator.js
Created October 7, 2020 16:55 — forked from manuelbieh/sequelize-schema-file-generator.js
Automatically generates migration files from your sequelize models
import * as models from "models";
import Sequelize from "sequelize";
import fs from "fs";
delete models.default;
const sequelize = new Sequelize(
'',
'',
'', {
@async-costelo
async-costelo / update-ufw.sh
Created April 19, 2020 07:59 — forked from geekteq/update-ufw.sh
update dynamic IP in UFW ssh access
#!/bin/bash
HOSTNAME=dynamic.domain.com
LOGFILE=$HOME/ufw.log
Current_IP=$(host $HOSTNAME | head -n1 | cut -f4 -d ' ')
if [ ! -f $LOGFILE ]; then
/usr/sbin/ufw allow from $Current_IP to any port 22 proto tcp
echo $Current_IP > $LOGFILE
else
@async-costelo
async-costelo / class.database.php
Last active June 27, 2018 04:34 — forked from jonashansen229/class.database.php
PHP OOP Database class using MySQLI and Singleton pattern. Only one instance of the class will be made, this requires less memory.
<?php
class DB {
private $connection;
private static $_instance;
private $dbhost = ""; // Ip Address of database if external connection.
private $dbuser = ""; // Username for DB
private $dbpass = ""; // Password for DB
private $dbname = ""; // DB Name