Skip to content

Instantly share code, notes, and snippets.

@digitaljhelms
digitaljhelms / gist:4287848
Last active March 29, 2024 14:00
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@Gangus
Gangus / gist:fb2674973b5d8acf03e11977fe88358e
Created March 25, 2024 18:11
Bulk Sitecore Workflow update
##path you want the script to execute on, please note the script does not work on the parent item
$rootItem = Get-Item -Path master:"A Valid Sitecore Path"
##grab the guids of your workflow states and the workflow itself and make variables out of them
$desiredWorkflowStateDraft = "a workflow State"
$desiredWorkflowStateAwaitingApproval = "another workflow state"
$desiredWorkflowStateApproved = "another another workflow state"
$desiredWorkflow = "workflow guid"
$desiredDefaultWorkflow = "workflow guid"
@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active March 29, 2024 14:00
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@frinkleko
frinkleko / SPE.py
Last active March 29, 2024 13:57
Toy implementation of SPE: https://openreview.net/pdf?id=xAqcJ9XoTf
import numpy as np
from scipy.linalg import eigh
def soft_partition(eigenvectors, eigenvalues, num_partitions):
# Apply a weighted sum of eigenvectors in an eigenvalue-dependent manner
partitions = np.linspace(np.min(eigenvalues), np.max(eigenvalues), num_partitions)
encodings = np.zeros_like(eigenvectors)
for i, val in enumerate(partitions[:-1]):
start, end = partitions[i], partitions[i+1]
mask = (eigenvalues >= start) & (eigenvalues < end)
@guest271314
guest271314 / javascript_engines_and_runtimes.md
Last active March 29, 2024 13:54
A list of JavaScript engines, runtimes, interpreters

V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.

SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on

@duggan
duggan / setup.py
Created March 29, 2024 12:07
OpenVoice updated setup.py for running on Apple Silicon with Python 3.11
from setuptools import setup
setup(name='MyShell-OpenVoice',
version='0.0.0',
description='Instant voice cloning by MyShell.',
long_description=open('README.md').read().strip(),
long_description_content_type='text/markdown',
keywords=[
'text-to-speech',
'tts',
@braian87b
braian87b / dumb-ap-wired-link.sh
Last active March 29, 2024 13:48
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@rifazn
rifazn / change-theme.sh
Created September 18, 2021 20:37
Hook for gammastep that changes between light and dark variants of theme
#!/bin/sh
# Rifaz Nahiyan
# https://github.com/rifazn
# Hook for gammastep that changes between light and dark variants of theme
# Place this in $XDG_CONFIG_DIR/gammastep/hooks/
# TODO: if prefers-dark-theme is set to true, don't do anything
set_theme () {