Skip to content

Instantly share code, notes, and snippets.

View atlury's full-sized avatar
💭
Working

Rahul Atlury atlury

💭
Working
View GitHub Profile
@atlury
atlury / frigate_notification.yaml
Created July 16, 2022 17:23 — forked from hunterjm/frigate_notification.yaml
Frigate Notification Blueprint
blueprint:
name: Frigate Notification
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but will update to include actionable notifications allowing you to view the saved clip/snapshot when available, or silence the notification for a configurable amount of time.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Required entities:
@atlury
atlury / build.sh Build static versions of binutils, for example ld, gprof, nm, strip, objdump, ar, strings; with mingw or on *nix
VERSION=2.25
wget http://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.gz || exit 1
tar xzf binutils-$VERSION.tar.gz || exit 1
cd binutils-$VERSION || exit 1
./configure --disable-nls --prefix=$(pwd)/bin || exit 1
make configure-host || exit 1
make LDFLAGS="-all-static" || exit 1
make install || exit 1
@atlury
atlury / os-release-bionic
Created April 1, 2022 09:32 — forked from Lauszus/os-release-bionic
Nvidia SDKManager on Ubuntu 20.04
# Put in "/usr/lib/os-release-bionic"
NAME="Ubuntu"
VERSION="18.04 (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04"
VERSION_ID="18.04"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
@atlury
atlury / Service KMS
Created March 24, 2022 16:12 — forked from judero01col/Service KMS.md
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@atlury
atlury / supermicro-java-console.sh
Created March 13, 2022 04:06 — forked from DavidWittman/supermicro-java-console.sh
Retrieves the plaintext JNLP for the iKVM console from a SuperMicro IPMI webserver
#!/usr/bin/env bash
# Retrieves the plaintext JNLP from a SuperMicro IPMI webserver
# Usage: supermicro-java-console.sh <hostname>
# supermicro-java-console.sh 10.1.2.34 > login.jnlp
set -x
HOST="$1"
IPMI_USER=${IPMI_USER:-ADMIN}
diff --git a/abuild.in b/abuild.in
index f56ac03..b7e3dcc 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1048,7 +1048,7 @@ trace_apk_deps() {
case "$parch" in
$CBUILD_ARCH) ;;
- $CARCH | $CTARGET_ARCH) apkroot="--root $CBUILDROOT" ;;
+ $CARCH | $CTARGET_ARCH) apkroot="--root $CBUILDROOT --arch $CTARGET_ARCH" ;;
@atlury
atlury / setup-cross-cc.sh
Created May 2, 2021 19:27 — forked from xentec/setup-cross-cc.sh
Alpine Linux cross-compiler setup script
#!/bin/sh
CTARGET="$1"
if [ -z "$CTARGET" ]; then
program=$(basename $0)
echo "usage: $program TARGET_ARCH"
return 1
fi
# get abuild configurables
@atlury
atlury / qemu-ubuntu.sh
Created July 9, 2020 13:46 — forked from lnyng/qemu-ubuntu.sh
Use debootstrap to create an ubuntu image, and run it in qemu. If image already created, running the script will just launch qemu. Use 'root:root' to login. Based on https://askubuntu.com/a/1081171/715169 and https://gist.github.com/corvax19/6230283#gistcomment-1940694
#!/usr/bin/env bash
set -eux
suite=xenial
debootstrap_dir=$suite
img_file=${suite}.ext4.img
kernel=/vmlinuz
initrd=/initrd.img
@atlury
atlury / build.sh
Created July 8, 2020 13:42 — forked from fballiano/build.sh
Ubuntu Mini Remix
#!/bin/bash
# user: ubuntu pass: just hit ENTER
apt-get install vim ubuntu-defaults-builder live-build uck syslinux-utils coreutils
# open /usr/share/livecd-rootfs/live-build/auto/config and add PROJECT=base where there are all the variables
ubuntu-defaults-template ubuntu-defaults-umr
ubuntu-defaults-image --package ubuntu-defaults-umr_0.1_all.deb
mv binary.hybrid.iso ubuntu-mini-remix-15.10-amd64.iso
md5sum ubuntu-mini-remix-15.10-amd64.iso>ubuntu-mini-remix-15.10-amd64.iso.md5
mv ubuntu-mini-remix-15.10-amd64.iso* 15.10/