Skip to content

Instantly share code, notes, and snippets.

View belst-n's full-sized avatar
🏠
Can't chat, in IRL.

BCE belst-n

🏠
Can't chat, in IRL.
  • AETNET
View GitHub Profile
#!/bin/bash
# This file will be sourced in init.sh
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/flux1-dev.sh
# Packages are installed after nodes so we can fix them...
if [ -z "${HF_TOKEN}" ]; then
echo "HF_TOKEN is not set. Exiting."

This gist is a notes on systemd which I have noted down while reading a online documnet https://n0where.net/understanding-systemd/ and through man pages.Will keep updating it.

socket-based activation bus-based activation path-based activation device-based activation implicit dependency mapping instances and templates easy security hardening drop-ins and snippets - Override the Vanila units.

@belst-n
belst-n / userctl
Created May 22, 2024 09:16 — forked from bluca/userctl
bash completion for systemctl --user alias, save as '~/.local/share/bash-completion/completions/userctl'
# user(1) completion -*- shell-script -*-
# SPDX-License-Identifier: LGPL-2.1-or-later
__systemctl() {
local mode=$1; shift 1
systemctl $mode --full --legend=no --no-pager --plain "$@" 2>/dev/null
}
__systemd_properties() {
/usr/lib/systemd/systemd --dump-bus-properties
@belst-n
belst-n / unsafeWindow.user.js
Created January 15, 2024 05:52 — forked from mathiasbynens/unsafeWindow.user.js
`unsafeWindow` polyfill (for use in user scripts)
// ==UserScript==
// @name Emulate `unsafeWindow` in browsers that don’t support it.
// ==/UserScript==
// http://mths.be/unsafewindow
window.unsafeWindow || (
unsafeWindow = (function() {
var el = document.createElement('p');
el.setAttribute('onclick', 'return window;');
return el.onclick();