All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
racerxdl's Avatar

racerxdl / fulldisk2jpg.py

0 likes
0 forks
1 files
Last active 9 months ago
LRIT Full Disk Image converter to JPEG
1 #!/usr/bin/env python
2
3 '''
4 Needs Pillow, xrit and numpy
5 pip install xrit Pillow
6
7 Numpy is better to be installed using distro packages.
8 '''
9
10 import os, math
racerxdl's Avatar

racerxdl / emwin.py

0 likes
0 forks
1 files
Last active 9 months ago
EMWIN Stream decoder
1 #!/usr/bin/env python
2
3 import time
4 from zipfile import ZipFile
5
6 numfiles = 20
7 c = 0
8
9 def parseEMWINHeader(data):
racerxdl's Avatar

racerxdl / snesonardo.ino

0 likes
0 forks
1 files
Last active 9 months ago
SNESONARDO
1 #include <Joystick.h>
2
3 // Microseconds
4 #define LATCH_TIME 12
5 #define MEASURE_DELAY 6
6
7 // Leonardo Pins
8 #define CLOCK 2
9 #define LATCH 3
10 #define P1_DATA 4
racerxdl's Avatar

racerxdl / byteCodeGen.java

0 likes
0 forks
1 files
Last active 9 months ago
1 public static byte[] generateByteCode(List<Command> commands, Base64Converter converter) {
2 final ByteArrayOutputStream payload = new ByteArrayOutputStream(128);
3
4 // Initialize the printer: Clear buffers and reset states
5 for (int i=0; i<40; i++) {
6 payload.write(0x00);
7 payload.write(Constants.ESC);
8 payload.write('@');
9 }
racerxdl's Avatar

racerxdl / trackdish.ino

0 likes
0 forks
1 files
Last active 9 months ago
IMU for Tracking Dish
1 #include <EEPROM.h>
2 #include "I2Cdev.h"
3 #include "MPU6050_6Axis_MotionApps20.h"
4 #if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
5 #include "Wire.h"
6 #endif
7 #include <avr/wdt.h>
8
9 // Amount of readings used to average, make it higher to get more precision
10 // but sketch will be slower (default:1000)
racerxdl's Avatar

racerxdl / babeld.conf

0 likes
0 forks
3 files
Last active 9 months ago
Babeld on Edison
1 #!/bin/bash
2
3 echo "Setting up Wireless network"
4 /sbin/iwconfig wlan0 mode ad-hoc channel 11 essid "papo-de-sysadmin"
5 /sbin/ip link set up dev wlan0
6 /sbin/ifconfig wlan0 192.168.10.8 netmask 255.255.255.0
7
8 echo "Killing any previous running babeld"
9 kill -9 `cat /var/run/babeld.pid 2>>/dev/null` 2>>/dev/null
10 rm /var/run/babeld.pid 2>>/dev/null
racerxdl's Avatar

racerxdl / WaveReader.cs

0 likes
0 forks
2 files
Last active 9 months ago
1 using RTLSharp.Audio.Structs;
2 using RTLSharp.Types;
3 using System;
4 using System.IO;
5
6 namespace RTLSharp.Audio {
7 public class WaveStream {
8 private BinaryReader _reader;
9 private string _fileName;
10 private long _readPosition;
racerxdl's Avatar

racerxdl / decompress.cpp

0 likes
0 forks
1 files
Last active 9 months ago
LRIT Windows Decompressor (using LritRice.lib)
1 #include <stdio.h>
2 #include <stdint.h>
3
4 #include <mutex>
5 #include <atomic>
6 #include <thread>
7 #include <cstdint>
8 #include <iostream>
9 #include <vector>
10 #include <exception>
racerxdl's Avatar

racerxdl / channelmuxer.py

0 likes
0 forks
3 files
Last active 9 months ago
GOES Packet Assemble
1 #!/usr/bin/env python
2 import os, struct
3
4 '''
5 File Type Codes:
6 0 - Image
7 2 - Text
8 130 - DCS Data
9 '''
racerxdl's Avatar

racerxdl / lrit_demod.grc

0 likes
0 forks
1 files
Last active 9 months ago
GOES LRIT Demodulator (BPSK demod) - GNU Radio Companion
1 <?xml version='1.0' encoding='utf-8'?>
2 <?grc format='1' created='3.7.10'?>
3 <flow_graph>
4 <timestamp>Wed Oct 12 19:09:50 2016</timestamp>
5 <block>
6 <key>options</key>
7 <param>
8 <key>author</key>
9 <value>Lucas Teske</value>
10 </param>
Newer Older

Powered by Opengist ⋅ Load: 165ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文