Skip to content

Instantly share code, notes, and snippets.

fcicq fcicq

Block or report user

Report or block fcicq

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 createrunsv
#!/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
View lddcp
#!/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
View systemd-disable-xhci_hcd.sh
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
View macos-kvm
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
View kconfig-implement-overlays.patch
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
View Makefile-L4T
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))
View jetson-nano-uboot
[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
View ws.txt
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
View disable-udp-for-rdp.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client]
"fClientDisableUDP"=dword:00000001
@fcicq
fcicq / wget-cleanup.sh
Created Jan 14, 2019
wget-cleanup.sh (bash only).
View wget-cleanup.sh
#!/bin/bash
rm ~/index.html.* 2>/dev/null || :
rm ~/index.html 2>/dev/null || :
shopt -s nullglob
for f in ~/wget-log.* ~/wget-log; do
(tail $f | fgrep "100%" >/dev/null) && (rm -v $f)
done
[ ! -f ~/wget-log ] && touch ~/wget-log
You can’t perform that action at this time.