Skip to content

Instantly share code, notes, and snippets.

View c0bra's full-sized avatar

Brian Hann c0bra

View GitHub Profile
@c0bra
c0bra / index.js
Created January 29, 2024 15:22
Attempt: Twilio->Deepgram live streaming transcription in Node.js
import fs from 'fs'
import Stream from 'node:stream'
import WaveFile from 'wavefile';
import { WebSocketServer } from 'ws';
import { createClient, LiveTranscriptionEvents } from '@deepgram/sdk';
const deepgram = createClient(process.env.DEEEPGRAM_API_KEY);
process.on('unhandledRejection', (reason, p) => {
console.error(reason, 'Unhandled Rejection at Promise', p);
@c0bra
c0bra / test.html
Last active August 30, 2023 16:12
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>XML To HTML using codebeautify.org</title>
</head>
<body>
https://www.myswitchboard.com/blog <br/>
https://www.myswitchboard.com/blog/new-texting-tech <br/>
https://www.myswitchboard.com/blog/new-texting-tech-t7key <br/>
@c0bra
c0bra / index.html
Created August 23, 2023 14:32
VIA Privacy Policy
<html>
<body>
<style>
[data-custom-class='body'], [data-custom-class='body'] * {
background: transparent !important;
}
[data-custom-class='title'], [data-custom-class='title'] * {
font-family: Arial !important;
font-size: 26px !important;
color: #000000 !important;
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"meta": { "theme": "fresh" },
"basics": {
"name": "Brian Hann",
"label": "Lead Software Architect / DevOps Manager",
"image": "",
"email": "brian.hann@gmail.com",
"phone": "913.205.5068",
"summary": "I'm Brian Hann, a Lead Software Architect and DevOps Manager in Kansas City. I'm a life-long learner and I enjoy taking on new challenges and trying new things. I have a deep understanding of software architecture and I specialize in creating comprehensive solutions to large-scale business problems. In my spare time, I love to play guitar, cook, and spend time outdoors with my family.",
@c0bra
c0bra / autoagegate.user.js
Created March 15, 2012 16:14
Greasemonkey script to auto-bypass brewing company website age gates
// ==UserScript==//
// @name Brewing Company Site Auto Age Gate
// @namespace https://gist.github.com/2045030
// @description Automatically bypass brewing company website age gates
// @include http://*newbelgium.com*
// @include http://*stonebrew.com*
// @include http://*boulevard.com*
// @include http://*sierranevada.com*
// @include http://*samueladams.com*
// @include http://*lagunitas.com*
[
{
"name": "Lou Durham",
"company": "CALLFLEX",
"email": "loudurham@callflex.com",
"phone": "+1 (892) 565-3634",
"address": "112 Reeve Place, Unionville, California, 3899"
},
{
"name": "Lucile Williamson",
@c0bra
c0bra / compile.js
Last active November 18, 2019 17:05
Testing Svelte with Jest
const rollup = require('rollup');
const esm = require('esm');
const { config } = esm(module)('../rollup.config');
function generateOptions(filePath, name) {
return {
input: { input: filePath, plugins: config.plugins },
output: {
file: `./dist/test/${name}.js`,

Keybase proof

I hereby claim:

  • I am c0bra on github.
  • I am bhann (https://keybase.io/bhann) on keybase.
  • I have a public key ASAwqx61rMOLOqsepdes31POSsH4zNm0dVKS14FcfYmeaAo

To claim this, I am signing this object:

import * as pulumi from '@pulumi/pulumi';
import * as cloud from '@pulumi/cloud';
import * as aws from '@pulumi/aws';
import * as awsx from '@pulumi/awsx';
const config = new pulumi.Config('seniorvu');
const dbPassword = config.require('zabbixDbPassword');
let vpc = awsx.ec2.Vpc.getDefault();
---------------------------------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---------------------------------------|----------|----------|----------|----------|-------------------|
All files | 7.57 | 2.83 | 5.02 | 7.38 | |
node_modules/is-dom | 50 | 0 | 0 | 50 | |
index.js | 50 | 0 | 0 | 50 | 4 |
node_modules/popper.js/dist/esm | 4.9 | 2.51 | 3.64 | 4.65 | |
popper.js | 4.9 | 2.51 | 3.64 | 4.65 |... 2467,2472,2477 |
node_modules/svelte | 2.67 | 0 | 1.85 | 2.37 | |
shared.js | 3.67 | 0 | 2.5 | 3