Skip to content

Instantly share code, notes, and snippets.

View imatrixme's full-sized avatar
🎯
Focusing

matrixme imatrixme

🎯
Focusing
View GitHub Profile
Username: Matthias Rhein
License Key: DwBkz/YGssdAFYguB3cM4fCdrQTSfV8S3NkcAO3pInQQAFJ4LPJxGlOzDFTOECbdZt003YTvbejzqcOyyySmegMABwwBAAEADwBkz
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
Email: [email protected]
SN: GAWAE-FCWQ3-P8NYB-C7GF7-NEDRT-Q5DTB-MFZG6-6NEQC-CRMUD-8MZ2K-66SRB-SU8EW-EDLZ9-TGH3S-8SGA
@imatrixme
imatrixme / gist:6f8b403127b034c2ab3be5776c9b1e7d
Created September 4, 2023 01:47 — forked from rgcottrell/gist:5b876d9c5eea4c9e411c
An FM Synthesizer in Swift using AVAudioEngine
import AVFoundation
import Foundation
// The maximum number of audio buffers in flight. Setting to two allows one
// buffer to be played while the next is being written.
private let kInFlightAudioBuffers: Int = 2
// The number of audio samples per buffer. A lower value reduces latency for
// changes but requires more processing but increases the risk of being unable
// to fill the buffers in time. A setting of 1024 represents about 23ms of
@imatrixme
imatrixme / Runtime.swift
Created June 19, 2023 07:34 — forked from codelynx/Runtime.swift
[Swift] To retrieve classes at runtime which conforms to a protocol or to retrieve subclasses of a given class
//
// Runtime.swift
// Swift Runtime [Swift 4]
//
// The MIT License (MIT)
//
// Copyright (c) 2016 Electricwoods LLC, Kaz Yoshikawa.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@imatrixme
imatrixme / vpnserver.sh
Created December 20, 2016 15:02 — forked from kevinzhow/vpnserver.sh
OnClickVPNServer
#!/usr/bin/env bash
echo 'deb http://shadowsocks.org/debian wheezy main' >> /etc/apt/sources.list
# Pre-requisites
sudo apt-get -y update
sudo apt-get -y install pptpd
sudo apt-get -y install fail2ban
sudo apt-get -y install shadowsocks-libev