Skip to content

Instantly share code, notes, and snippets.

John Ott jbott

Block or report user

Report or block jbott

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fluent-0.14-postgres-with-ms-accuracy.conf
@type http
port 9880
<filter **>
@type stdout
<match **>
View relays.ino
void setup() {
// put your setup code here, to run once:
for (int i = 2; i < 11; i++) {
digitalWrite(i, HIGH);
void loop() {
// put your main code here, to run repeatedly:
View yun_mqtt.ino
Basic MQTT example
This sketch demonstrates the basic capabilities of the library.
It connects to an MQTT server then:
- publishes "hello world" to the topic "outTopic"
- subscribes to the topic "inTopic", printing out any messages
it receives. NB - it assumes the received payloads are strings not binary
It will reconnect to the server if the connection is lost using a blocking
View emp_table.txt
group: H01
emp = {
id:number, salary:number
12345, 100
99999, 200
View nginx_caching.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/;
events {
worker_connections 1024;
View vimrc
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
View Install Miniconda for Python 2.7 on
  1. Download latest Miniconda for Python 2.7
  1. Open terminal

  2. Change to download folder location

jbott /
Last active Jun 12, 2018
De/construct ubnt discovery packets. Useful for spoofing ubnt discovery packets when on a VPN because this AmpliFi Wifi app is dumb and doesn't let you specify an IP address to connect to.
De/construct ubnt discovery packets
from base64 import b64decode, b64encode
from enum import IntEnum

Keybase proof

I hereby claim:

  • I am jbott on github.
  • I am jbott ( on keybase.
  • I have a public key ASAFNpW_jSPXfcC0WKxhCBfQ0UCQUtBqVfZPxhhbBXTGrwo

To claim this, I am signing this object:

You can’t perform that action at this time.