This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#md5 of last 100MB of all files in current directory | |
find ./ -type f -print0 -maxdepth 1 | xargs -0 -n1 -I{} sh -c "echo '{}' >> output.md5 && tail -c 100000000 '{}' | md5sum >> output.md5" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Raspberry Pi has wlan (wireless) and eth0 (ethernet) network interfaces | |
The following will set 10.0.0.1 IP to eth0 | |
The diskstation should typically get assigned 10.0.0.10 from dhcp | |
# assign a static address to eth0 | |
sudo vim /etc/dhcpcd.conf | |
interface eth0 | |
static ip_address=10.0.0.1/24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://dequeue.blogspot.com.au/2014/11/decrypting-something-encrypted-with.html | |
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/md5" | |
"encoding/base64" | |
"fmt" |