Skip to content

Instantly share code, notes, and snippets.

View notpike's full-sized avatar
💭
Survived the M$ B& Hammer... 😅

NotPike notpike

💭
Survived the M$ B& Hammer... 😅
View GitHub Profile
@notpike
notpike / import_openvpn.sh
Created March 1, 2023 03:02
Import .ovpn files to Network Manager
#!/bin/bash
UNAME=""
PASS=''
echo "== START =="
for file in *; do
if [ -f "$file" ]; then
@notpike
notpike / 2fsk.py
Created February 11, 2021 03:12
RFCat 2fsk Debug Tool
#!/usr/bin/python
from rflib import *
import time
def init(freq):
d.setFreq(freq)
d.setMdmModulation(MOD_FORMAT_2_FSK)
d.setMdmDeviatn(4500)
d.setMdmDRate(1200)
@notpike
notpike / import_ovpn.sh
Last active January 27, 2021 18:29
Import OpenVPN config files into Network Manager from current directory
#!/bin/bash
#Update UNAME and PASS and run from the directory where the .ovpn files reside
UNAME=""
PASS=''
echo "== START =="
#! /usr/bin/python3
import sys
#MainUnit
key = b'\x7a\x49\x1e\xeb\x33\x28\x2b\x8b\x84\xa7\xad\x47\xb8\x31\x03\xd0'
def main():
fileIn = open(str(sys.argv[1]), "rb")
fileOut = open("file.out", "ab")
@notpike
notpike / tx.sh
Last active July 8, 2020 02:04
Raspbery Pi Transmit script for Yaesu VX-7R
#!/bin/bash
#######################################################
# FILE: TX.SH #
# AUTHOR: NOTPIKE WU7ANG #
# LICENSE: MIT #
# FUNCTION: RPI TX SCRIPT FOR YAESU VX-7R #
# #
# ==REQUIRED SOFTWARE== #
# ~:$ sudo apt update #
@notpike
notpike / rtlsdr-to-gqrx.c
Created May 25, 2020 19:03 — forked from DrPaulBrewer/rtlsdr-to-gqrx.c
rtlsdr-to-gqrx SDR file format converter
#include <complex.h>
#include <stdio.h>
#include <stdlib.h>
// rtlsdr-to-gqrx Copyright 2014 Paul Brewer KI6CQ
// License: GNU GPL 3.0
//
// IQ file converter for Software Defined Radio Programs rtl_sdr, gqrx
// from rtl_sdr recording format -- interleaved unsigned char
// to gqrx/gnuradio .cfile playback format -- complex64
@notpike
notpike / chroot2pi.sh
Last active February 7, 2020 18:57 — forked from htruong/chroot-to-pi.sh
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu or Fedora desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
uint8_t checksum(uint8_t *in) {
uint8_t crc = 0x07; // CRC Magic Number
int i;
for (i = 7; i <= 61; i ++) { // CRC for 54Byte LED Matrix
crc = crc ^ in[i] & 0xff; // Each Byte is XORed ontop of the last
/* _____ _ __ _ ___ _
* |_ _| | |_ _ _ / _` | / __| _ _ ___ __ __ __ __| |
* | | | ' \ | +| | \__, | | (__ | '_| / _ \ \ V V // _` |
* _|_|_ |_||_| \_,_| |___/ \___| _|_|_ \___/ \_/\_/ \__,_|
*_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|
* "`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'
*
* "Train"
* http://patorjk.com/software/taag/
*/

Keybase proof

I hereby claim:

  • I am NotPike on github.
  • I am notpike (https://keybase.io/notpike) on keybase.
  • I have a public key whose fingerprint is 06B5 7714 58D1 7561 5FB3 8D53 F882 177B A28A 78FA

To claim this, I am signing this object: