Skip to content

Instantly share code, notes, and snippets.

View 4nd3r's full-sized avatar

Ander Punnar 4nd3r

View GitHub Profile
$i = 0
$s = New-Object -Com Wscript.Shell
while (1) {
$s.SendKeys("{SCROLLLOCK}")
$global:i++
Write-Output $global:i
sleep 60
}
#!/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 \
#!/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
@4nd3r
4nd3r / .tmux.conf
Last active December 12, 2021 13:09
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 ""