Skip to content

Instantly share code, notes, and snippets.

View AB9IL's full-sized avatar
🎯
Focusing

Philip Colllier AB9IL

🎯
Focusing
View GitHub Profile
@AB9IL
AB9IL / gist:60a3ab046f787f3b04e169054aa41238
Last active June 13, 2023 15:31
Wezterm Configuration-Tmux-keybinds
-- Wezterm with Tmux keybinds
-- https://gist.github.com/AB9IL/60a3ab046f787f3b04e169054aa41238
-- Pull in the wezterm API
local wezterm = require 'wezterm';
return {
default_prog = default_prog,
hide_tab_bar_if_only_one_tab = true,
-- Do not hold on exit by default.
-- Because the default 'CloseOnCleanExit' can be annoying when exiting with
-- Ctrl-D and the last command exited with non-zero: the shell will exit
@AB9IL
AB9IL / wezterm-minimal.lua
Last active June 13, 2023 15:32
Wezterm Configuration-minimalist
--minimalist Wezterm config
--https://gist.github.com/AB9IL/7650164e753d786ef4c7ee066e847ca5
local wezterm = require 'wezterm';
return {
default_prog = default_prog,
hide_tab_bar_if_only_one_tab = true,
exit_behavior = 'Close',
term = 'xterm-256color',
color_scheme = 'Pro',
window_frame = {
@AB9IL
AB9IL / alacritty.yml
Created May 29, 2023 22:10
Alacritty Configuration
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@AB9IL
AB9IL / parabola.py
Last active April 23, 2022 15:58
A Python script which creates plots useful for building parabolic reflectors.
#!/usr/bin/python3
# Copyright (c) by Philip Collier, github.com/AB9IL
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version. There is NO warranty; not even for
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
import matplotlib.pyplot as plt
@AB9IL
AB9IL / livespec.py
Last active December 10, 2020 11:24 — forked from boylea/livespec.py
pyqtgraph live running spectrogram from microphone
import numpy as np
import pyqtgraph as pg
from matplotlib import cm
import pyaudio
from PyQt5 import QtCore, QtGui
FS = 48000 #Hz
CHUNKSZ = 1024 #samples
class MicrophoneRecorder():