Skip to content

Instantly share code, notes, and snippets.

View halfwit's full-sized avatar
🙄
What?! This is the face that launched a thousand ships?!

halfwit halfwit

🙄
What?! This is the face that launched a thousand ships?!
View GitHub Profile
@halfwit
halfwit / windows
Created November 3, 2015 18:32 — forked from dasJ/windows
Qemu final
#!/bin/bash
xhost local:root > /dev/null
if ! [ -d /sys/fs/cgroup/cpuset/windows ]; then
sudo cgcreate -t $USER:users -a $USER:users -g cpuset:windows
fi
/bin/echo "2-7" > /sys/fs/cgroup/cpuset/windows/cpuset.cpus
/bin/echo "0" > /sys/fs/cgroup/cpuset/windows/cpuset.mems