Skip to content

Instantly share code, notes, and snippets.

View sleepdefic1t's full-sized avatar

₴Ⱡ33₱ sleepdefic1t

View GitHub Profile
@sleepdefic1t
sleepdefic1t / DARK_SNAPSHOT
Last active October 26, 2017 11:07
wget a current snapshot of the Ark Devnet Blockchain
// cd to nodes snapshot 'db' directory
sudo wget https://dsnapshots.ark.io/current -O devark-node.db
@sleepdefic1t
sleepdefic1t / RPI_FORCE_CLEAR_LOGS
Last active October 12, 2017 12:26
Raspberry Pi terminal command for force-emptying system logs. Useful for custom images.
sudo bash -c 'for i in $(find /var/log -type f); do cat /dev/null > $i; done'
@sleepdefic1t
sleepdefic1t / macOS_MOUNT_EFI
Created October 2, 2017 11:53
Mounts EFI Partition of macOS installation. Useful for multi-boot environments.
mkdir mnt && sudo mount -t msdos /dev/disk0s1 mnt
@sleepdefic1t
sleepdefic1t / RPI_CHECK_FREESPACE_CLEAN
Created September 22, 2017 20:43
Commands for checking free space and cleaning packages of RPi install.
df -Bm
sudo apt-get clean
df -Bm
@sleepdefic1t
sleepdefic1t / RPI_CLEAR_HISTORY_SHUTDOWN
Created September 21, 2017 19:09
Raspberry Pi terminal command for clearing the bash history and shutting down. Useful for custom images.
history -c && history -w && sudo shutdown now
/**************************************************************************/
/*!
@file readMifareClassic.pde
@author Adafruit Industries
@license BSD (see license.txt)
This example will wait for any ISO14443A card or tag, and
depending on the size of the UID will attempt to read from it.
If the card has a 4-byte UID it is probably a Mifare