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 / index.js
Created January 20, 2025 00:40
NodeJS Puppeteer Example
const { faker } = require('@faker-js/faker');
const puppeteer = require('puppeteer');
const puppeteerExtra = require('puppeteer-extra');
const Stealth = require('puppeteer-extra-plugin-stealth');
puppeteerExtra.use(Stealth());
//Vars
const grades = ['Kindergarten', '1st', '2nd', '3rd', '4th', '5th', '6th', '7th','8th', '9th', '10th', '11th', '12th'];
@notpike
notpike / Start.sh
Last active September 11, 2024 21:07
PS1 update in Bash and logging with Date, Time, and IP
#!/bin/bash
#By: NotPike
#About: Bash envirement script and logging
#Usege: > Start.sh [FileName]
#End process: > exit
## check for file name
if [ $# -eq 0 ]
@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