Skip to content

Instantly share code, notes, and snippets.

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

John Curcio johncurcio

🏠
Working from home
View GitHub Profile
<?php
class Db
{
private $_connection;
private static $_instance; //The single instance
private $_host = DB_HOST;
private $_username = DB_USER;
private $_password = DB_PASSWORD;
private $_database = DB_DB;
@hungbang
hungbang / clean-docker.sh
Created August 8, 2019 04:13 — forked from marioharper/clean-docker.sh
Stop all docker processes, remove all containers, remove all images
# stop all processes
docker stop $(docker ps -aq)
# remove all containers
docker rm $(docker ps -aq)
# remove all images
docker rmi $(docker images -aq)
# delete all volumes