Skip to content

Instantly share code, notes, and snippets.

View mason-fish's full-sized avatar
🎯
Focusing

Mason Fish mason-fish

🎯
Focusing
View GitHub Profile
#!/bin/bash
if [[ -z "$NGROK_TOKEN" ]]; then
echo "Please set 'NGROK_TOKEN'"
exit 2
fi
if [[ -z "$USER_PASS" ]]; then
echo "Please set 'USER_PASS' for user: $USER"
#!/bin/bash
if [[ -z "$NGROK_TOKEN" ]]; then
echo "Please set 'NGROK_TOKEN'"
exit 1
fi
if [[ -z "$USER_PASS" ]]; then
echo "Please set 'USER_PASS' for user: $USER"

Keybase proof

I hereby claim:

  • I am mason-fish on github.
  • I am m_e_fish (https://keybase.io/m_e_fish) on keybase.
  • I have a public key whose fingerprint is 0B7D BCDD 3C2F F604 6840 9317 1443 6CBB 210E 0BCE

To claim this, I am signing this object:

@mason-fish
mason-fish / api.py
Created June 27, 2016 17:58
Commando
from flask import Flask, render_template, request, send_from_directory, session
from threading import Thread
from flask_socketio import SocketIO, emit, send, join_room, rooms, disconnect
from mysql import connector
cnx = mysql.connector.connect(user='user', password='aLQQLXGQp2rJ4Wy5',
host='173.246.108.142',
port='3306',
database='Project_169',
charset='utf8',