Values of VMCS fields are encoded as per section VMREAD, VMWRITE, and Encodings of VMCS Field (24.11.2, Intel Manual Volume 3C - May 2018).
This encoding can be transcribed into C:
union vmcs_component_encoding
{
struct| #include <string.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <mach-o/dyld.h> | |
| #include <mach-o/nlist.h> | |
| #include <mach-o/dyld_images.h> | |
| #include <mach/mach_vm.h> | |
| /* Dyld is the OSX Dynamic Linker | |
| * /usr/include//mach-o/loader.h |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
| #!/bin/bash | |
| while true | |
| do | |
| ping -c 1 www.example.com &> /dev/null | |
| if [ $? -ne 0 ]; then | |
| echo `date`: ping failed! | |
| say "Hey network admin - internet is down" -v bruce | |
| fi | |
| sleep 10 |
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "close_windows_when_empty": false, | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
| "copy_with_empty_selection": false, | |
| "drag_text": false, | |
| "draw_minimap_border": true, |
| # Convert .flac to .mp3 (lossless) | |
| for f in *.flac; do ffmpeg -i "$f" -aq 1 "${f%flac}mp3"; done | |
| # Convert .flac to .mp3, compress to ~ 120k | |
| for f in *.flac; do ffmpeg -i "$f" -aq 5 "${f%flac}mp3"; done | |
| # Convert .flac to mp3, compress to ~ 128k | |
| for f in *.flac; do ffmpeg -i "$f" -b:a 128k "${f%flac}mp3"; done | |
| # Convert .flac to mp3, compress to variable 190k |