Skip to content

Instantly share code, notes, and snippets.

View John-Appleseed's full-sized avatar

John-Appleseed

View GitHub Profile
'''
https://arxiv.org/abs/2312.00858
1. put this file in ComfyUI/custom_nodes
2. load node from <loaders>
start_step, end_step: apply this method when the timestep is between start_step and end_step
cache_interval: interval of caching (1 means no caching)
cache_depth: depth of caching
'''
@John-Appleseed
John-Appleseed / scrutiny_install.sh
Last active December 27, 2021 19:55
scrutiny_install.sh
# scrutiny.install: port 7800
# app: https://github.com/AnalogJ/scrutiny
# SYS_ADMIN required to add NVMe drives
scrutiny.install(){
unset devices disks_all disks_all_list
app_path="/data/scrutiny"
config_path="$app_path/config"
@CyriacBr
CyriacBr / xdm-solid.ts
Last active June 29, 2022 19:48
Support SolidJs inside MDX files
import { compile } from 'xdm';
import * as Path from 'path';
import * as fs from 'fs';
import * as babel from '@babel/core';
import esbuild from 'esbuild';
async function main() {
/**
* Compile MDX file with XDM
*/
@Kreyren
Kreyren / ncurses_tinfo_bug.md
Last active February 3, 2020 01:26
sys-libs/ncurses-6.1-r3:0/6::gentoo[+tinfo] breaks system if tinfo is removed after on system that didn't have +tinfo before.

On Bedrock Linux Gentoo strata breaks sys-libs/ncurses-6.1-r3:0/6::gentoo[-tinfo] system when sys-libs/ncurses-6.1-r3:0/6::gentoo[+tinfo] and sys-libs/ncurses-6.1-r3:0/6::gentoo[-tinfo] is merged.

results in:

/bin/sh: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory
Failed to validate a sane '/dev'.
bash process substitution doesn't work; this may be an indication of a broken '/dev/fd'.

System didn't have ncurses with tinfo before, was installed as part of games-util/steam-launcher::steam-overlay[-steamruntime].

@zocker-160
zocker-160 / blender_cr_headless.md
Last active June 6, 2023 02:43
Setup a blender rendernode on a headless server with crowdrender addon

GUIDE: How To create a headless blender renderserver with CrowdRender addon

Requirements

  • any headless Linux server
  • Blender v2.79 or v2.80 - v2.93 (from package manager or blender.org)
  • latest version of CrowdRender addon
  • optional: GPU drivers for GPU-rendering

install and activate addon

@davecheney
davecheney / go1.0-vs-go1.11.txt
Created October 7, 2018 11:13
test/bench/go1 benchmark results
name old time/op new time/op delta
BinaryTree17 5.44s ± 2% 3.27s ± 2% -39.90% (p=0.000 n=20+19)
Fannkuch11 4.95s ± 2% 2.68s ± 2% -45.87% (p=0.000 n=20+20)
FmtFprintfEmpty 142ns ± 2% 49ns ± 3% -65.39% (p=0.000 n=20+18)
FmtFprintfFloat 765ns ± 2% 260ns ± 2% -66.02% (p=0.000 n=20+20)
FmtFprintfInt 341ns ± 2% 95ns ± 2% -72.08% (p=0.000 n=19+20)
FmtFprintfIntInt 554ns ± 2% 150ns ± 1% -72.95% (p=0.000 n=20+19)
FmtFprintfPrefixedInt 497ns ± 3% 178ns ± 3% -64.12% (p=0.000 n=20+20)
FmtFprintfString 466ns ± 2% 86ns ± 3% -81.54% (p=0.000 n=20+20)
FmtManyArgs 2.23µs ± 2% 0.59µs ± 1% -73.46% (p=0.000 n=20+17)
@bmaupin
bmaupin / open-source-sso.md
Last active June 18, 2024 21:40
Comparison of some open-source SSO implementations

ⓘ This list is not meant to be exhaustive and is not guaranteed to be maintained. See the comments for updates and alternative options.

(Items in bold indicate possible concerns)

Keycloak WSO2 Identity Server Gluu CAS OpenAM Shibboleth IdP
OpenID Connect/OAuth support yes yes yes yes yes yes
Multi-factor authentication yes yes yes yes yes yes
Admin UI yes yes yes yes yes no
OpenJDK support yes yes partial² yes
@mholt
mholt / macapp.go
Last active June 19, 2024 16:05
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@John-Appleseed
John-Appleseed / speech_install.sh
Last active September 2, 2018 05:40
Linux Speech Install
# speech.install:
speech.install(){
# requires package libncurses5-dev xsel
# Tested on amd64, arm64
# Issue: festival's `make symlinks` are the full build path to binaries and configs rather than a relative path
# Currently festival/ is extracted out of build_festival/ into $usr_share_dir/ with the voices installed and the festival binaries and configs relinked to $usr_share_dir by a 2nd full recompilation. make clean && ./configure && make
@dumindu
dumindu / userChrome.css
Last active June 7, 2021 00:26
Firefox Night Owl - V2
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
:root:-moz-lwtheme-brighttext {
--chrome-background-color: #424242 !important;
--chrome-color: #8f8f8f !important;
--chrome-secondary-background-color: #363636 !important;
--toolbox-border-bottom-color: #333333 !important;
--url-and-searchbar-border-color: #333333 !important;
--focus-ring-box-shadow: #191917 !important;
--url-and-searchbar-background-color: #363636 !important;