Skip to content

Instantly share code, notes, and snippets.

@Artefact2
Artefact2 / README.md
Last active April 28, 2024 12:49
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggerganov/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active April 28, 2024 12:48
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@rigwild
rigwild / aes.js
Last active April 28, 2024 12:47
Easily encrypt string or object using Crypto-JS AES encryption
'use strict'
const password = 'secure secret key'
const encrypt = (content, password) => CryptoJS.AES.encrypt(JSON.stringify({ content }), password).toString()
const decrypt = (crypted, password) => JSON.parse(CryptoJS.AES.decrypt(crypted, password).toString(CryptoJS.enc.Utf8)).content
// Encrypt
const encryptedString = encrypt('This is a string', password)
const encryptedObject = encrypt({ test: 'This is an object' }, password)
@eeeee
eeeee / index.html
Created June 4, 2020 05:17 — forked from ChristopherLaytonWasTakenSoIWentWithT/index.html
CP2102 (used by ESP32-DevKitC) WebUSB device driver
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>esptool.js</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xterm/2.9.2/xterm.min.js" integrity="sha256-8rsVcpCnO6HdeJL84i0VdubjM42fjSmO8aONghdq3gc=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/xterm/2.9.2/xterm.min.css" integrity="sha256-w69o8Y6P5VZjfYFmn2KlqMU7TUi2I+oWObi8FLlVZZg=" crossorigin="anonymous" />
</head>
@tuxity
tuxity / navicat_premium_reset_trial.sh
Last active April 28, 2024 12:44
Reset Navicat Premium 15/16 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
@noghartt
noghartt / cc.md
Last active April 28, 2024 12:43
Resources to learn more about Computer Science and related stuffs
@dglaude
dglaude / 1st_readme.txt
Last active April 28, 2024 12:40
Home Assistant Rainbow Loop with Ikea Tradfri RGB light
Please find below the various piece of code that together control my RGB light to loop in Rainbow.
Every two seconds, it change from one colour to another based on the value of the second.
So it compute 30 differents RGB value in a "circle", all with the same Saturation and Brightness both forced to 1.0
The transition from one colour to another is done in one seconds.
The name of my Tradfri RGB light bulb is "light.couleur"
A link to my video on Twitter:
https://twitter.com/DavidGlaude/status/1059596285991366657
@4lgn
4lgn / arch-linux-cleanup.md
Last active April 28, 2024 12:36
Arch Linux Cleanup

Arch Linux Cleanup

Basic notes and commands/scripts to help ease the cleanup process of your Arch Linux installation.

Introduction

One of the big pros of using Arch Linux is obviously the reduced bloat on your system, as you are obviously the sole proprietor of such bloat.

However, just as a large software project that gets developed on constantly, we end up with technical debt - and when using your Arch system as a daily driver, you will probably acquire a certain amount of such "bloat debt" over the years.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timer Test</title>
<style>
.block {
width: 100px;
height: 100px;