Skip to content

Instantly share code, notes, and snippets.

@puccaso
puccaso / ddclient.conf
Created Feb 15, 2021 — forked from iamhunter/ddclient.conf
DDClient configuration for CloudFlare DDNS
View ddclient.conf
##
## Cloudflare (cloudflare.com)
##
daemon=1800
use=web, web=ipinfo.io/ip, web-skip='IP Address'
ssl=yes
protocol=cloudflare, \
server=www.cloudflare.com, \
login=*cloudflare-email* \
password=*cloudflare-global-api-key* \
@puccaso
puccaso / ddclient.conf
Created Feb 15, 2021 — forked from klittlepage/ddclient.conf
A ddclient config file for use with Cloudflare. See https://gist.github.com/klittlepage/7243505 for a Cloudflare patch to the 3.8.1 version of ddclient.
View ddclient.conf
daemon=1800 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
# ssl-library
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
cache=/tmp/ddclient.cache
@puccaso
puccaso / ddclient.conf
Created Feb 15, 2021 — forked from klittlepage/ddclient.conf
A ddclient config file for use with Cloudflare. See https://gist.github.com/klittlepage/7243505 for a Cloudflare patch to the 3.8.1 version of ddclient.
View ddclient.conf
daemon=1800 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
# ssl-library
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
cache=/tmp/ddclient.cache
@puccaso
puccaso / remove_apt_cache
Created Jan 25, 2021 — forked from marvell/remove_apt_cache
Remove APT cache (for Dockerfile)
View remove_apt_cache
apt-get clean autoclean
apt-get autoremove --yes
rm -rf /var/lib/{apt,dpkg,cache,log}/
View Time Machine.md
@puccaso
puccaso / fetch_raspberry_pi_firmware.sh
Created Jul 24, 2020 — 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)
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$_}' )
@puccaso
puccaso / ffmpeg-x264.sh
Created Nov 26, 2018 — forked from daz/ffmpeg-x264.sh
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
@puccaso
puccaso / article.md
Created Nov 20, 2018 — 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 Nov 15, 2018 — forked from binaryghost/startup_mailer.py
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'
@puccaso
puccaso / index.html
Created Aug 30, 2017 — forked from anonymous/index.html
Text Scramble Effect
View index.html
<div class="container">
<div class="text"></div>
</div>