Skip to content

Instantly share code, notes, and snippets.

@techninja1008
techninja1008 / main.rs
Created April 11, 2020 18:40
Jack thread safety testing
use std::sync::mpsc::{sync_channel, SyncSender, Receiver};
use std::thread::{ThreadId, current, sleep};
use std::time::{Duration, Instant};
use std::collections::{HashSet, HashMap};
use jack::{Client, ClientStatus, Control, ProcessScope, Frames};
#[derive(Debug, PartialEq, Eq, Hash, Clone)]
enum NotifType {
AudioProcessing,
@techninja1008
techninja1008 / HttpProxy.go
Last active March 30, 2018 18:32 — forked from yowu/HttpProxy.go
A simple HTTP proxy in Golang, for connecting to kubernetes services
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
"net/url"
version: '2'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
@techninja1008
techninja1008 / fix.user.js
Last active December 31, 2016 18:20
DGS-1224T Fixer Userscript
// ==UserScript==
// @name DGS-1224T Fix
// @namespace http://wensley.eu/
// @version 0.1
// @description Fixes DGS-1224T UI
// @author Danny Wensley
// @match */*
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==