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.",
[
{
"name": "Lou Durham",
"company": "CALLFLEX",
"email": "loudurham@callflex.com",
"phone": "+1 (892) 565-3634",
"address": "112 Reeve Place, Unionville, California, 3899"
},
{
"name": "Lucile Williamson",

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
@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`,
@c0bra
c0bra / foo.html
Last active April 26, 2018 15:13
<html>
<body>
<button id="btn">Test</button>
<script>
var btn = document.getElementById('btn');
btn.addEventListener('click', function() {
// "width=800,height=600,toolbar=1,resizable=1,left=-220,top=-4"
window.open('https://google.com', 'TableauAuth', "width=800,height=600,toolbar=1,resizable=1,left=-220,top=-4");
});
</script>