Skip to content

Instantly share code, notes, and snippets.

jhall39 /
Created June 5, 2019 16:50 — forked from iamsilvio/
script to download all videos of a youtube channel (cron)
read -r lastTime<$timeLogFile
declare -a arr=("" "")
for playlist in "${arr[@]}"
jhall39 /
Created February 1, 2019 17:52 — forked from marcan/
Raspberry Pi Camera V2 DRM authentication example
import hmac, hashlib
# Data from I²C trace at
# Secret key from VideoCore blob
# serial[8], serial[7:4], serial[3:0]
serial = bytes.fromhex("EE8C196D8301230B59")
# rPi -> camera random number
numIn = bytes.fromhex("5805F3C898C3133154498E082F2E703516F2DBD1")
// This is a VERY quick sketch as a proof of concept to see if we can start a car via SWCAN. This code won't work as-is, the data shown is dummy data.
#include <mcp_can.h>
#include <SPI.h>
#include "SamNonDuePin.h"
const int Red = 32;
const int Yellow1 = X0;
const int Yellow2 = 27;
const int Green = 23;
jhall39 /
Created May 29, 2018 19:21 — forked from oleq/
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
 (((  Wireless Bluetooth Channel  )))
jhall39 / .htaccess
Created April 17, 2018 19:01 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
View .htaccess
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php
#Redirect an entire site:
Redirect 301 /
#Redirect an entire site to a sub folder
Redirect 301 /