Skip to content

Instantly share code, notes, and snippets.

View moto-timo's full-sized avatar

Tim Orling moto-timo

View GitHub Profile
@moto-timo
moto-timo / CommitSubmodules.sh
Created June 3, 2024 17:19 — forked from armadsen/CommitSubmodules.sh
Quick and dirty bash script to recursively commit submodules
if [[ "$#" -ne 1 ]]; then
echo "You must specify a commit message as an argument."
exit 1
fi
COMMIT_MESSAGE="$1"
git submodule foreach "echo 'Adding all files.'; git add ."
git submodule foreach "echo 'Stashing.'; git stash"
git submodule foreach "echo 'Checking out master branch.'; git checkout master"
git submodule foreach "echo 'Applying stash.'; git stash apply"
#!/bin/sh
USER=derailed
REPO=k9s
VERSION=$(curl -s https://api.github.com/repos/$USER/$REPO/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
MACHINE=$(uname -m)
K9S_VERSION=$(k9s version -s | grep -oP '(v\d+\.\d+\.\d+)' )
echo "Current k9s version: $K9S_VERSION"
echo "Upstream k9s version: $VERSION"
# https://github.com/derailed/k9s/releases/download/v0.24.12/k9s_Linux_x86_64.tar.gz
#!/bin/sh
USER=digitalocean
REPO=doctl
VERSION=$(curl -s https://api.github.com/repos/$USER/$REPO/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
MACHINE=$(uname -m)
DOCTL_VERSION=$(doctl version | grep -oP '(\d+\.\d+\.\d+)' )
echo "Current doctl version: v$DOCTL_VERSION"
echo "Upstream doctl version: $VERSION"
# https://github.com/digitalocean/doctl/releases/download/v1.92.1/doctl-1.92.1-linux-amd64.tar.gz
�ˇ‚
[0533.321] W> RATCHET: MB1 binary ratchet value 4 is too large than ratchet level 2 from HW fuses.
[0533.330] I> MB1 (prd-version: 1.5.1.9-t194-41334769-73a9b7ef)
[0533.335] I> Boot-mode: Platform RCM
[0533.338] I> Chip revision : A02
[0533.341] I> Bootrom patch version : 15 (correctly patched)
[0533.347] I> ATE fuse revision : 0x200
[0533.350] I> Ram repair fuse : 0x0
[0533.353] I> Ram Code : 0x0
[0533.356] I> rst_source : 0x0
# MACROPAD Hotkeys: Custom Hotkeys for OBS Studio
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
'name' : 'OBS Studio', # Application name
'macros' : [ # List of button macros...
# COLOR LABEL KEY SEQUENCE
# 1st row ----------
(0x004000, 'Web Cam', [Keycode.F5]), # Toggle Web Cam
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
labels:
special: ptest-host-disk
name: ptest-host-disk
spec:
domain:
devices:
disks:
#!/bin/sh
USER=kubevirt
REPO=kubevirt
BINARY=virtctl
VERSION=$(curl -s https://api.github.com/repos/$USER/$REPO/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
MACHINE=$(uname -m)
MACHINE=amd64
cd /tmp
#!/bin/sh
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: Copyright 2021 Tim Orling
USER=derailed
REPO=k9s
VERSION=$(curl -s https://api.github.com/repos/$USER/$REPO/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
MACHINE=$(uname -m)
KERNEL_NAME=$(uname -s)
K9S_VERSION=$(k9s version -s | grep -oP '(v\d+\.\d+\.\d+)' )
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/home/ttorling/Projects/poky/meta \
/home/ttorling/Projects/poky/meta-poky \
@moto-timo
moto-timo / gist:fca323293d5cda60a42ffecba962ab75
Created July 17, 2020 00:58
acrn-secureboot-dm-verity local.conf
#
# This file is your local configuration file and is where all local user settings
# are placed. The comments in this file give some guide to the options a new user
# to the system might want to change but pretty much any configuration option can
# be set in this file. More adventurous users can look at local.conf.extended
# which contains other examples of configuration which can be placed in this file
# but new users likely won't need any of them initially.
#
# Lines starting with the '#' character are commented out and in some cases the
# default values are provided as comments to show people example syntax. Enabling