Skip to content

Instantly share code, notes, and snippets.

View dephekt's full-sized avatar

Daniel Snider dephekt

  • Chicago, Illinois, USA
  • 02:16 (UTC -05:00)
View GitHub Profile
@dephekt
dephekt / qcow2-image-resize.md
Created October 6, 2017 06:04
Growing extra space in qcow2 images

Double-check that you're dealing with the right image

qemu-img info filesystem.qcow2

Increase the image by (e.g.) 10GB

qemu-img resize filesystem.qcow2 +10G

Backup image since we can't resize an image in-place

cp filesystem.qcow2 filesystem-orig.qcow2

Expand the virtfs

@dephekt
dephekt / keybase.md
Last active December 30, 2018 06:21

Keybase proof

I hereby claim:

  • I am dephekt on github.
  • I am dephekt (https://keybase.io/dephekt) on keybase.
  • I have a public key whose fingerprint is AA04 F274 69E5 9460 09A9 D3A4 9ADE A950 399B A2E9

To claim this, I am signing this object:

@dephekt
dephekt / install.sh
Created February 22, 2017 06:47 — forked from mkubenka/install.sh
OpenVPN Access Server Letsencrypt
#!/bin/sh
apt-get -y install git bc
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
mkdir /etc/letsencrypt

Open Powershell with administrative permissions:

search powershell, right click, run as Administrator

PS C:\Windows\system32> get-appxpackage -AllUsers *onenote* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *messaging* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *sticky* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *soundrecorder* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *maps* | Remove-Appxpackage

PS C:\Windows\system32> get-appxpackage -AllUsers zune | Remove-Appxpackage

FLASH AND RELOCK YOUR DEVICE

After downloading the image for your device:

  • Make sure you have a Moto Pure Edition or a Developer Edition device.
  • Make sure you download the corresponding recovery image from the above portal.

To flash, put the phone in fastboot mode:

  1. Power OFF your device