Skip to content

Instantly share code, notes, and snippets.

@jhall39
jhall39 / youtube-dl-cron.sh
Created June 5, 2019 16:50 — forked from iamsilvio/youtube-dl-cron.sh
script to download all videos of a youtube channel (cron)
#!bin/bash
timeLogFile='/opt/youtube-dl/time.log'
downloadDirectory='/media/cs-video/Youtube-ch/'
read -r lastTime<$timeLogFile
declare -a arr=("" "")
for playlist in "${arr[@]}"
@jhall39
jhall39 / rpi_cam_auth.py
Created February 1, 2019 17:52 — forked from marcan/rpi_cam_auth.py
Raspberry Pi Camera V2 DRM authentication example
import hmac, hashlib
# Data from I²C trace at https://hackaday.io/project/19480-raspberry-pi-camera-v21-reversed/log/52547-i2c-logic-analyzer-trace
# 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
jhall39 / _README.md
Created May 29, 2018 19:21 — forked from oleq/_README.md
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) 
                |
                v
 (((  Wireless Bluetooth Channel  )))
 |
@jhall39
jhall39 / .htaccess
Created April 17, 2018 19:01 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/