Skip to content

Instantly share code, notes, and snippets.

💭
is this thing on?

Vincent Stakenburg FrozenDroid

💭
is this thing on?
Block or report user

Report or block FrozenDroid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am frozendroid on github.
  • I am frozendroid (https://keybase.io/frozendroid) on keybase.
  • I have a public key whose fingerprint is 7196 8557 4CC7 FA93 1345 6BE7 BEE0 6316 556D 9571

To claim this, I am signing this object:

View fib.rs
#![feature(try_trait)]
// Fibonacci sequence takes last 2 numbers and sums them, but you can change as you like :)
const TAKE_COUNT: usize = 2;
fn main() {
let mut vec: Vec<i64> = Vec::with_capacity(100);
loop {
let last = vec.iter().rev().take(TAKE_COUNT).collect::<Vec<_>>();
View build.gradle
buildscript {
ext {
kotlinVersion = '1.2.50'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
View launch.sh
#!/bin/sh
MONITOR_LIST=$(xrandr --listmonitors | sed '1 d' | awk 'NF>1{print $NF}')
killall polybar 2> /dev/null
for mon in $MONITOR_LIST; do
echo "Launching on monitor $mon"
env MONITOR=$mon polybar main &
done
View traefik.toml
debug = false
InsecureSkipVerify = true
logLevel = "INFO"
defaultEntryPoints = ["https","http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
View docker-compose.yml
version: '2'
services:
proxy:
image: traefik
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
View docker-compose.yml
version: '3'
services:
db:
restart: always
image: postgres:9.6-alpine
networks:
- internal_network
### Uncomment to enable DB persistance
volumes:
View gist:1de74488b78e32fce415
kappa% dmesg | grep vfio
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=dfb4ca96-6a1b-427c-be0b-96281bf7442f rw cryptdevice=/dev/sdb3:luks:allow-discards quiet intel_iommu=on rd.modules-load=vfio-pci pci-stub.ids=1002:679a,1002:aaa0
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=dfb4ca96-6a1b-427c-be0b-96281bf7442f rw cryptdevice=/dev/sdb3:luks:allow-discards quiet intel_iommu=on rd.modules-load=vfio-pci pci-stub.ids=1002:679a,1002:aaa0
[ 0.457455] vfio_pci: add [1002:679a[ffff:ffff]] class 0x000000/00000000
[ 0.470781] vfio_pci: add [1002:aaa0[ffff:ffff]] class 0x000000/00000000
[ 551.012947] vfio-pci 0000:02:00.0: enabling device (0100 -> 0103)
[ 551.013200] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x270
[ 551.013215] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x1b@0x2d0
[ 551.029585] vfio-pci 0000:02:00.1: enabling device (0100 -> 0102)
View gist:266638fa39ebcae8120e
[root@kappa vincent]# dmesg | grep vfio
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=dfb4ca96-6a1b-427c-be0b-96281bf7442f rw cryptdevice=/dev/sdb3:luks:allow-discards quiet intel_iommu=on rd.modules-load=vfio-pci pci-stub.ids=1002:679a,1002:aaa0
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=dfb4ca96-6a1b-427c-be0b-96281bf7442f rw cryptdevice=/dev/sdb3:luks:allow-discards quiet intel_iommu=on rd.modules-load=vfio-pci pci-stub.ids=1002:679a,1002:aaa0
[ 0.457455] vfio_pci: add [1002:679a[ffff:ffff]] class 0x000000/00000000
[ 0.470781] vfio_pci: add [1002:aaa0[ffff:ffff]] class 0x000000/00000000
View gist:7d0b8c9b3a217df3c4ae
sudo qemu-system-x86_64 -enable-kvm -rtc base=localtime -name Windows -cpu host -m 1G -drive if=pflash,format=raw,file=/usr/share/ovmf/x64/ovmf_code_x64.bin -drive if=pflash,format=raw,file=/usr/share/ovmf/x64/ovmf_vars_x64.bin -drive file=/home/vincent/arch.iso,media=cdrom,if=virtio -boot menu=on -device nec-usb-xhci -device usb-host,vendorid=0x1532,productid=0x011b -device vfio-pci,host=02:00.0,x-vga=on -device vfio-pci,host=02:00.1 -vga none
You can’t perform that action at this time.