Skip to content

Instantly share code, notes, and snippets.

View puccaso's full-sized avatar

Puc puccaso

  • [txq.io]
  • Ireland
View GitHub Profile
@puccaso
puccaso / fetch_raspberry_pi_firmware.sh
Created July 24, 2020 19:22 — forked from atomicstack/fetch_raspberry_pi_firmware.sh
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)
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$_}' )
@puccaso
puccaso / index.html
Created August 30, 2017 22:17 — forked from anonymous/index.html
Text Scramble Effect
<div class="container">
<div class="text"></div>
</div>
@puccaso
puccaso / ffmpeg-x264.sh
Created November 26, 2018 21:49 — forked from daz/ffmpeg-x264.sh
Cross-compile ffmpeg with x264 for Raspberry Pi 2
# 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
@puccaso
puccaso / article.md
Created November 20, 2018 23:27 — forked from MIvanchev/article.md
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@puccaso
puccaso / startup_mailer.py
Created November 15, 2018 19:49
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
#!/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'
@puccaso
puccaso / path-in-mac-osx-10.7.mdown
Created March 30, 2017 09:53 — forked from Overbryd/path-in-mac-osx-10.7.mdown
Correcting $PATH in MacOSX 10.7 for homebrew

$PATH in MacOSX 10.7

MacOSX has a truly global path setting that precedes any other setting like ~/.bash_profile. The file /private/etc/paths is a list of pathnames. The order from top to bottom defines the resulting order in the $PATH variable. After loading /private/etc/paths there is a directory /private/etc/paths.d/ with files in the same style. Those are appended to the $PATH variable.

The default content of /private/etc/paths looks like this:

/usr/bin

/bin