Skip to content

Instantly share code, notes, and snippets.

💭
killing foss projects since 2016™

jkhsjdhjs

💭
killing foss projects since 2016™
Block or report user

Report or block jkhsjdhjs

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 result-iter.rs
struct ResultIter<I, F> {
iter: I,
f: F,
}
impl<U, E, R, F, I> Iterator for ResultIter<I, F>
where
I: Iterator<Item = Result<U, E>>,
F: FnOnce(U) -> Result<R, E> + Copy,
{
@jkhsjdhjs
jkhsjdhjs / check.bash
Created Aug 21, 2019
pacman: check for unsatisfied dependencies
View check.bash
pacman -Q $(pacman -Qq | pacman -Qi | grep "Depends On" | awk '{for(i=1;i<4;i++) $i=""; print}' | grep -v None | sed 's/ /\n/g' | cut -d'>' -f1 | cut -d'<' -f1 | cut -d'=' -f1 | grep -v "^$" | sort | uniq | xargs) | grep "^error: "
@jkhsjdhjs
jkhsjdhjs / kvm_set_msr_common_dmesg.log
Last active Feb 10, 2019
output printed to dmesg when trying to launch L.A. Noire in a qemu vm with cpu model 'host-model' on an i5-7600K
View kvm_set_msr_common_dmesg.log
[ 1642.590777] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
[ 1642.590791] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
[ 1642.590803] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
[ 1642.590814] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
[ 1642.590826] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
[ 1642.590838] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
[ 1642.590849] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
[ 1642.590859] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop
[ 1642.590871] kvm [7022]: vcpu3, guest rIP: 0xfffff80742459082 kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, no
View keybase.md

Keybase proof

I hereby claim:

  • I am jkhsjdhjs on github.
  • I am jkhsjdhjs (https://keybase.io/jkhsjdhjs) on keybase.
  • I have a public key whose fingerprint is 16F0 3DC2 EF16 3831 7CEE AD66 856E D6BD 3C8B 4EDA

To claim this, I am signing this object:

@jkhsjdhjs
jkhsjdhjs / nvidia_post.bash
Last active Aug 21, 2018
nvidia hooks to trigger initramfs image generation on install/update/remove
View nvidia_post.bash
#!/usr/bin/env bash
workdir="$(cd "$(dirname "$0")" && pwd)"
xargs -I % rm "${workdir}/%" < "${workdir}/nvidia_hooks_filenames.txt" && rm "${workdir}/nvidia_hooks_filenames.txt"
@jkhsjdhjs
jkhsjdhjs / online-net_systemd-network-configuration.md
Last active Dec 30, 2019
online.net: systemd Network Configuration with (r)DNS
View online-net_systemd-network-configuration.md

online.net: systemd Network Configuration with (r)DNS

Introduction

This document will guide you through the process of setting up your online.net network addresses, DNS servers and rDNS records. For IPv4 we will use systemd-networkd (part of systemd) and odhcp6c (OpenWrt embedded DHCPv6-client) together with iproute2 for IPv6. For DNS we'll use systemd-resolved.

systemd is the default init process on Arch Linux, Debian GNU/Linux, Fedora, Ubuntu and more. iproute2 is also preinstalled there. So, if you're using a distribution that uses systemd, this tutorial should work for you. If you're using Gentoo Linux first make sure that you're using systemd.

Table of Contents

You can’t perform that action at this time.