Skip to content

Instantly share code, notes, and snippets.

View marcusmueller's full-sized avatar

Marcus Müller marcusmueller

View GitHub Profile
#!/bin/python2
# -*- encoding: utf-8 -*-
import numpy
from collections import namedtuple
std_t = namedtuple("standards_taps", ("times", "dbs"))
def standard_to_taps(std, time_scale = 10, verbose = False):
tap_id= numpy.array(std.times * time_scale, dtype=numpy.int)
absolutes = 10**(std.dbs/10)
taps = numpy.zeros(max(tap_id)+1, numpy.float32)
@marcusmueller
marcusmueller / wildlife.grc
Created March 13, 2016 12:47
Example Flowgraph power detector
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.10'?>
<flow_graph>
<timestamp>Sun Mar 13 13:40:02 2016</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@marcusmueller
marcusmueller / gdbinit
Created March 14, 2016 17:54 — forked from CocoaBeans/gdbinit
.gdbinit - A user-friendly gdb configuration file
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.9'?>
<flow_graph>
<timestamp>Thu Apr 28 14:05:53 2016</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.10'?>
<flow_graph>
<timestamp>Mon May 16 12:12:27 2016</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@marcusmueller
marcusmueller / banpdasses.grc
Created May 22, 2016 22:49
Bandpass filter demo
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.10'?>
<flow_graph>
<timestamp>Mon May 23 00:34:20 2016</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@marcusmueller
marcusmueller / cepstrogram.py
Last active June 4, 2016 18:02
Cepstrogram hack for Oona
#!/usr/bin/python2
import numpy
from matplotlib import pyplot
import sys
try:
import seaborn
except:
pass ##well, then our graphs aren't as pretty *shrug*
/boot
├── config-4.1.6-201.fc22.x86_64
├── config-4.4.12-200.fc22.x86_64
├── config-4.4.13-200.fc22.x86_64
├── efi [error opening dir]
├── elf-memtest86+-5.01
├── extlinux
│   ├── cat.c32
│   ├── chain.c32
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.10'?>
<flow_graph>
<timestamp>Wed Sep 2 19:43:24 2015</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory