Skip to content

Instantly share code, notes, and snippets.

View kjmancuso's full-sized avatar
🎉
Yeah! Let's party!

Kevin Mancuso kjmancuso

🎉
Yeah! Let's party!
  • San Antonio, TX
View GitHub Profile
#!/home/kevin/.virtualenvs/ptp/bin/python
import sys
import MySQLdb as mdb
import requests
cursor_file = sys.path[0] + '/movie_cursor.txt'
DB_HOST = 'kodi'
@kjmancuso
kjmancuso / BX1500G.txt
Last active May 31, 2016 21:50
apcaccess
root@tera:~# apcaccess
APC : 001,037,0948
DATE : 2016-05-31 16:49:44 -0500
HOSTNAME : tera
VERSION : 3.14.10 (13 September 2011) debian
UPSNAME : tera
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2016-05-18 09:00:30 -0500
ubnt@ubnt:~$ show configuration
firewall {
name WAN_IN {
default-action drop
description "WAN to internal"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
$ egrep -v -- '-!-|---|\[' \#guns.log | awk '{print $3}' | sort | uniq | sed -e '/^*$/D' | while read line ; do DOT=`grep $line \#guns.log | grep -o '\.' | wc -l` ; TOTAL=`grep $line \#guns.log | grep -o . | wc -l` ; echo $line - $TOTAL - $DOT - $(echo "scale=4; $DOT/$TOTAL" | bc); done
17SACYNK3 - 346 - 10 - .0289
_688as - 1708 - 25 - .0146
AfterDark - 1459 - 5 - .0034
Amalynn - 12229 - 179 - .0146
amyliz - 146808 - 1641 - .0111
amyliz_aggie - 8853 - 154 - .0173
amyliz-mobile - 20298 - 160 - .0078
arcanine - 1866 - 22 - .0117
argentum - 1147 - 41 - .0357
lithium:work kevin$ curl localhost:9222/json
[ {
"description": "",
"devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:9222/devtools/page/5A26DF4E-D3EA-4008-9CBA-3554EA0AD50F",
"id": "5A26DF4E-D3EA-4008-9CBA-3554EA0AD50F",
"title": "New Tab",
"type": "page",
"url": "chrome://newtab/",
"webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/5A26DF4E-D3EA-4008-9CBA-3554EA0AD50F"
}, {
@kjmancuso
kjmancuso / Sept 29 - Oct 3
Created September 29, 2014 22:54
October 4kings soups
Monday Black Bean
Tuesday German Potato
Wednesday Chicken and Dumplings
Thursday Creamy Asparagus
Friday Mushroom Bisque

Keybase proof

I hereby claim:

  • I am kremlinkev on github.
  • I am kjmancuso (https://keybase.io/kjmancuso) on keybase.
  • I have a public key whose fingerprint is 98A1 A201 39BA C161 59E5 2104 C6B7 550B 510E F467

To claim this, I am signing this object:

@kjmancuso
kjmancuso / July 7 - July 11
Last active August 29, 2015 14:01
4 Kings soups
Monday- red beans and rice
Tuesday - chicken noodle
Wednesday- Pozole rojo
Thursday- tomato basil
Friday- Chicken and sausage Gumbo
/*
* Copyright (c) 2014 Kevin Mancuso
* Rights to this code are as documented in doc/LICENSE.
*
*/
#include "atheme.h"
DECLARE_MODULE_V1
(
# -*- coding: utf-8 -*-
import MySQLdb as mdb
import MySQLdb.cursors
import datetime
from flask import Flask, render_template
## DB Conf
dbHost = 'localhost'