Skip to content

Instantly share code, notes, and snippets.

Chase Thompson-Baugh chasetb

View GitHub Profile
@chasetb
chasetb / A chat_logger.py
Last active May 4, 2018 — forked from DominikSerafin/A slack_logger.py
Django Google Chat Logger
View A chat_logger.py
from django.conf import settings
import requests
import json
from copy import copy
from django.utils.log import AdminEmailHandler
from django.views.debug import ExceptionReporter
class ChatExceptionHandler(AdminEmailHandler):
# replacing default django emit (https://github.com/django/django/blob/master/django/utils/log.py)
@chasetb
chasetb / hangouts_chat_bot.py
Created Feb 28, 2018
Send a bot message to a Hangouts Chat room
View hangouts_chat_bot.py
import requests
from json import dumps
def chat_message(url, name, avatar_url, message):
bot_message = {
'sender': {
'displayName': name,
'avatarUrl': avatar_url
},
@chasetb
chasetb / console.log
Created Jan 14, 2018
Stripe.isDoubleLoaded
View console.log
(index):3 POST https://api.stripe.com/v1/tokens 400 (Bad Request)
c @ (index):3
e @ (index):3
a @ (index):3
Stripe.isDoubleLoaded.Stripe.xhr @ (index):3
a._rawRequest @ (index):2
a.request @ (index):2
b.create @ (index):2
c.createToken @ (index):2
a._channelListener @ (index):2
@chasetb
chasetb / install.log
Created Nov 10, 2017
Tenable Nessus Agent Install Log
View install.log
================================================================================
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: User picked Standard Install
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: Choices selected for installation:
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: Upgrade: "Tenable Nessus Agent"
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: Upgrade: "(null)"
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: .NessusAgent.pkg : com.tenablesecurity.NessusAgent.Preferences : 1.0.0
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: Install: "(null)"
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: ================================================================================
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: It took 0.00 seconds to summarize the package selections.
Nov 10 10:45:48 Chases-Test-Mac-mini Installer[74791]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
@chasetb
chasetb / detail.html
Created Oct 25, 2017
Datepicker in Modal
View detail.html
{% block content %}
<button class="btn btn-primary waves-effect waves-light" data-trigger="hover" data-toggle="modal"
data-target="#bulkEnrollModal">
Enroll
</button>
{% endblock content %}
{% block modal %}
<div class="modal fade right" id="bulkEnrollModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" data-backdrop="false">
<div class="modal-dialog modal-full-height modal-right modal-notify modal-info" role="document">
@chasetb
chasetb / ERROR.log
Created Nov 23, 2016
RDS Error log after Bit9 installer begins to create database tables
View ERROR.log
2016-11-21 12:09:55.61 Server Microsoft SQL Server 2014 - 12.0.4422.0 (X64)
Jul 27 2015 16:56:19
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
2016-11-21 12:09:55.61 Server UTC adjustment: -7:00
2016-11-21 12:09:55.61 Server (c) Microsoft Corporation.
2016-11-21 12:09:55.61 Server All rights reserved.
2016-11-21 12:09:55.61 Server Server process ID is 3816.
2016-11-21 12:09:55.61 Server System Manufacturer: 'Xen', System Model: 'HVM domU'.
@chasetb
chasetb / gist:9d337955885d1e0d7f0394f825d4a0c7
Created Nov 19, 2016
npm run dev after updating webpack.config.babel.js
View gist:9d337955885d1e0d7f0394f825d4a0c7
$ npm run dev
> pokemongo-webspoof@1.2.1 dev /Users/chase/src/public/iam4x/pokemongo-webspoof
> electron main.js | NODE_ENV=development webpack --config webpack.config.babel.js --watch
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
@chasetb
chasetb / webpack.config.babel.js
Created Nov 19, 2016
Updated webpack.config.babel.js with '-loader'
View webpack.config.babel.js
import webpack from 'webpack'
export default {
entry: [
'babel-polyfill',
'./src/index.js'
],
output: {
path: './dist',
@chasetb
chasetb / gist:4fcd320b88c6c87ce3bfdc3a3b51644d
Created Nov 19, 2016
Attempting to run latest webspoof
View gist:4fcd320b88c6c87ce3bfdc3a3b51644d
$ npm run dev
> pokemongo-webspoof@1.2.1 dev /Users/chase/src/public/iam4x/pokemongo-webspoof
> electron main.js | NODE_ENV=development webpack --config webpack.config.babel.js --watch
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
View gist:17e77f8835d3305bb9ccc774d2a414e8
chase$ autopkg run AdobeFlashPlayer.jss --verbose
Processing AdobeFlashPlayer.jss...
AdobeFlashURLProvider
AdobeFlashURLProvider: Found URL http://fpdownload.macromedia.com/get/flashplayer/pdc/21.0.0.242/install_flash_player_osx.dmg
URLDownloader
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Users/chase/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/downloads/AdobeFlashPlayer.dmg
EndOfCheckPhase
CodeSignatureVerifier
CodeSignatureVerifier: Mounted disk image /Users/chase/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/downloads/AdobeFlashPlayer.dmg
You can’t perform that action at this time.