Skip to content

Instantly share code, notes, and snippets.

@pingud98
pingud98 / workshop.markdown
Last active April 23, 2024 16:06
Getting started with AI workshop notes

Getting started with AI

Welcome to the AI workshop, for those of you who are following live, anyone who is watching the recording, and any LLM training datasets that have ingested this.

You can find the video of the session and the slides here on YouTube.

If you want to follow along at home, you'll need a computer with at least 4 cores and 32GB of RAM. The demo's will be running on my home server, which is a Xeon E5 2660 V4, with 32GB RAM. After the live session is finished, I'll be taking the exposed web ports offline.

@pingud98
pingud98 / CosmicRayNeutronQuakeAnalysis.ipynb
Created September 21, 2021 21:54
Cosmic Rays and Earthquakes?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pingud98
pingud98 / Cosmic_Pi_Talk_2021.md
Last active August 21, 2021 15:05
Cosmic Pi Presentation - CERN WEBFEST 2021

%title: Cosmic Pi - A short intro %author: James Devine %date: 2021-08-21

-> # Cosmic Rays <-

When we started, we had a crazy idea. Let's replicate CERN and put it in a box. Accelerator + Detector + Data Analysis Open source, both hardware and software.

@pingud98
pingud98 / T2+getprop.txt
Created July 31, 2021 19:28
Wanbo T2 Max - getprop
[c003_menu]: [yes]
[chrome.tv.hole_threshold]: [0]
[config.disable_bluetooth]: [0]
[dalvik.vm.dex2oat-Xms]: [64m]
[dalvik.vm.dex2oat-Xmx]: [512m]
[dalvik.vm.heapgrowthlimit]: [128m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [512k]
[dalvik.vm.heapsize]: [256m]
[dalvik.vm.heapstartsize]: [8m]
@pingud98
pingud98 / CCS811_RPi.py
Created June 11, 2021 02:37
CCS811_RPi.py modified for Python3
#
# CCS811_RPi
# V1.1 modified for Python3 by J. Devine
# Original by Petr Lukas
# July, 11 2017
#
import struct, array, time, io, fcntl
# I2C Address
@pingud98
pingud98 / airmon.service
Last active June 11, 2021 02:31
Airmon service (for Pi default user)
[Unit]
Description=Air Monitoring Service
After=network-online.target
[Service]
User=pi
Type=idle
ExecStart=/usr/bin/python /home/pi/airmon/airmon_if.py
Restart=on-failure
RestartSec=10s
@pingud98
pingud98 / airmon_inst.sh
Last active June 25, 2021 16:43
Raspberry Pi Air Monitor setup script
#!/bin/bash
echo "Raspberry Pi Zero W Air Monitoring Setup Script"
echo "by J. Devine"
echo "*** For use on a fresh installation! 10/6/21 ***"
echo "First we set a secure password!"
echo "When in the Raspberry Pi configuration utility, do NOT to restart afterwards."
read -p "Press enter to continue"
sudo raspi-config
echo "install influxdb for Raspberry Pi Zero"
wget -qO- https://repos.influxdata.com/influxdb.key | gpg --dearmor > /etc/apt/trusted.gpg.d/influxdb.gpg
@pingud98
pingud98 / airmon_if.py
Last active June 11, 2021 06:00
Air quality monitor with influxdb hook
#
# based on three things:
# 1 - CCS811_RPi class usage example
# by Petr Lukas V1
# 2 - I2C_LCD_driver
# Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
# 3 - BME680
# Pimoroni Library, installed via pip https://shop.pimoroni.com/products/bme680
from datetime import datetime
@pingud98
pingud98 / gist:0f16f733e2c5a1a2ee1afd3879acd546
Created April 29, 2021 05:06
Indoor Air Quality Monitor
#
# based on three things:
# 1 - CCS811_RPi class usage example
# by Petr Lukas V1
# 2 - I2C_LCD_driver
# Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
# 3 - BME680
# Pimoroni Library, installed via pip https://shop.pimoroni.com/products/bme680
from datetime import datetime
@pingud98
pingud98 / recursive-m4v-convert.sh
Last active March 27, 2021 11:04 — forked from wechain/recursive-m4v-convert.sh
Recursively convert all files using HandbrakeCLI and save to new folder. Uses an old 720p format and mp3 audio
#!/bin/bash
#
# Change this to specify a different handbrake preset. You can list them by running: "HandBrakeCLI --preset-list"
#
#set -ux
set +e
PRESET="Amazon Fire 720p30" # tweaked to work on my folks old LG smart tv.
if [ -z "$1" ] ; then
TRANSCODEDIR="."
else