We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
import datetime | |
import json | |
import os | |
import subprocess | |
import sys | |
############# | |
### USAGE ### | |
############# |
version: '3' | |
services: | |
db: | |
restart: always | |
image: postgres:9.6-alpine | |
networks: | |
- internal_network | |
### Uncomment to enable DB persistance | |
volumes: |
// uQuery | |
function qsa(q){return document.querySelectorAll(q)} | |
function qs(q){return document.querySelector(q)} | |
function bind(el,evt,fn){el.addEventListener(evt,fn)} | |
function qbind(q,evt,fn){var els=qsa(q);els&&els.forEach(function(el){el.addEventListener(evt, fn)})} |
// ==UserScript== | |
// @name GME vykreslovač množstevní slevy | |
// @namespace http://tampermonkey.net/ | |
// @version 3 | |
// @description Množstevní sleva GME | |
// @author Ondřej Hruška, 2017 | |
// @match https://www.gme.cz/* | |
// @grant MIT | |
// ==/UserScript== |
file = open("usb_hid_keys.h", "r") | |
for line in file: | |
goodline = line[8:].split(" ") | |
if line.startswith("#define ") and len(goodline)>1: | |
key = goodline[0] | |
value = "" | |
for i in range(1, len(goodline)): | |
if goodline[i] == "": | |
continue |
qemu-system-x86_64 \ | |
-enable-kvm -M q35 -localtime -usb -name Windows `# General options` \ | |
-monitor /dev/tty -nographic -vga none -serial none `# Graphic options` \ | |
-cpu host,kvm=off -smp 1,sockets=1,cores=1,threads=1 `# CPU Options` \ | |
-m 1024 `# Memory` \ | |
-bios /usr/share/qemu/bios.bin `# BIOS` \ | |
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 `# PCIe Bus` \ | |
-device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on `# Graphics card` \ | |
-device vfio-pci,host=02:00.1,bus=root.1,addr=00.1 `# Graphics card sound` \ | |
-soundhw hda `# Sound` \ |
#!/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 |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: