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 / rotate.go

0 likes
0 forks
1 files
Last active 9 months ago
1
2 package main
3 var constellationLut []map[byte]byte
4
5 var constellationLut []map[byte]byte
6
7 func rotateByte(v byte, n int, conj bool) byte {
8 byteData := make([]int, 8)
9 outByteData := make([]int, 8)
racerxdl's Avatar

racerxdl / bash.generate.random.alphanumeric.string.sh

0 likes
0 forks
1 files
Last active 9 months ago
shell/bash generate random alphanumeric string
1 #!/bin/bash
2 # bash generate random alphanumeric string
3 #
4
5 # bash generate random 32 character alphanumeric string (upper and lowercase) and
6 NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
7
8 # bash generate random 32 character alphanumeric string (lowercase only)
9 cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
racerxdl's Avatar

racerxdl / decoder-with-manchester.py

0 likes
0 forks
2 files
Last active 9 months ago
Sik Radio / RTBBOX Packet Decoder
1 #!/usr/bin/env python
2
3 # 64 bit preamble (16 bytes)
4 # Reserved Reserved txdtrtscale enphpwdn manppol enmaninv enmanch enwhite
5 # EZRADIOPRO_MODULATION_MODE_CONTROL_1 = 0x0D = 0b00 001101
6 # trclk[1] trclk[0] dtmod[1] dtmod[0] eninv fd[8] modtyp[1] modtyp[0]
7 # EZRADIOPRO_HEADER_CONTROL_2IOPRO_MODULATION_MODE_CONTROL_2 = 0x23 = 0b00100011
8 # EZRADIOPRO_HEADER_CONTROL_2 = EZRADIOPRO_HDLEN_2BYTE | EZRADIOPRO_SYNCLEN_2BYTE
9 # EZRADIOPRO_DATA_ACCESS_CONTROL = EZRADIOPRO_ENPACTX | EZRADIOPRO_ENPACRX | EZRADIOPRO_ENCRC | EZRADIOPRO_CRC_16
10 # Sync Word: 2A D4
racerxdl's Avatar

racerxdl / crc.c

0 likes
0 forks
1 files
Last active 9 months ago
1 #define POLY 0xA001
2 #define POLY 0x8005
3 unsigned crc16(unsigned crc, unsigned char *buf, size_t len)
4 {
5 while (len--) {
6 crc ^= *buf++;
7 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1;
8 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1;
9 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1;
10 crc = crc & 1 ? (crc >> 1) ^ POLY : crc >> 1;
racerxdl's Avatar

racerxdl / ADF4350-test.ino

0 likes
0 forks
1 files
Last active 9 months ago
ADF4350 working sample for ESP8266 (NodeMCU)
1 #include <SPI.h>
2 #include <ADF4350.h>
3
4 #define COM_PIN D0
5 ADF4350 PLL(COM_PIN);
6
7 void setup(){
8 SPI.begin();
9 SPI.setClockDivider(SPI_CLOCK_DIV4);
10 SPI.setDataMode(SPI_MODE0);
racerxdl's Avatar

racerxdl / bowdetie.go

0 likes
0 forks
1 files
Last active 9 months ago
JPSS "bowdetie" script
1 package main
2
3 import (
4 "os"
5 "image"
6 "log"
7 "image/png"
8 "math"
9 "time"
10 "github.com/nfnt/resize"
racerxdl's Avatar

racerxdl / vitdec.cpp

0 likes
0 forks
1 files
Last active 9 months ago
1 #include <stdio.h>
2 #include <SatHelper/sathelper.h>
3
4 #define FRAMEBYTES 8192
5 #define FRAMEBITS (FRAMEBYTES * 8)
6
7 using namespace SatHelper;
8 using namespace std;
9
racerxdl's Avatar

racerxdl / 6A9DA7BE.asc

0 likes
0 forks
2 files
Last active 9 months ago
My GPG Keys
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 These are my GPG Keys:
5
6 GPG: BD29 7EF3 4CCB EB61 B790 06C3 351A 8000 DEAD CE11
7 GPG: 4A90 974B ACE0 A9A6 AF09 B3B1 6C39 C1C1 6A9D A7BE
8 GPG: BD09 9175 6DE8 37F4 08D3 B296 DE7A 51C3 87C9 27EE
9
10 And I'm Lucas Teske :D
racerxdl's Avatar

racerxdl / separatesent.py

0 likes
0 forks
1 files
Last active 9 months ago
1 #!/usr/bin/env python
2
3 import os, email, sys
4 from os.path import isfile
5
6 if len(sys.argv) < 3:
7 print "Usage: separatesent folder emailFrom"
8 exit(1)
9
10 content = os.listdir(sys.argv[1])
racerxdl's Avatar

racerxdl / record.py

0 likes
0 forks
1 files
Last active 9 months ago
1 #!/usr/bin/env python2
2 # -*- coding: utf-8 -*-
3 ##################################################
4 # GNU Radio Python Flow Graph
5 # Title: Record
6 # Generated: Mon Oct 23 23:04:23 2017
7 ##################################################
8
9 from gnuradio import blocks
10 from gnuradio import eng_notation
Newer Older

Powered by Opengist ⋅ Load: 182ms⋅

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