All the lilypond snippets I forget...
Articles in the coding category
This particular printer has always been a bugger to get playing with 64bit Ubuntu variants. Finally with 15.10 I managed to get it working so am documenting for future reference.
Official driver: https://www.usa.canon.com/internet/portal/us/home/support/details/printers/support-laser-printers-imageclass/imageclass-mf4150.
Arch Linux
This …
Arch linux cribsheet
As part of a server upgrade I've done a general clearout of all the useless really crappy posts. The less crappy posts have been cleaned up and migrated to Pelican.
As you were...
Though the linux ntfs-3g driver can't decrypt EFS files, it can copy them if you use the right flags and options.
# vol needs to be mounted with the efs_raw options
sudo mount -t ntfs-3g -o efs_raw /dev/sdX1 /mnt/src
sudo mount -t ntfs-3g -o efs_raw /dev/sdY1 /mnt/dst …
Dont waste your money on 'Password Recovery Tools'!
The following perl oneliner will change the password to 'unlocked'.
perl -pe 's/DPB="[A-F0-9]+"/DPB="B4B6182718713571358ECB723594D9F51AEB7F0E3ECB35E389309035ADD32D4F47176BF5ECD2"/' locked.xls > unlocked.xls
Tested with Excel and Word (2003). Note this is just for VBA passwords, not sheet/document protection, though I'm sure there …
Using string modifiers to extract part of a string
$ x=a:b:c
$ echo ${x%:*}
a:b
$ echo ${x%%:*}
a
$ echo ${x#*:}
b:c
$ echo ${x##*:}
c