Skip to content

Instantly share code, notes, and snippets.

Avatar

techninja1008

View GitHub Profile
@techninja1008
techninja1008 / main.rs
Created Apr 11, 2020
Jack thread safety testing
View main.rs
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 Mar 30, 2018 — forked from yowu/HttpProxy.go
A simple HTTP proxy in Golang, for connecting to kubernetes services
View HttpProxy.go
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
"net/url"
View docker-compose.yml
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 Dec 31, 2016
DGS-1224T Fixer Userscript
View fix.user.js
// ==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==