This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$i = 0 | |
$s = New-Object -Com Wscript.Shell | |
while (1) { | |
$s.SendKeys("{SCROLLLOCK}") | |
$global:i++ | |
Write-Output $global:i | |
sleep 60 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
sudo qemu-system-x86_64 \ | |
-enable-kvm \ | |
-cpu host,hv-vapic,hv-spinlocks=8191,hv-time \ | |
-smp 2 \ | |
-m 4096 \ | |
-drive if=virtio,cache=none,aio=native,format=raw,file=/dev/vg/windows \ | |
-netdev user,id=eth0,hostfwd=tcp:127.0.0.1:3389-:3389 \ | |
-device virtio-net-pci,netdev=eth0 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Works on Debian Sid as of March 2021, YMMV :) | |
# Worth reading: | |
# man qemu-system | |
# less /usr/share/doc/ovmf/README.Debian | |
# https://wiki.debian.org/SecureBoot/VirtualMachine | |
# https://wiki.qemu.org/Documentation/Networking | |
# https://github.com/qemu/qemu/blob/master/docs/pcie.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal screen-256color | |
set -ga terminal-overrides ',xterm-256color:RGB' | |
set -g escape-time 10 | |
set -g prefix C-a | |
set -g status on | |
set -g base-index 1 | |
set -g renumber-windows on | |
set -g main-pane-width 65% | |
set -g status-left "" | |
set -g status-right "" |