Skip to content

Instantly share code, notes, and snippets.

View seank-com's full-sized avatar

Sean Kelly seank-com

View GitHub Profile
@seank-com
seank-com / LLM.md
Created March 31, 2023 00:30 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@seank-com
seank-com / makefile
Created August 15, 2019 20:21
sample gcc makefile
INC=\
-I/usr/local/include/azureiot
LIB=\
-lwiringPi \
-liothub_client \
-liothub_client_mqtt_transport \
-lserializer \
-lumqtt \
@seank-com
seank-com / iotedgeinstalltx2_gist.md
Last active September 11, 2023 09:26 — forked from marktayl1/iotedgeinstalltx2_gist.md
Install Steps for IoT Edge on NVIDIA Jetson Tx2

Install Steps for IoT Edge on NVIDIA Jetson Tx2

Multi-architecture method

Prerequisites: This assumes you already have docker up and running. You can also use Moby by following the instructions at https://docs.microsoft.com/en-us/azure/iot-edge/how-to-install-iot-edge-linux-arm just before the installation of IoT Edge in step: 10

  1. $ sudo dpkg --add-architecture armhf
  2. $ sudo apt-get update
  3. $ sudo apt-get install libc-bin libc-bin libc-dev-bin libc6 libc6:armhf libc6-dev libgcc1 libgcc1:armhf locales
  4. $ wget http://ports.ubuntu.com/ubuntu-ports/pool/main/h/hostname/hostname_3.16ubuntu2_armhf.deb
  5. $ sudo dpkg -i ./hostname_3.16ubuntu2_armhf.deb
1>------ Build started: Project: imxusdhc, Configuration: Release ARM ------
2>------ Build started: Project: mx6pep, Configuration: Release ARM ------
3>------ Build started: Project: HalExtiMX6Timers, Configuration: Release ARM ------
4>------ Build started: Project: HalExtiMX7Timers, Configuration: Release ARM ------
5>------ Build started: Project: audio-common, Configuration: Release ARM ------
6>------ Build started: Project: imxgpio, Configuration: Release ARM ------
7>------ Build started: Project: imxecspi, Configuration: Release ARM ------
8>------ Build started: Project: HalExtiMXDma, Configuration: Release ARM ------
9>------ Build started: Project: imxpwm, Configuration: Release ARM ------
10>------ Build started: Project: mxpowerutil, Configuration: Release ARM ------
1>------ Build started: Project: imxusdhc, Configuration: Release ARM ------
2>------ Build started: Project: mx6pep, Configuration: Release ARM ------
3>------ Build started: Project: HalExtiMX6Timers, Configuration: Release ARM ------
4>------ Build started: Project: HalExtiMX7Timers, Configuration: Release ARM ------
5>------ Build started: Project: audio-common, Configuration: Release ARM ------
6>------ Build started: Project: imxgpio, Configuration: Release ARM ------
7>------ Build started: Project: imxecspi, Configuration: Release ARM ------
8>------ Build started: Project: HalExtiMXDma, Configuration: Release ARM ------
9>------ Build started: Project: imxpwm, Configuration: Release ARM ------
10>------ Build started: Project: mxpowerutil, Configuration: Release ARM ------
1>------ Build started: Project: imxusdhc, Configuration: Release ARM ------
2>------ Build started: Project: mx6pep, Configuration: Release ARM ------
3>------ Build started: Project: HalExtiMX6Timers, Configuration: Release ARM ------
4>------ Build started: Project: HalExtiMX7Timers, Configuration: Release ARM ------
5>------ Build started: Project: audio-common, Configuration: Release ARM ------
6>------ Build started: Project: imxgpio, Configuration: Release ARM ------
7>------ Build started: Project: imxecspi, Configuration: Release ARM ------
8>------ Build started: Project: HalExtiMXDma, Configuration: Release ARM ------
9>------ Build started: Project: imxpwm, Configuration: Release ARM ------
10>------ Build started: Project: mxpowerutil, Configuration: Release ARM ------
function base64_encode(file) {
// read binary data
var bitmap = fs.readFileSync(file);
// convert binary data to base64 encoded string
return new Buffer(bitmap).toString('base64');
}
@seank-com
seank-com / m2nf.cmd
Created March 15, 2016 20:10
Send To | A New Folder - Adds menu item to Send To menu on Windows to move the selected files to a new folder. Great for organizing.
@echo off
goto start
With this script properly installed you can right click a group of files and select Send To | A New Folder and
much like Send To | Compressed (zipped) folder, it it will create a folder with the name of the first selected
item and then move all the items selected into that new folder.
To set up:
- Open this folder in explorer, use "start ." from a command console.
@seank-com
seank-com / is-corrupt.cmd
Created March 15, 2016 20:06
Detect if an mp4 is corrupt
@REM
@REM Assumes ffmpeg.exe (https://www.ffmpeg.org/)
@REM in the same folder and invokes it to detect if an mp4 is corrupt.
@REM
@%~dp0\ffmpeg.exe -v error -i %1 -f null - >error.log 2>&1
REM
REM Use this script to detach a VHD by executing diskpart likeso
REM
REM DiskPart /s detach-vhd
REM
select vdisk file="C:\Users\seank\Desktop\seed.vhd"
detach vdisk