Skip to content

Instantly share code, notes, and snippets.

View racerxdl's full-sized avatar
🔒
Invincible for those who don't have an screwdriver.

Lucas Teske racerxdl

🔒
Invincible for those who don't have an screwdriver.
View GitHub Profile
pi@goes16:~ $ ./benchmark
AGC (block size=131072)
Time spent in work(): 3.994s
Time per block: 1844784ns
Samples per second: 71.050M
Costas (block size=131072)
Time spent in work(): 3.998s
Time per block: 6500052ns
Samples per second: 20.165M
FIR (N=31, block size=131072)
@hdoverobinson
hdoverobinson / osp-build.sh
Last active March 23, 2022 05:43
Builds Open Satellite Project xritdemod and goesdump from source
#!/bin/bash
###AUTHOR###
#Harry Dove-Robinson 12/14/2017
#[email protected]
#https://gist.github.com/hdoverobinson
#https://github.com/hdoverobinson
###CONTENTS OF TARGET_DIR WILL BE CLEARED AT EACH RUN###
TARGET_DIR="/root/osp-build"
@agentsim
agentsim / highsierra_bootable.sh
Created June 10, 2017 02:23
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
@narate
narate / create-hotspot.md
Last active April 15, 2025 08:11
Create Wi-Fi Hotspot on Linux using nmcli

Create a Wi-Fi hotspot on Linux using nmcli

Original post : https://unix.stackexchange.com/a/310699

nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
@compenguy
compenguy / init_lede.sh
Created April 2, 2017 17:59
Super-rough script to generate a UEFI-ready LEDE disk image and boot QEMU with it
#!/bin/bash
LEDE_KERNEL="${HOME}/Downloads/lede-17.01.0-r3205-59508e3-x86-64-vmlinuz"
LEDE_KERNEL_URL="https://downloads.lede-project.org/releases/17.01.0/targets/x86/64/lede-17.01.0-r3205-59508e3-x86-64-vmlinuz"
LEDE_ROOT_IMG_GZ="${HOME}/Downloads/lede-17.01.0-r3205-59508e3-x86-64-combined-ext4.img.gz"
LEDE_ROOT_IMG=""
LEDE_ROOT_IMG_URL="https://downloads.lede-project.org/releases/17.01.0/targets/x86/64/lede-17.01.0-r3205-59508e3-x86-64-generic-rootfs.tar.gz"
QEMU_RAM_MEG="1024"
QEMU_DISK_IMG="${HOME}/sda.img"
@drmpeg
drmpeg / gr-paint.md
Last active February 5, 2025 17:28
How to create high quality gr-paint images.

High Quality Spectrum Painting

A quick tutorial on how to get high quality images from gr-paint and Gqrx.

Spectrum Example

Setup

  • Use a newer version of Gqrx with Ref. level and dB range sliders.
  • Set the FFT size in Gqrx to 32768
@eliquious
eliquious / README.md
Created January 4, 2016 05:01
Golang OpenPGP examples

Building

go build -o goencrypt main.go

Generating Keys

@clarkwinkelmann
clarkwinkelmann / xorg.conf
Last active December 20, 2017 05:49
Headless server with 4x NVIDIA GeForce allowing remote desktop on Display:0 and overclocking via nvidia-settings
# Links
# - http://ubuntuforums.org/showthread.php?t=1832456
# - https://foldingforum.org/viewtopic.php?f=16&t=25075
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 1280 0
Screen 2 "Screen2" 1280 0
Screen 3 "Screen3" 1280 0
@dpryden
dpryden / ClassLoaderLeakExample.java
Created October 20, 2014 00:01
Example of a ClassLoader leak in Java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,
@hyg
hyg / gist:9c4afcd91fe24316cbf0
Created June 19, 2014 09:36
open browser in golang
func openbrowser(url string) {
var err error
switch runtime.GOOS {
case "linux":
err = exec.Command("xdg-open", url).Start()
case "windows":
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
case "darwin":
err = exec.Command("open", url).Start()