Skip to content

Instantly share code, notes, and snippets.

@atomicstack
atomicstack / fetch_raspberry_pi_firmware.sh
Last active Nov 26, 2020
a one-liner to fetch the latest revisions of /boot/*.{elf,dat} in the RPi firmware repository (because it's a 14GB repo and cloning takes forever, and we're only interested in ~20MB of data)
View fetch_raspberry_pi_firmware.sh
wget $( wget -qO - https://github.com/raspberrypi/firmware/tree/master/boot | perl -nE 'chomp; next unless /[.](elf|dat)/; s/.*href="([^"]+)".*/$1/; s/blob/raw/; say qq{https://github.com$_}' )
@MIvanchev
MIvanchev / article.md
Last active Mar 15, 2021
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@daz
daz / ffmpeg-x264.sh
Last active Jan 29, 2021
Cross-compile ffmpeg with x264 for Raspberry Pi 2
View ffmpeg-x264.sh
# Build environment. I use vagrant ubuntu/trusty64
sudo apt-get install build-essential git-core
sudo git clone https://github.com/raspberrypi/tools.git /opt/tools
export CCPREFIX="/opt/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-"
# Get ffmpeg and x264 repos
git clone git://source.ffmpeg.org/ffmpeg.git
@binaryghost
binaryghost / startup_mailer.py
Created Dec 12, 2012
A python script that emails the local and external IP address when the Pi starts up. Original version from: http://elinux.org/RPi_Email_IP_On_Boot_Debian
View startup_mailer.py
#!/usr/bin/env python
# modified from http://elinux.org/RPi_Email_IP_On_Boot_Debian
import subprocess
import smtplib
import socket
from email.mime.text import MIMEText
import datetime
import urllib2
# Change to your own account information
to = 'user@gmail.com'