Skip to content

Instantly share code, notes, and snippets.

@mssio
mssio / mysql_cheat_sheet.md
Created September 24, 2024 02:56 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@mssio
mssio / drive-format-ubuntu.md
Created May 27, 2024 06:37 — forked from keithmorris/drive-format-ubuntu.md
Partition, format, and mount a drive on Ubuntu
The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog
short string
short string
short string
short string
short string
short string
short string
@mssio
mssio / run-multiple-docker-containers-in-coreos-cluster.md
Created November 13, 2014 04:46
Step By Step Running Multiple Docker Container in Core OS Cluster

Step By Step Running Multiple Docker Container in Core OS Cluster

  1. Create docker image for Node App (use this as reference for Dockerfile)
  2. Push the Node App image to Docker Hub
  3. Ensure that fleetctl is running and working from your local shell command
  4. Create new Node service template file (use this as reference for [email protected])
  5. Create docker image for Nginx load balancer (follow this tutorial to create nginx load balancer) 
  6. Push the Nginx image to Docker Hub
  7. Create new Nginx service template file [(use this as reference for [email protected])](https://gist.github.com/mssio/1b949d0952aa
@mssio
mssio / coreos-nginx-load-balancer.md
Last active March 1, 2016 19:32
Nginx Load Balancer Service For Core OS

#Nginx Load Balancer Service For Core OS

Create a directory to manage using fleetctl for this service:

$ mkdir static

Create this file in static/nginx_lb.service

@mssio
mssio / coreos-node-service.md
Last active August 29, 2015 14:09
Multiple Node Service Template for Core OS

#Multiple Node Service Template for Core OS

Create 2 directory to manage using fleetctl for this service:

$ mkdir {templates,instances}

Create this file in templates/[email protected]

@mssio
mssio / dockerfile-node-app.md
Last active November 28, 2018 19:56
Dockerfile for Node App

#Dockerfile for Node App

Here is sample dockerfile for a basic express app

FROM ubuntu:14.04

RUN apt-get update
RUN apt-get install -qy curl
RUN curl -sL https://deb.nodesource.com/setup | sudo bash -