Skip to content

Instantly share code, notes, and snippets.

@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 / 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)
import cheerio from "cheerio";
import UserAgent from "user-agents";
import * as cloudscraper from "cloudscraper";
import { DataSource } from "../../DataSource";
import { SourceType } from "../../../definitions/sources/SourceType";
import { SourceData, SourceLocalityDataPoint } from "../../../definitions/sources/SourceData";
import { SourceFeatures } from "../../../definitions/sources/SourceFeatures";
import { NumericalUtilities } from "../../../utilities/NumericalUtilities";
@sliceofbytes
sliceofbytes / advise.md
Created March 12, 2020 15:52
Advise from an Expert on Covid-19

The author is James Robb a virologist at UC San Diego

Subject: What I am doing for the upcoming COVID-19 (coronavirus) pandemic

Dear Colleagues, as some of you may recall, when I was a professor of pathology at the University of California San Diego, I was one of the first molecular virologists in the world to work on coronaviruses (the 1970s). I was the first to demonstrate the number of genes the virus contained. Since then, I have kept up with the coronavirus field and its multiple clinical transfers into the human population (e.g., SARS, MERS), from different animal sources.

The current projections for its expansion in the US are only probable, due to continued insufficient worldwide data, but it is most likely to be widespread in the US by mid to late March and April.

Here is what I have done and the precautions that I take and will take. These are the same precautions I currently use during our influenza seasons, except for the mask and gloves.: