Skip to content

Instantly share code, notes, and snippets.

View awilkins's full-sized avatar
🥔

Adrian Wilkins awilkins

🥔
View GitHub Profile
@awilkins
awilkins / lvmcryptocache
Created May 8, 2015 15:39
Script to add an encrypted SSD cache to Ubuntu install using dm-cache and LUKS
#!/bin/bash
# Add an LVM cache pool on and attach it to the root volume
# Including LUKS encryption
# Assumes you are using an "all on root" setup
# If you are not, adapt it if you like
#
# Script licensed GPL3 or later
# © Adrian Wilkins May 2015
# Pass the name of the disk device you are using as a cache
@awilkins
awilkins / install-poetry-f.py
Created October 31, 2021 12:52
Install poetry 1.1.11 with the depdencies locked at tag time.
"""
This script will install Poetry and its dependencies.
It does, in order:
- Downloads the virtualenv package to a temporary directory and add it to sys.path.
- Creates a virtual environment in the correct OS data dir which will be
- `%APPDATA%\\pypoetry` on Windows
- ~/Library/Application Support/pypoetry on MacOS
- `${XDG_DATA_HOME}/pypoetry` (or `~/.local/share/pypoetry` if it's not set) on UNIX systems
--------- beginning of system
12-30 11:27:10.593 2030 2030 I vold : Vold 3.0 (the awakening) firing up
12-30 11:27:10.593 2030 2030 V vold : Detected support for: exfat ext4 f2fs ntfs vfat
12-30 11:27:10.649 2030 2033 V vold : /system/bin/sgdisk
12-30 11:27:10.649 2030 2033 V vold : --android-dump
12-30 11:27:10.649 2030 2033 V vold : /dev/block/vold/disk:179_50
12-30 11:27:10.654 2030 2093 D vold : e4crypt_init_user0
12-30 11:27:10.654 2030 2093 D vold : e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1
12-30 11:27:10.654 2030 2093 D vold : Preparing: /data/system/users/0
12-30 11:27:10.655 2030 2093 D vold : Preparing: /data/misc/profiles/cur/0
UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JProgressBar[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,orientation=HORIZONTAL,paintBorder=false,paintString=false,progressString=,indeterminateString=false]
java.lang.Error
at javax.swing.UIDefaults.getUIError(UIDefaults.java:730)
at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:130)
at javax.swing.UIDefaults.getUI(UIDefaults.java:760)
at javax.swing.UIManager.getUI(UIManager.java:1016)
at javax.swing.JProgressBar.updateUI(JProgressBar.java:619)
at javax.swing.JProgressBar.<init>(JProgressBar.java:334)
at javax.swing.JProgressBar.<init>(JProgressBar.java:274)
at javax.swing.JProgressBar.<init>(JProgressBar.java:251)

Keybase proof

I hereby claim:

  • I am awilkins on github.
  • I am dr_barnowl (https://keybase.io/dr_barnowl) on keybase.
  • I have a public key whose fingerprint is D147 7D76 559C 8A0E D9F3 BC13 014D F99E 929B 4CF3

To claim this, I am signing this object: