- Wired
- V3.co.uk
Requests for other sites are welcome ([email protected]).
- July 25, 2016: Added support for V3.co.uk.
| #!/bin/sh | |
| command="${*}" | |
| printf "Initialized REPL for `%s`\n" "$command" | |
| printf "%s> " "$command" | |
| read -r input | |
| while [ "$input" != "" ]; | |
| do | |
| eval "$command $input" | |
| printf "%s> " "$command" |
| #!/bin/bash | |
| # Log in into the box | |
| vagrant ssh | |
| # VirtualBox syncs host time with guest, so we need to shut off VBox Guest Additions first | |
| sudo service vboxadd-service stop | |
| # Now you can set any date and time | |
| sudo date -s "2020-10-01 10:25:00" |
Requests for other sites are welcome ([email protected]).
This Grub Init Tune will make your computer sound like a Super Mushroom every time you turn it on! This only works for the Grub bootloader - this generally means you need to have Linux (or other Grub-based OS) installed.
Here's the code, which goes in your /etc/default/grub file:
GRUB_INIT_TUNE="1750 523 1 392 1 523 1 659 1 784 1 1047 1 784 1 415 1 523 1 622 1 831 1 622 1 831 1 1046 1 1244 1 1661 1 1244 1 466 1 587 1 698 1 932 1 1195 1 1397 1 1865 1 1397 1"
| from Crypto.Cipher import DES3 | |
| def _make_des3_encryptor(key, iv): | |
| encryptor = DES3.new(key, DES3.MODE_CBC, iv) | |
| return encryptor | |
| def des3_encrypt(key, iv, data): | |
| encryptor = _make_des3_encryptor(key, iv) | |
| pad_len = 8 - len(data) % 8 # length of padding |