Skip to content

Instantly share code, notes, and snippets.

Avatar
🌳

Robin van Emden robinvanemden

🌳
View GitHub Profile
@robinvanemden
robinvanemden / minimal_rtsp.c
Created Apr 30, 2022
minimal gstreamer rtsp example: retrieve frame, save jpeg
View minimal_rtsp.c
#include <stdio.h>
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include <glib.h>
#include <libavcodec/avcodec.h>
#include "stb/stb_image.h"
void minimal_rtsp() {
View cleangit.sh
#!/bin/bash
default_branch=`basename $(git symbolic-ref --short refs/remotes/origin/HEAD)`
git checkout --orphan tmp
git add -A # Add all files and commit them
git commit
git branch -D $default_branch # Deletes the default branch
git branch -m $default_branch # Rename the current branch to default
git push -f origin $default_branch # Force push default branch to github
@robinvanemden
robinvanemden / reset.sh
Last active Jan 29, 2022
Reset Scailable Edge AI Manager
View reset.sh
#!/bin/bash
echo ""
echo "========================================================================"
echo "= Welcome to the Scailable Edge AI Manager Test Install ="
echo "========================================================================"
echo ""
# run as:
#
View get.sclbl.sh
#!/bin/bash
echo ""
echo "==========================================================================="
echo "= Welcome to the Scailable Edge AI Manager installer ="
echo "==========================================================================="
echo ""
# run as:
#
@robinvanemden
robinvanemden / howtojetsonxrdp.md
Last active Nov 7, 2021
How to setup xrdp on jetson
View howtojetsonxrdp.md

How to enable RDP (Remote Desktop) on JETSON NANO

Steps

Install xrdp

$ sudo apt install xrdp -y 
@robinvanemden
robinvanemden / cudnn_convolution_forward.cu
Created Jul 31, 2021 — forked from odashi/cudnn_convolution_forward.cu
Example usage of cuDNN convolution forward functions.
View cudnn_convolution_forward.cu
#include <iomanip>
#include <iostream>
#include <cstdlib>
#include <vector>
#include <cuda.h>
#include <cudnn.h>
#define CUDA_CALL(f) { \
cudaError_t err = (f); \
@robinvanemden
robinvanemden / postman-echo.c
Created Apr 28, 2021 — forked from leiless/postman-echo.c
[Test] Simple program to POST a HTTP request to postman-echo.com
View postman-echo.c
/**
* Simple program to POST a HTTP request
*
* see:
* https://docs.postman-echo.com/?version=latest
* https://aticleworld.com/http-get-and-post-methods-example-in-c/
* https://stackoverflow.com/questions/11208299/how-to-make-an-http-get-request-in-c-without-libcurl
* https://stackoverflow.com/questions/22077802/simple-c-example-of-doing-an-http-post-and-consuming-the-response
*/
@robinvanemden
robinvanemden / fully-static-curl.sh
Last active Apr 27, 2021
Cross-compile fully static curl library.
View fully-static-curl.sh
#!/bin/bash
# Static libcurl crosscompiler #########################################################################################
# This is script to cross-compiles a **fully static** curl library.
# It builds WolfSSL and C-Ares, then LibCurl - therein supporting most SSL protocols including TSL 1.3.
# Helper variables, leave as is
export BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
View darknet_pi4.md

Installing darknet nnpack to run YOLOv3 on Raspberry pi 4

Build Instructions

1. Some of that you might need

1.1. Log in to Raspberry Pi using SSH. Always update upgrade first!

sudo apt-get update &amp;&amp; sudo apt-get upgrade
View JpegFixer.h
#import <Foundation/Foundation.h>
static const uint8_t huffman_table[] =
{
0xFF, 0xC4, 0x01, 0xA2, 0x00, 0x00, 0x01, 0x05, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02,
0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x01, 0x00, 0x03,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
0x0A, 0x0B, 0x10, 0x00, 0x02, 0x01, 0x03, 0x03, 0x02, 0x04, 0x03, 0x05,