Skip to content

Instantly share code, notes, and snippets.

View siddharthdeore's full-sized avatar
🛰️
Aerospace, Robots!

Siddharth Deore siddharthdeore

🛰️
Aerospace, Robots!
View GitHub Profile
@siddharthdeore
siddharthdeore / README.md
Last active November 30, 2023 10:59
create iso image of ubuntu 20.04

Install Required Packages: Make sure you have the necessary packages installed:

sudo apt update
sudo apt install genisoimage
@siddharthdeore
siddharthdeore / fw_ep6_fifo.ihx
Last active December 27, 2023 03:27
A host program to read bulk data from End Point 6 of Cypress CY7C68013A EZ-USB FX2LP USB2.0
:0400000002001132B7
:03000B000200DF11
:08006A00E4F508F50902000E9F
:03000E000201CD1F
:20007200AF82E50A60108FF005F0E50A800225E0D5F0FB42B2228FF005F0E50A800225E034
:20009200D5F0FBF452B222AF828FF005F07401800225E0D5F0FBFFE50A6004EF428022EFFF
:2000B200F4528022B200300012750A01758200120099750A00758201020099750A007582A8
:2000D20000120099750A01758201020099C021C0E0C0F0C082C083C007C006C005C004C0C4
:2000F20003C002C001C000C0D075D00074012508F508E43509F509740AB50806E4B509022F
:20011200800280081200B6E4F508F509C28C758AC0758C63D28CD0D0D000D001D002D00367
@siddharthdeore
siddharthdeore / gstremer-pipes.md
Last active November 7, 2022 23:00
GStreamer pipelines

Install Gstreamer-1.0

sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo apt-get update
sudo apt-get install gstreamer1.0-tools gstreamer1.0-alsa \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
gstreamer1.0-libav
sudo apt-get install libgstreamer1.0-dev \

Ubuntu 20.04 PREEMPT_RT Patch

Install dependancies

apt-get install build-essential libnuma-dev libncurses5-dev flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf fakeroot dwarves zstd

Create directory to build kernel

mkdir -p ~/kernel
cd -p ~/kernel
@siddharthdeore
siddharthdeore / StableSquare.ino
Created February 28, 2021 05:18
Square wave generator for Anmol's Clock
void setup(){
DDRD = DDRD | B00000100; // Sets pin 2 as Output
}
void loop(){
while (1){
// Pin 2 High for 6ms
PORTD = PORTD | 0b00000100;
delayMicroseconds(6000);
// Pin 2 Low for 194ms
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
#p1, #p2, #p3,#num {
text-align: right;
width: 8em;
}
</style>
@siddharthdeore
siddharthdeore / LinkBudget.m
Created October 28, 2019 10:35
Evaluation of link budget
format short
clear
clc
%Dati Iniziali ORBITA
D=15*10^3; %m
c=299792458; %m/s
k=1.38064*10^-23; %J/K
T0=290; %K
%% GOM_Downlink_UHF
fc=2.4*10^9; %WiFi
// sample web server node
#include "IPAddress.h"
#include "painlessMesh.h"
#ifdef ESP8266
#include "Hash.h"
#include <ESPAsyncTCP.h>
#else
#include <AsyncTCP.h>
#endif
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade
sudo printf 'blacklist dvb_usb_rtl28xxu\nblacklist rtl2832\nblacklist rtl2830' > /etc/modprobe.d/nortl.conf
sudo apt-get install git-core
sudo apt-get install git
sudo apt-get install cmake
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install build-essential
git clone git://git.osmocom.org/rtl-sdr.git
@siddharthdeore
siddharthdeore / OpenCVBuild.sh
Created February 2, 2017 12:36
Compile and run all available OpenCV return C++ and C source code in current directory.
#!/bin/sh
if [ $# -gt 0 ] ; then
base=`basename $1 .c`
echo "compiling $base"
gcc -ggdb `pkg-config opencv --cflags --libs` $base.c -o $base
else
for i in *.cpp; do
echo "compiling $i"
g++ -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`;