Automation is supposed to let you slack more.

Tuesday, January 22, 2019

Backing up Windows 8.1 with GPartEd and Clonezilla

When I get a new Windows computer, I back up the OS so that I can revert to it should OS updates or other software make it fail in ways that are too complex for me to untangle. I generally don't trust bundled backup programs because they often don't back up system files in a predictable way or the restore process takes too long. After backing up, I run the latest OS updates and back up again.
  1. Disable hibernation:
    Running cmd as administrator, enter,
    powercfg /h off
  2. Disable swap:
    Control Panel > System > Advanced System Settings > Advanced tab > Performance > Settings > Advanced tab > Virtual Memory > Change... >
    • Uncheck "Automatically manage".
    • Select "No paging file" for partitions to be backed up.
    • Click "Set".
  3. Re-partition drive:
    • Note: For the initial backup, do not execute this step and instead back up the entire disk to capture the factory restore partition if it exists.
    • Run GPartEd live CD and re-partition the drive to create a partition for user documents and data if one doesn't exist already
  4. Move user docs:
    • In Windows Explorer, open C:\Users and Documents\[Your User].
    • Move user folders (Documents, Downloads, Favorites, Music, Pictures, Videos, etc.) to the newly created user partition using Properties > Location tab.
  5. Clone partitions:
    Run Clonezilla with image mode (as opposed to partition mode).
To restore:
  1. Clone partitions back to drive.
  2. Re-enable swap:
    Virtual Memory > Select "System manage size".
  3. Re-enable hibernation:
    powercfg /h on

Monday, September 03, 2018

The Franken-Algo Singularity Is Here

The singularity is here and it is not in the form of artificial general intelligence. It is in the form of franken-algorithms, algorithms that work with and against algorithms and learn independently of human input. It's very easy for these algorithms to create algorithms that humans can't understand because these algorithms optimize to reach toward certain goals by any means, including ones that don't follow conventional logic and ethical contexts.

Further reading: https://www.theguardian.com/technology/2018/aug/29/coding-algorithms-frankenalgos-program-danger

Tuesday, December 12, 2017

Tuesday, November 07, 2017

Fix init sequence in Raspberry Pi

If the init sequence gets broken and you can't get to a shell on a Raspberry Pi (I'm using 3 model B), you can boot into recovery mode this way.
  • Hit shift when starting up.
  • Hit "e" to edit config
  • tab over to cmdline.txt
  • add to the end of the line
    init=/bin/sh
  • hit ok, then Esc to boot...... it will boot you in to a command line
    # mount -n -o remount,rw / (this will remount / so you can make changes)
  • now you should be able to edit the init.d config.
  • when you reboot again.... hold shift and remove the init=/bin/sh
Source: raspberrypi.stackexchange.com

Friday, November 03, 2017

Thursday, November 02, 2017

Friday, October 13, 2017

Verifying OpenSSL certificates

Verifying that a certificate is issued by a CA

How to use OpenSSL on the command line to verify that a certificate was issued by a specific CA, given that CA's certificate:
$ openssl verify -verbose -CAfile cacert.pem  server.crt
server.crt: OK

Verify that a private key matches a certificate

$ openssl x509 -noout -modulus -in server.crt | openssl md5
$ openssl rsa -noout -modulus -in server.key | openssl md5
The resultant hashes should match.

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Powered by Blogger.
Scroll To Top