Skip to content

Instantly share code, notes, and snippets.

@mkopa
mkopa / 1.Prerequisites.md
Created November 23, 2016 19:02 — forked from erodewald/1.Prerequisites.md
Reverse proxy on Windows with Apache 2.4 for Couchpotato/Sonarr

###Pre-requisites:

  1. Any version of Windows newer than XP or Server 2003.
  2. A good text editor. I recommend Sublime Text 2.
  3. If you use Sublime Text, you can get very helpful syntax highlighting while editing Apache Conf files by installing Package Control. Once fully installed and SublimeText is restarted, CTRL+SHIFT+P -> Install Package -> ApachConf (enter).
  4. This assumes you have a public domain pointing to your WAN IP. Figure that out from whatismyip.com. If you purchase a domain and use a CNAME or A-record, it can take some time for the DNS changes to propagate. I've seen anywhere from 15 mins to several hours.
  5. Within your router, you must forward port 80 to your LAN IP which hosts Apache.
@mkopa
mkopa / tmux.conf
Created September 19, 2019 17:16 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@mkopa
mkopa / semantic-commit-messages.md
Created October 28, 2019 07:45 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

[Basic]
LBP=41
LC=25
ALC0=1
ALC1=52
ALC2=58
ALC3=64
ALC4=70
ALC5=76
ALC6=82
@mkopa
mkopa / gist:5f93ac125cd7f925dcde9aae72dee50d
Created April 6, 2022 09:19
Get all supported MimeType types (copy and paste the code into your web browser console)
function getSupportedMimeTypes(media, types, codecs) {
const isSupported = MediaRecorder.isTypeSupported;
const supported = [];
types.forEach((type) => {
const mimeType = `${media}/${type}`;
codecs.forEach((codec) => [
`${mimeType};codecs=${codec}`,
`${mimeType};codecs:${codec}`,
`${mimeType};codecs=${codec.toUpperCase()}`,
`${mimeType};codecs:${codec.toUpperCase()}`
@mkopa
mkopa / html-5-microphone-visualizer.markdown
Created April 21, 2022 13:28
HTML 5 Microphone Visualizer
@mkopa
mkopa / html-5-microphone-visualizer.markdown
Created April 24, 2022 13:31
HTML 5 Microphone Visualizer
@mkopa
mkopa / Yaesu FC-30.org
Created September 11, 2022 11:41 — forked from ast/Yaesu FC-30.org
Reverse engineering the Yaesu FC-30 antenna tuner protocol

Reverse engineering the Yaesu FC-30

Notes about the Yaesu FC-30 tuner connected to the FT-891 radio. I have not been able to find any information online at all about the propriatry protocol used, so I’m compiling this from my observations.

The ultimate goal of this project is to connect an Icom AH-4 tuner to Yaesu radios.

Data shown is hex. Data in [brackets] are from tuner. Data without brackets are from radio.

Seems tuning is done in three steps:

Firefox write/read a lot on the disk. This can reduce the performance of other program.

In about:config

Reduce latency of session write

browser.sessionstore.interval to 600000 (1 hours)

This value is in ms.Default is 15000ms (every 15 seconde).

@mkopa
mkopa / install.md
Created October 13, 2023 14:59 — forked from floehopper/install.md
Install rtl-sdr on Raspian on Raspberry Pi
jamesmead@floehopper.local:~$ sudo dd bs=1m if=/Users/jamesmead/Downloads/2015-02-16-raspbian-wheezy.img of=/dev/disk2
pi@raspberrypi ~ $ sudo raspi-config
# Choose option 1 to "Expand Filesystem" - Ensures that all of the SD card storage is available to the OS
# Choose Finish & reboot

pi@raspberrypi ~ $ sudo apt-get update