Skip to content

Instantly share code, notes, and snippets.

@chasetb
chasetb / subscriptions.yaml
Created October 1, 2024 15:40
ytdl-sub subscriptions file template
# subscriptions.yaml:
# Everything in here can be downloaded using the command:
# ytdl-sub sub subscriptions.yaml
# __preset__ is a place to define global overrides for all subscriptions
__preset__:
overrides:
# Root folder of all ytdl-sub TV Shows
tv_show_directory: "/tv_shows"
tv_show_content_rating_default: "TV-14"
@chasetb
chasetb / config.yaml
Created October 1, 2024 15:38
ytdl-sub config file that better matches the naming convention of Jellyfin
# Bare-bones config. Here are some useful links to get started:
# Walk-through Guide: https://ytdl-sub.readthedocs.io/en/latest/guides/index.html
# Config Examples: https://github.com/jmbannon/ytdl-sub/tree/master/examples
# Prebuilt Presets: https://ytdl-sub.readthedocs.io/en/latest/prebuilt_presets/index.html
# Config Reference: https://ytdl-sub.readthedocs.io/en/latest/config_reference/index.html
#
# The subscriptions in `subscriptions.yaml` uses prebuilt presets which do not require
# any additions to this config. They can be downloaded using the command:
#
# ytdl-sub --config config.yaml sub subscriptions.yaml
@chasetb
chasetb / A chat_logger.py
Last active May 4, 2018 18:58 — forked from DominikSerafin/01_info
Django Google Chat Logger
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 February 28, 2018 20:15
Send a bot message to a Hangouts Chat room
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 January 14, 2018 04:24
Stripe.isDoubleLoaded
(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 November 10, 2017 17:47
Tenable Nessus Agent 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 October 25, 2017 21:29
Datepicker in Modal
{% 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 November 23, 2016 16:37
RDS Error log after Bit9 installer begins to create database tables
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 November 19, 2016 18:00
npm run dev after updating webpack.config.babel.js
$ npm run dev
> [email protected] 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 November 19, 2016 17:57
Updated webpack.config.babel.js with '-loader'
import webpack from 'webpack'
export default {
entry: [
'babel-polyfill',
'./src/index.js'
],
output: {
path: './dist',