Skip to content

Instantly share code, notes, and snippets.

View fcicq's full-sized avatar

fcicq fcicq

View GitHub Profile
@fcicq
fcicq / qemu-kvm-arm-userirq-hacks.patch
Last active August 23, 2019 06:11
this effectively revert "ARM: KVM: Enable in-kernel timers with user space gic" at https://github.com/qemu/qemu/commit/5d721b785fbe80170fc756e9444cf751d3a47568
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
index b09bad0..9606ec6 100644
--- a/accel/kvm/kvm-all.c
+++ b/accel/kvm/kvm-all.c
@@ -2523,7 +2523,7 @@ int kvm_has_intx_set_mask(void)
bool kvm_arm_supports_user_irq(void)
{
- return kvm_check_extension(kvm_state, KVM_CAP_ARM_USER_IRQ);
+ return true; //kvm_check_extension(kvm_state, KVM_CAP_ARM_USER_IRQ);
#!/bin/sh
if [ $# -lt 2 ]; then
echo usage $0 path exe [args]
exit 1
fi
p=$1
f=$p/run
shift
echo mkdir -p $p
echo echo \#!/bin/sh \> $f
@fcicq
fcicq / lddcp
Last active August 1, 2019 12:44
#!/bin/sh
if [ $# != 2 ]; then
echo usage $0 BINARY FOLDER
exit 1
fi
if [ ! -f $1 ]; then
echo file $1 not found
exit
fi
echo mkdir -p $2
cat <<'EOF' > /lib/systemd/system-sleep/custom-xhci_hcd
#!/bin/bash
# Original script was using /bin/sh but shellcheck reporting warnings.
# NAME: custom-xhci_hcd
# PATH: /lib/systemd/system-sleep
# CALL: Called from SystemD automatically
# DESC: Suspend broken for USB3.0 as of Oct 25/2018 various kernels all at once
apt install python3-click python3-requests
curl -O https://raw.githubusercontent.com/foxlet/macOS-Simple-KVM/master/tools/FetchMacOS/fetch-macos.py
curl -O -L https://github.com/foxlet/macOS-Simple-KVM/raw/master/tools/dmg2img
chmod +x dmg2img
python3 fetch-macos.py -l -c PublicRelease14
./dmg2img BaseSystem/BaseSystem.dmg BaseSystem.img
# qemu-img convert -c -O qcow2 BaseSystem.img BaseSystem.img.qcow2
From 9d0992d35ddd1532b9be9defbe201316e6b93b13 Mon Sep 17 00:00:00 2001
From: Stephen Warren <swarren@nvidia.com>
Date: Mon, 16 Oct 2017 12:04:05 -0600
Subject: [PATCH] kconfig: implement overlays
Kernel overlays allow the kernel source tree to be sharded into separate
directories, referred to as overlays, which are combined into a single
kernel image during the build process. The overlays can be used e.g. to
house different sets of IP that are released on different schedules. This
approach doesn't require the base kernel Kconfig files and Makefiles to
ifeq ($(KERNEL_OVERLAYS),)
KERNEL_OVERLAYS :=
KERNEL_OVERLAYS += $(CURDIR)/../nvidia
KERNEL_OVERLAYS += $(CURDIR)/../nvgpu
KERNEL_OVERLAYS += $(CURDIR)/../nvgpu-next
KERNEL_OVERLAYS += $(CURDIR)/../nvidia-t23x
else
override KERNEL_OVERLAYS := $(subst :, ,$(KERNEL_OVERLAYS))
endif
override KERNEL_OVERLAYS := $(abspath $(KERNEL_OVERLAYS))
[0000.126] [TegraBoot] (version 00.00.2018.01-l4t-33e7fa82)
[0000.131] Processing in cold boot mode Bootloader 2
[0000.135] A02 Bootrom Patch rev = 1023
[0000.139] Power-up reason: pmc por
[0000.142] No Battery Present
[0000.145] pmic max77620 reset reason
[0000.148] pmic max77620 NVERC : 0x40
[0000.152] RamCode = 0
[0000.154] Platform has DDR4 type RAM
[0000.157] max77620 disabling SD1 Remote Sense
@fcicq
fcicq / ws.txt
Created February 27, 2019 12:12
cmd /c sc config audiosrv start=auto
net start audiosrv
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\" -Name fDenyTSConnections -Value 0
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\" -Name UserAuthentication -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
net user ... /add
net localgroup "Remote Desktop Users" xxxx /add
; note about "name='xxxx'"
WMIC USERACCOUNT WHERE "Name='xxxx'" SET PasswordExpires=FALSE
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client]
"fClientDisableUDP"=dword:00000001