Skip to content

Instantly share code, notes, and snippets.

@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

@Aldaviva
Aldaviva / Windows 10 & 11 services.md
Last active December 27, 2024 07:20
Safety of disabling services in Windows 10 and 11

These settings apply to normal, functioning Windows 10 and 11 Pro desktops and laptops with

  • wired Ethernet
  • Wi-Fi
  • Bluetooth
  • IPv4
  • IPv6
  • no touch screen

Safe to disable

@zchee
zchee / actionlist.vim
Last active December 27, 2024 07:18
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>