Skip to content

Instantly share code, notes, and snippets.

@telmofcosta
telmofcosta / backup-restore sdcard
Created February 8, 2015 12:16
Backup and restore an SD card on Mac OS x (perfect for Raspberry Pi)
# insert SD and find out where it is mounted
diskutil list
# /dev/disk0
# #: TYPE NAME SIZE IDENTIFIER
# 0: GUID_partition_scheme *250.1 GB disk0
# ...
# /dev/disk1
# #: TYPE NAME SIZE IDENTIFIER
# 0: FDisk_partition_scheme *15.7 GB disk1
# ...
@hofmannsven
hofmannsven / README.md
Last active August 27, 2024 09:08
Raspberry Pi Cheatsheet
@holtbp
holtbp / cacheMusic.py
Created September 26, 2011 19:30
Turntable FM Cache File type converter
import os, glob, shutil, sys
path = os.environ['LOCALAPPDATA'] + "/Google/Chrome/User Data/Default/Cache/"
listing = os.listdir(path)
for infile in listing:
if "f_" in infile:
abs_path = path + infile
statinfo = os.stat(abs_path)
if statinfo.st_size > 1000000: #checking to see if the file > 1MB