I hereby claim:
- I am insilications on github.
- I am insilications (https://keybase.io/insilications) on keybase.
- I have a public key whose fingerprint is A642 89F0 8C22 FEBE 963D 808A 630F 4307 D9A1 CDCF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Locate the driver installer under current directory, or download one if not found | |
echo -e "\e[33m\xe2\x8f\xb3 Locating NVIDIA-Linux-x86_64-<VERSION>.run ...\e[m" | |
INSTALLER="$(find "$PWD" -maxdepth 1 -name 'NVIDIA-Linux-x86_64*\.run' | sort -r | head -1 )" | |
if [ "$INSTALLER" = '' ]; then | |
## Cannot find installer, download one | |
echo -e "\e[31m\xe2\x9d\x8c Cannot find NVIDIA-Linux-x86_64-<VERSION>.run under current directory\ | |
or ~/Downloads\e[m" | |
LATEST="$(curl -s -L https://download.nvidia.com/XFree86/Linux-x86_64 | grep "<span class='dir'>"\ |
vscode |
from typing import Any, Callable, ClassVar, List, Optional, overload, Generic, TypeVar | |
T1_signal = TypeVar("T1_signal") | |
T2_signal = TypeVar("T2_signal") | |
T3_signal = TypeVar("T3_signal") | |
T4_signal = TypeVar("T4_signal") | |
T5_signal = TypeVar("T5_signal") | |
T6_signal = TypeVar("T6_signal") | |
// ==UserScript== | |
// @name OpenAI GPT-4o and Anthropic Sonnet 3.5 Token Counter for LibreChat v4 | |
// @version 1.4 | |
// @description Automatically count tokens of chat content on LibreChat. Based on https://gist.github.com/avimar/1649504125b87e913bf41147029800a8 | |
// @match http://localhost:3080/* | |
// @grant none | |
// @require https://raw.githubusercontent.com/insilications/tiktoken/master/js/mydist/bundle.js | |
// ==/UserScript== | |
(function () { |
#!/usr/bin/env bash | |
set -eu | |
usage_error() { echo >&2 "$(basename "$0"): $1"; exit 2; } | |
show_options() { | |
cat << 'EOF' | |
Show Transparent HugePage (THP) across processes sorted by usage |
This is my modified attempt derived from https://gist.github.com/galaxia4Eva/9e91c4f275554b4bd844b6feece16b3d with vim.defer_fn(setCursor, 10)
to make sure the terminal has time to process the content and the buffer is ready.
/home/YOUR_USER/.config/nvim/lua/kitty+page.lua:
return function(INPUT_LINE_NUMBER)
vim.opt.encoding='utf-8'
-- Prevent auto-centering on click
vim.opt.scrolloff = 0