Skip to content

Instantly share code, notes, and snippets.

@ericpulvino
ericpulvino / index.html
Created September 26, 2016 00:33
Template for window_open.py flask app...
<!doctype html>
<html>
<title>Window Open?</title>
<head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
@ericpulvino
ericpulvino / window_open.py
Last active September 26, 2016 00:37
Quick flask app to tell me if I can leave my window open...
#!/usr/bin/python
from flask import Flask, render_template
app = Flask(__name__)
import os
import json
import nest
from nest import utils as nest_utils
@ericpulvino
ericpulvino / 99cumulus_defaults.conf
Last active December 14, 2022 01:31
Sysctl Settings for Hosts
# /etc/sysctl.d/99quagga_defaults.conf
# Place this file at the location above and reload the device.
# or run the sysctl -p /etc/sysctl.d/99quagga_defaults.conf
#Required if we're to work as a router
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.lo.rp_filter = 0
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.default.forwarding = 1
@ericpulvino
ericpulvino / vagrant.log
Created May 4, 2016 04:25
vagrant debug output
(eric@xenial1)-(12:24 AM Wed May 04)->
-(12 files, 836Kb)--> cat ./vagrant.log
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_QT_ACCESSIBILITY="1"
INFO global: VAGRANT_OLD_ENV_SESSION_MANAGER="local/xenial1:@/tmp/.ICE-unix/1639,unix/xenial1:/tmp/.ICE-unix/1639"
INFO global: VAGRANT_OLD_ENV_QT_IM_MODULE="ibus"
INFO global: VAGRANT_OLD_ENV_PWD="/home/eric/repos/topology_converter_phone"
INFO global: VAGRANT_OLD_ENV_QT_QPA_PLATFORMTHEME="appmenu-qt5"
#!/usr/bin/python
import sys
import time
import socket
import struct
import logging
import binascii
import subprocess