This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
| <?php | |
| /** | |
| * Single-file PHP Clipboard and File Sharing Tool | |
| * Compatible with PHP 7.4+ | |
| */ | |
| // Configuration | |
| $dataFile = __DIR__ . '/clipboard_data.txt'; | |
| $uploadDir = __DIR__ . '/shared_files/'; |
| #!/bin/bash | |
| cat init-stream0.m4s $(find . -name "chunk-stream0-*.m4s" | sort) > tmp_video.mp4 | |
| cat init-stream1.m4s $(find . -name "chunk-stream1-*.m4s" | sort) > tmp_audio.mp4 | |
| docker run --rm -v "$(pwd):/data" jrottenberg/ffmpeg -i /data/tmp_video.mp4 -i /data/tmp_audio.mp4 -c copy /data/final_video.mp4 |
| -- ddcavcontrol | |
| -- v1.2.1 | |
| -- This Hammerspoon script is intended to do the following: | |
| -- 1) Control External Display Brightness via DDC (utilizing a proper brightness+contrast curve) | |
| -- 2) Control External Display Volume via DDC | |
| -- 3) Control Digital AV Volume via Network (currently works with Yamaha AVs) | |
| -- 4) Use the standard brightness and volume keys of an Apple keyboards | |
| -- 5) Display the standard MacOS OSD as expected |
| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android" android:ordering="sequentially"> | |
| <objectAnimator android:propertyName="alpha" | |
| android:duration="200" | |
| android:valueFrom="1.0" | |
| android:valueTo="0.0" | |
| android:valueType="floatType" /> | |
| <objectAnimator android:propertyName="alpha" | |
| android:duration="200" | |
| android:valueFrom="0.0" |
| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <alpha android:fromAlpha="1.0" android:toAlpha="0.5" android:duration="20" android:startOffset="0"/> | |
| <alpha android:fromAlpha="0.5" android:toAlpha="0.04" android:duration="20" android:startOffset="20"/> | |
| <alpha android:fromAlpha="0.04" android:toAlpha="0.8" android:duration="20" android:startOffset="40"/> | |
| <alpha android:fromAlpha="0.8" android:toAlpha="0.0" android:duration="20" android:startOffset="60"/> | |
| <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="20" android:startOffset="80"/> | |
| <alpha android:fromAlpha="1.0" android:toAlpha="0.01" android:duration="40" android:startOffset="100"/> |
| // | |
| // NSImage+OpenCV.h | |
| // | |
| #import <AppKit/AppKit.h> | |
| @interface NSImage (NSImage_OpenCV) { | |
| } |
| [program:mongodb] | |
| command=/opt/mongodb/bin/mongod --dbpath /storage/mongodb_data --rest | |
| directory=/opt/mongodb | |
| user=root | |
| autostart=false |