Skip to content

Instantly share code, notes, and snippets.

View senojsitruc's full-sized avatar

Curtis Jones senojsitruc

View GitHub Profile
@senojsitruc
senojsitruc / xfer_from_bedrock_to_d1.sh
Last active November 30, 2023 12:57
Migrate from SQLite (Bedrock) to Cloudflare D1
#!/bin/bash
# List of hard-coded table names
tables=("table1" "table2")
# Iterate over the table names
for table in "${tables[@]}"; do
# Output file name
file_name="output-$table.sql"
@senojsitruc
senojsitruc / CMCWebRtcClient.swift
Last active September 19, 2022 22:56
I've migrated off WebRTC for Streamie's (streamieapp.com) remote streaming functionality. This is the main Swift class that wrapped the WebRTC framework for use in Streamie.
//
// CMCWebRtcClient.swift
// Streamie
//
// Created by Curtis Jones on 2022.02.21.
// Copyright © 2022 Symphonic Systems, Inc. All rights reserved.
//
// ----------------------------------------------------------------------------
//
// https://github.com/stasel/WebRTC-iOS/blob/main/WebRTC-Client-App/Sources/Services/WebRTCClient.swift
@senojsitruc
senojsitruc / haproxy.cfg
Created September 4, 2022 02:29 — forked from sourcec0de/haproxy.cfg
Here's a sample WORKING haproxy config for websockets / socketio. We were able to get socketio working on an Amazon ELB with just one node, but when we added multiple nodes, we saw weird client issues. So, we decided to use HAProxy on Ubuntu 12.04 and spent significant time trying to get just the right configuration (haproxy.cfg). Note though th…
global
#debug
#daemon
log 127.0.0.1 local0
defaults
log global
option httplog
frontend unsecured *:80