Skip to content

Instantly share code, notes, and snippets.

View dgramop's full-sized avatar

Dhruv Gramopadhye dgramop

View GitHub Profile
How I installed HackRF + GNURadio on M1
Firstly, I suggest avoiding macports and radioconda altogether. I'm sure their fine projects, but they complicated my toolchain.
Instead, I suggest installing the hackrf library, gnuradio-companion, and other dependencies (where available) directly from Homebrew.
Then, if you prefer to use osmosdr (you should), I would suggest cloning and compiling gr-osmosdr from source. Disable all of the unnecessary components in cmake using the -DENABLE_(other SDR name)=OFF, since not having some of those libraries led to compile errors
Finally, since gr-osmosdr installs its blocks to /usr/local/share/gnuradio/grc/blocks, but you installed gnuradio via homebrew, gnuradio only looks for blocks at /opt/homebrew/share/gnuradio/grc/blocks
To fix this, update the gnuradio search path (for fish, set -Ux GRC_BLOCKS_PATH=/usr/local/share/gnuradio/grc/blocks)
@dgramop
dgramop / downloadusers.js
Created February 6, 2020 01:14
A hastily-written script that downloads all users available from an API accessible to any authenticated blackboard user. Lots of PII is leaked via this API endpoint, which is officially supported and documented. A potential FERPA violation in blackboard software.
const request=require("request")
const cheerio=require("cheerio")
const fs=require("fs")
let heads={"Content-Type":"multipart/form-data","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36","Referer":"https://fcps.blackboard.com/webapps/login/",origin: "https://fcps.blackboard.com"}
var outcookies="";
const USERNAME=""
const PASSWORD=""
const DOMAIN="";
@dgramop
dgramop / Keybase proof
Created May 22, 2019 17:15
My keybase proof
### Keybase proof
I hereby claim:
* I am dgramop on github.
* I am dgramop (https://keybase.io/dgramop) on keybase.
* I have a public key ASCkRZxqBohSGd222U7Nm7G8NEACRGi02S68aAGdbj84Dwo
To claim this, I am signing this object:
@dgramop
dgramop / Keybase proof
Created May 22, 2019 17:15
My keybase proof
### Keybase proof
I hereby claim:
* I am dgramop on github.
* I am dgramop (https://keybase.io/dgramop) on keybase.
* I have a public key ASCkRZxqBohSGd222U7Nm7G8NEACRGi02S68aAGdbj84Dwo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am dgramop on github.
  • I am dgramop (https://keybase.io/dgramop) on keybase.
  • I have a public key whose fingerprint is BCB9 4EB4 5821 35C0 4C68 7BFD 3A21 E93E B506 55E4

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am BrainyBrian on github.
  • I am dgramop (https://keybase.io/dgramop) on keybase.
  • I have a public key whose fingerprint is BCB9 4EB4 5821 35C0 4C68 7BFD 3A21 E93E B506 55E4

To claim this, I am signing this object:

@dgramop
dgramop / WarningResume.java
Last active April 16, 2017 17:25
WarningResume
////////////////////////////////////////
// Made by Dhruv Gramopadhye for: //
// 1. his YouTube Channel //
// 2. Making the world a safer place //
////////////////////////////////////////
// http://dGRAMOP.xyz //
////////////////////////////////////////
import java.net.MalformedURLException;