This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Tool to download conference information from Indico | |
""" | |
import json, argparse, sys, re, logging, os, importlib | |
logger = logging.getLogger(__name__) | |
logging.basicConfig(format='%(levelname)s: %(message)s') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
A script to shift times in a calendar (iCalendar / .ics) files | |
""" | |
from datetime import timedelta | |
import argparse, sys, os, logging | |
logger = logging.getLogger(__name__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A processing script to display waveforms | |
https://gist.github.com/pklaus/d16fcffe335ce520a0eb | |
*/ | |
byte data[]; | |
int a, b; | |
void setup() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This example shows how to call gnuplot from Python | |
It uses Popen() from the subprocess module. | |
The function run_gnuplot() takes care of it and returns the | |
resulting image as bytes. If you run this code on a web server, | |
the result could be returned to the client without storing | |
a file on the disk. In this example it is saved to a file in the end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import math | |
import time | |
from datetime import datetime | |
import ephem | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import sys | |
import os.path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Analyze serial sniffing log files created with jpnevulator. | |
This tool is able to analyze log files created similar to this: | |
stty -F /dev/ttyUSB1 9600 | |
stty -F /dev/ttyUSB2 9600 | |
stty -F /dev/ttyUSB1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Run a multi-threaded single-client SCPI Server implemented in Python. | |
Using a single-client server is sensible for many SCPI servers | |
where state would need to be shared between the multiple clients | |
and thus access to it would need to be made thread-safe. | |
In most cases, this doesn't make sense. Everything is | |
simply much easier when allowing only one client at a time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Zeroconf Discovery for Rigol DS1000Z-series scopes | |
-------------------------------------------------- | |
Documentation worth looking at: | |
* http://lxistandard.org/Documents/Specifications/LXI%20Device%20Specification%202011%20rev%201.4.pdf | |
* http://lxistandard.org/GuidesForUsingLXI/Introducing%20LXI%20To%20Your%20Network%20Administrator%20May%2024_2013.pdf | |
* http://lxistandard.org/GuidesForUsingLXI/LXI_Getting_Started_Guide_May_1_2013.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# <http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2> | |
echo -e "\n\nArch Linux ARM to SD Card" | |
echo -e "for the Raspberry Pi 2" | |
echo -e "(and for the Raspberry Pi 3, if you don't need to use the unofficial arm64 variant)\n\n" | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Download data from a Rigol DS1052E oscilloscope and graph with matplotlib. | |
By Ken Shirriff, http://righto.com/rigol | |
Based on http://www.cibomahto.com/2010/04/controlling-a-rigol-oscilloscope-using-linux-and-python/ | |
by Cibo Mahto. | |
""" |