Skip to content

Instantly share code, notes, and snippets.

@sliceofbytes
sliceofbytes / For Mac 4.2.6 unlimited trial.md
Created April 23, 2024 17:52 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@sliceofbytes
sliceofbytes / gist:911e266a7a8d347c72a81b99e3d1dc31
Created April 14, 2024 20:35 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@sliceofbytes
sliceofbytes / txt-to-google-keep-notes.py
Created February 14, 2018 22:16
Add Text Files as Google Keep Notes
#Import a directory of text files as google keep notes.
#Text Filename is used for the title of the note.
import gkeepapi, os
username = 'username@gmail.com'
password = 'your app password'
keep = gkeepapi.Keep()
success = keep.login(username,password)
@sliceofbytes
sliceofbytes / MouseSpeed.ps1
Created March 19, 2024 03:31
Set Mouse Speed Using Powershell
<#
.SYNOPSIS
Sets the mouse speed.
.DESCRIPTION
Sets the mouse speed via the SystemParametersInfo SPI_SETMOUSESPEED
and stores the speed in the registry
.PARAMETER Speed
Integer between 1 (slowest) and 20 (fastest). A value of 10 is the default.
@sliceofbytes
sliceofbytes / Prompts
Created September 27, 2023 14:29 — forked from lukecav/Prompts
Stable Diffusion Prompts - Cinematic
Cinematic cameras
Captured by (camera)
Sony cinealta
Cannon cinema eos
Phantom high speed camera
Arri Alexa
Super-16
Panavision Super R200 SPSR Camera
@sliceofbytes
sliceofbytes / contextMenuFilter.js
Created September 3, 2023 18:07
Comfy.ContextMenuFilter Fix contextMenuFilter.js (Fix filter not working)
import {app} from "../../scripts/app.js";
// Adds filtering to combo context menus
const ext = {
name: "Comfy.ContextMenuFilter",
init() {
const ctxMenu = LiteGraph.ContextMenu;
LiteGraph.ContextMenu = function (values, options) {
@sliceofbytes
sliceofbytes / widgetInputs.js
Created September 2, 2023 05:02
widgetInputs.js fix, for comfyui_mtb
import { ComfyWidgets, addValueControlWidget } from "../../scripts/widgets.js";
import { app } from "../../scripts/app.js";
const CONVERTED_TYPE = "converted-widget";
const VALID_TYPES = ["STRING", "combo", "number", "BOOLEAN"];
function isConvertableWidget(widget, config) {
return (VALID_TYPES.includes(widget.type) || VALID_TYPES.includes(config[0])) && !widget.options?.forceInput;
}
@sliceofbytes
sliceofbytes / chatgpt-create-code-int-env.sh
Created August 17, 2023 04:36
Create Python environment that closes matches chatgpt code-interpreter
#!/bin/bash
if [ -z "$1" ]; then
echo "Please provide a name for the virtual environment."
exit 1
fi
ENV_NAME=$1
# Ensure Pyenv is installed
@sliceofbytes
sliceofbytes / ANTLR_Grammer_Case_Insensitive.cs
Last active March 3, 2022 05:47
Grammer Syntax must be in all upper case for this to work.
public class InsenstiveStringStream : ANTLRStringStream
{
public InsenstiveStringStream(char\[\] data, int numberOfActualCharsInArray) : base(data, numberOfActualCharsInArray) {}
public CaseInsensitiveStringStream() {}
public CaseInsensitiveStringStream(string input) : base(input) {}
public override int LA(int i)