Skip to content

Instantly share code, notes, and snippets.

View bonaxcrimo's full-sized avatar
🎯
Focusing

bona tua bonaxcrimo

🎯
Focusing
View GitHub Profile
@bonaxcrimo
bonaxcrimo / docker_wordpress.md
Created March 8, 2020 13:30 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@bonaxcrimo
bonaxcrimo / app.js
Created December 13, 2016 02:36 — forked from bingeboy/app.js
Upload and display image with NodeJS and Express.
/*
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, common = require('./routes/common')
, fs = require('fs')
, http = require('http')
, util = require('util')
@bonaxcrimo
bonaxcrimo / passport.js
Created December 13, 2016 02:33 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',