Skip to content

Instantly share code, notes, and snippets.

View jynik's full-sized avatar

Jon Szymaniak jynik

View GitHub Profile
@jynik
jynik / cpu_performance.sh
Created April 1, 2014 04:18
Set all CPU frequency scaling governors to 'performance'
#!/bin/sh
#
# Set frequency scaling governer to 'performance' on all cores
set -e
GOVERNOR=performance
SYS_PATH=/sys/devices/system/cpu
for cpu in `ls $SYS_PATH | grep 'cpu[0-9]\+'`; do
CPU_SCALING_GOVERNOR=$SYS_PATH/$cpu/cpufreq/scaling_governor
current=`cat $CPU_SCALING_GOVERNOR`
echo "$cpu is currently '$current', setting to 'performance'"
@jynik
jynik / bladerf_dc_iq_corr.py
Last active October 9, 2024 07:47
bladeRF: manual DC Offset and IQ Imbalance correction
#!/usr/bin/python2
#!/usr/bin/env python2
#
# This script puts the bladeRF into an RF loopback mode, transmitting
# a vector at an offset from the RX frequency. The resulting image may be used
# to manually dial in RX-side IQ imbalance correction. Sliders to minimize the RX
# DC offset are also included.
#
# License: GPLv3
#