Skip to content

Instantly share code, notes, and snippets.

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
View .vimrc
"""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Yves Hoppe
" info@yveshoppe.de
"
" Version:
" 1.1.3 - 2016/02/01
"
"""""""""""""""""""""""""""""""""""""""
View test.php
<?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.
View keybase.md

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 Nov 17, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@yvesh
yvesh / .Xdefaults
Last active Aug 31, 2018
URxvt Xdefaults config
View .Xdefaults
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
@yvesh
yvesh / win10.xml
Created Apr 6, 2019
KVM / QEMU ThreadRipper 2970WX - Windows 10 with 8 Core (4 + 2 Threads), pc-i440fx, RX 580 passhtrough, cpu pinning, L3 cache, numatune, host-model
View win10.xml
<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 Apr 6, 2019
KVM / QEMU ThreadRipper 2970WX - Windows 10 with 8 Core (4 + 2), Q35, RX 580 passhtrough, cpu pinning, L3 cache, numatune, host-model
View win10-q35.xml
<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 / crypt.js
Created Jan 2, 2018
JavaScript AES 256 CBC mixin (pure JavaScript encryption and decryption, stored base64 encoded)
View crypt.js
import aesjs from 'aes-js'
import sha256 from 'js-sha256'
/**
* Encryption Mixin (AES-CBC-256)
*/
export default {
name: 'crypt',
methods: {
/**
@yvesh
yvesh / mac-os-mojave-gpu-pci-pass-through.xml
Last active Dec 27, 2019
MacOS 10.14 Mojave Hackintosh - libvirt / Qemu / KVM AMD ThreadRipper with GPU pass-through
View mac-os-mojave-gpu-pci-pass-through.xml
<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>
@yvesh
yvesh / mongo-docker-dump.sh
Created Apr 5, 2020
Docker MongoDB Backup script for cronjobs on Docker Host
View mongo-docker-dump.sh
#!/usr/bin/env bash
username=""
password=""
database=""
auth_database="admin"
target="/backup/mongo-$(date +%Y-%m-%d-%H).archive"
docker exec mongo_db_container sh -c 'exec mongodump --username $username --password $password --authenticationDatabase $auth_database -d $database --archive' > "$target"