Skip to content

Instantly share code, notes, and snippets.

@blockinhead
blockinhead / vp2_test.py
Created August 29, 2018 11:29
minimalistic maya locator with viewport 2.0 draw override
# encoding: utf8
import maya.api.OpenMaya as om
import maya.api.OpenMayaUI as omui
import maya.api.OpenMayaRender as omr
def maya_useNewAPI():
pass
@888iee
888iee / virtualdisplay.md
Created August 29, 2024 15:19
How to create a virtual diplay on X11

This works only for nvidia cards running on x11!

I'm not responsible for any damage this might cause. Do at your own risk

Sometimes you will only have the console accessible, therefore open this document on another device. I tested this with the following versions.

|Software|Version|

@nekiee13
nekiee13 / gist:c8ec43bce5fd75d20e38b31a613fd83d
Created January 30, 2024 03:56
Install Ollama under Win11 & WSL - CUDA Installation guide
CMD prompt - verify WSL2 is installed
`wsl --list --verbose`
or
`wsl -l -v`
git clone CUDA samples - I used location at disk d:\\LLM\\Ollama , so I can find samples with ease
`d: && cd d:\LLM\Ollama`
`git clone --recursive -j6 https://github.com/NVIDIA/cuda-samples.git`
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active December 27, 2024 07:34
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@solarkraft
solarkraft / syncthing-automerge.py
Last active December 27, 2024 07:29
Monitors a Syncthing-synced directory and tries to merge conflicting files (based on https://www.rafa.ee/articles/resolve-syncthing-conflicts-using-three-way-merge/). Probably adaptable for other directory types, but only tested with Logseq (works for me™️).
# This script automatically handles Syncthing conflicts on text files by applying a
# git three-way merge between the previously synced version and each divergent version.
# It depends on the watchdog package and git.
# For automatic dependency installation when running with ´uv run --script deconflicter.py´:
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "watchdog",
@andrewjmead
andrewjmead / jetformbuilder-submit-hook.php
Last active December 27, 2024 07:28
JetFormBuilder form submission hook for WordPress
<?php
/**
* JetFormBuilder has no documentation about what hooks they fire or when they fire them.
*
* I ended up digging into their source code to try and find an action that fires for all
* form submission, even if they don't have a custom "post submit action" set up.
*
* Using jet-form-builder/form-handler/after-send gets the job done.
*/
{%comment%}
#############################################
# Mohamed El-Ghorfi Discount Code on Cart #
# [UPDATED] #
#############################################
# Paypal Me: https://paypal.me/elghorfimed #
# Buy Me A Coffee: #
# https://www.buymeacoffee.com/elghorfi #
#############################################
# [email protected] #
@K1ethoang
K1ethoang / Active StarUml version 6 for Window | MacOS | Linux.md
Last active December 27, 2024 07:23
Active StarUml version 6 for Window | MacOS | Linux
@bradtraversy
bradtraversy / docker-help.md
Last active December 27, 2024 07:23
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info