Skip to content

Instantly share code, notes, and snippets.

View Forst's full-sized avatar

Foster Snowhill Forst

View GitHub Profile
@Forst
Forst / build_gqrx.sh
Last active April 19, 2024 15:02
Gqrx macOS build script (including Apple Silicon support)
#!/bin/sh
set -eux
BREW_PREFIX="$(brew --prefix)"
CPU_COUNT="$(sysctl -n hw.ncpu)"
# Homebrew dependencies
brew update
brew install airspy airspyhf boost dylibbundler gnuradio hackrf libbladerf librtlsdr libserialport libsndfile portaudio pybind11 uhd qt@6
@Forst
Forst / crypto.py
Created March 27, 2019 11:30
Домашняя работа по криптографии, Московский политех
#!/usr/bin/env python3
from abc import ABC, abstractmethod
from hashlib import sha256
from math import ceil
from secrets import token_bytes, randbits, randbelow
def bit(value, index):
return (value & (2**index)) >> index
@Forst
Forst / keybase.md
Created April 16, 2015 16:05
keybase.md

Keybase proof

I hereby claim:

  • I am Forst on github.
  • I am forst (https://keybase.io/forst) on keybase.
  • I have a public key whose fingerprint is B65D E21E 46E7 02CC EAE8 485A 1EDF C2BE F93E 367C

To claim this, I am signing this object:

@Forst
Forst / build.sh
Last active October 25, 2022 23:43
Ubuntu ISO with preseed.cfg generation script
#!/bin/bash
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT
# Quit on first error
set -e
# Temporary directory for the build
TMP="/var/tmp/ubuntu-build"
@Forst
Forst / Preferences.sublime-settings
Last active March 3, 2019 11:55
Sublime preferences
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"auto_find_in_selection": true,
"caret_extra_bottom": 0,
"caret_extra_top": 0,
"caret_extra_width": 0,
"close_windows_when_empty": false,
"color_scheme": "Packages/ayu/ayu-dark.tmTheme",
"default_line_ending": "unix",