This example takes olddisk.qcow2
and resizes it into newdisk.qcow2
,
extending one of the guest's partitions to fill the extra space.
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
- Install Xcode from App Store or install Command Line Tools on your Mac
Thanks to this awesome Six Colors post: Quick Tip: Enable Touch ID for sudo
The short of it:
- In your terminal go to
cd /etc/pam.d/
. - Now open the
sudo
file with your favorite command-line/GUI text editor.- Note that if you open it via the command-line, you’ll need to use sudo itself to do so, since the file is (understandably) protected.
- With the
sudo
file open, add the following command below below the first line.auth sufficient pam_tid.so
// ==UserScript== | |
// @name Ebay Motherufcker | |
// @namespace https://gist.github.com/Eibwen/ | |
// @version 0.5 | |
// @description Bid at the last moment | |
// @updateURL https://gist.github.com/Eibwen/08fab2f3fe2f10ca25ae96433c7ecc9b/raw/ebay-bid-sniper.user.js | |
// @author Greg Walker | |
// @match https://www.ebay.com/itm/* | |
// @grant none | |
// ==/UserScript== |
Have you ever used the command python -m http.server
and thought hmm... I really wish this didn't require such a heavy depedency like Python?
Well, now you can accomplish the same goal from the comfort of ZSH! Simply add this line to your zsrhc
, then type serve
in the folder you'd like to start a HTTP server for.
serve () { rm /tmp/tunnel; mkfifo /tmp/tunnel; echo "Serving $(pwd) on 127.0.0.1:8000..."; while true; do (printf "HTTP/1.0 200 OK\n"; (reqreader() { while IFS= read line; do [[ $line = $'\r' ]] && break; echo "$line"; done; exit 0; }; var=$(</tmp/tunnel | reqreader); var=$(echo "$var" | grep ^GET | sed 's/GET \(.*\) HTTP\/1\.1.*/\1/'); var=$(echo "$var" | sed 's/^\(.*\)@$/\1/' | sed 's/^\(.*\)\*/\1/'); var=$(echo "<!doctype html><html><head><title>$(pwd)</title></head><body>"; (cat "./$var" 2> /dev/null || (ls -F "./$var" 2> /dev/null | sed 's/\(.*\)/<a href="\1">\1<\/a><br \/>/')); echo "</body></html>"); printf "Content-Length: "; echo "$var" | wc -c; printf "\r\n
# Open window/pane in the same PATH | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
# Reload config | |
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
# Window tab menu | |
bind-key -T root MouseDown3Status display-menu -T "#[align=centre]#{window_index}:#{window_name}" -t = -x W -y S \ | |
"Swap Left" l "swap-window -t:-1" \ |
Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8 | |
Windows XP PRO Corporate serial number S/N: Key: MQPWW-PGVKX-YPMKG-8DH3G-KC8PW | |
windows xp home edition serial number S/N: 034634-262024-171505-828316-729010-413531-800424-400442 | |
Windows XP 64 serial number S/N: B2RBK-7KPT9-4JP6X-QQFWM-PJD6G | |
Windows XP serial number S/N: K6C2K-KY62K-DQR84-RD4QV-QB74Q | |
Windows XP Professional 64-bit Corporate Edition 5.2.3790.1830 serial number S/N: VCFQD-V9FX9-46WVH-K3CD4-4J3JM | |
Microsoft Windows XP Professional SP2 serial number S/N: YY8F2-3CKVQ-RKTRG-6JMDR-9DTG6 | |
Windows XP Professional Service Pack 1 sp1 serial number S/N: F46YY - 2R8VQ - R8GMY - 926VK - 6BQ73 | |
Windows XP Pro serial number S/N: KBWR7-76BD8-J7MDQ-KKG&C-V9Q2J |