Skip to content

Instantly share code, notes, and snippets.

View yvesh's full-sized avatar
🚀
It’s kind of fun to do the impossible.

Yves Hoppe yvesh

🚀
It’s kind of fun to do the impossible.
View GitHub Profile
@yvesh
yvesh / .Xdefaults
Last active August 31, 2018 12:26
URxvt Xdefaults config
URxvt.saveLines: 2000
URxvt.scrollBar: false
URxvt.foreground: #f9f7f1
URxvt.depth: 32
URxvt.secondaryScroll: true
URxvt.font: xft:DejaVu Sans Mono for Powerline:pixelsize=22:antialias=true
URxvt.perl-ext-common: default,matcher,selection-to-clipboard
URxvt.urlLauncher: chromium
URxvt.matcher.button: 1
URxvt.tabbed.saveLines: 2000
"""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Yves Hoppe
" info@yveshoppe.de
"
" Version:
" 1.1.3 - 2016/02/01
"
"""""""""""""""""""""""""""""""""""""""
<?php
/**
* @package Matukio
* @author Yves Hoppe <yves@compojoom.com>
* @date 07.07.14
*
* @copyright Copyright (C) 2008 - 2014 compojoom.com . All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
// We are a valid entry point.
@yvesh
yvesh / keybase.md
Created November 2, 2016 02:28
Keybase

Keybase proof

I hereby claim:

  • I am yvesh on github.
  • I am yveshoppe (https://keybase.io/yveshoppe) on keybase.
  • I have a public key whose fingerprint is B6E9 E816 065E 64C5 4F3D 1884 ADBC 67C6 15D7 0A63

To claim this, I am signing this object:

@yvesh
yvesh / 0_reuse_code.js
Created November 17, 2016 08:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@yvesh
yvesh / crypt.js
Created January 2, 2018 15:33
JavaScript AES 256 CBC mixin (pure JavaScript encryption and decryption, stored base64 encoded)
import aesjs from 'aes-js'
import sha256 from 'js-sha256'
/**
* Encryption Mixin (AES-CBC-256)
*/
export default {
name: 'crypt',
methods: {
/**
@yvesh
yvesh / win10.xml
Created April 6, 2019 08:18
KVM / QEMU ThreadRipper 2970WX - Windows 10 with 8 Core (4 + 2 Threads), pc-i440fx, RX 580 passhtrough, cpu pinning, L3 cache, numatune, host-model
<domain type='kvm' id='10'>
<name>win10-3</name>
<uuid>c2e12168-4bb9-4953-95b3-a1cbc1b24be1</uuid>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
<vcpu placement='static' cpuset='0-3,24-27'>8</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='0'/>
<vcpupin vcpu='1' cpuset='24'/>
<vcpupin vcpu='2' cpuset='1'/>
@yvesh
yvesh / win10-q35.xml
Created April 6, 2019 11:27
KVM / QEMU ThreadRipper 2970WX - Windows 10 with 8 Core (4 + 2), Q35, RX 580 passhtrough, cpu pinning, L3 cache, numatune, host-model
<domain type='kvm' id='3'>
<name>win10</name>
<uuid>8ba118e4-018b-46b9-b9b0-53a2567769fb</uuid>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
<vcpu placement='static' cpuset='6-9,30-34'>8</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='6'/>
<vcpupin vcpu='1' cpuset='30'/>
<vcpupin vcpu='2' cpuset='7'/>
@yvesh
yvesh / win10-libvirt.xml
Created April 7, 2019 13:31
libvirt KVM AMD ThreadRipper GPU passthrough - CPU pinning, isolcpus, numactl and L3 cache
<domain type='kvm'>
<name>win10</name>
<uuid>8ba118e4-018b-46b9-b9b0-53a2567769fb</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
@yvesh
yvesh / mac-os-mojave-gpu-pci-pass-through.xml
Last active December 27, 2019 17:46
MacOS 10.14 Mojave Hackintosh - libvirt / Qemu / KVM AMD ThreadRipper with GPU pass-through
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>mac-os-mojave-gpu-pci-pass-through</name>
<uuid>b1899693-3cc4-4aa1-a891-5c4fe1f72cca</uuid>
<memory unit='KiB'>32817152</memory>
<currentMemory unit='KiB'>32817152</currentMemory>
<vcpu placement='static'>32</vcpu>
<os>
<type arch='x86_64' machine='pc-q35-4.0.1'>hvm</type>
<loader readonly='yes' type='pflash'>/mnt/qemu/macos/firmware/OVMF_CODE.fd</loader>
<nvram>/mnt/qemu/macos/firmware/OVMF_VARS-1024x768.fd</nvram>