Skip to content

Instantly share code, notes, and snippets.

@xros
xros / readme.md
Created August 11, 2024 13:11
Bypassing GPU lock (such as RTX 20xx GPU) when installing ChatRTX from Nvidia

By time time of writting which is 11th Aug 2024, ChatRTX from Nvidia has only offically supported RTX 30/40 series GPU. I have a RTX 2080Ti which Nvidia has abandoned support.

I don't like this.

So I found out the way of bypassing the ChatRTX installation process on Windows 11 with RTX 2080 Ti.

After finishing downloading all the ChatRTX zip file from Nvidia, find some files in the folder and change it. https://www.nvidia.com/en-us/ai-on-rtx/chatrtx/

Steps

#!/bin/bash
# You can call this script like this:
# $./volume.sh up
# $./volume.sh down
# $./volume.sh mute
# $./volume.sh mtoggle
device='default' #audio device
interval='5' #Percentage by which to update the volume
@mathisto
mathisto / init.lua
Created October 5, 2020 13:46
My `~/.hammerspoon/init.lua` config file. Uses a QMK bound F19 key to allow for optional "modified" hyper chords.
hs.application.enableSpotlightForNameSearches(true)
hs.notify.new({title="Hammerspoon", informativeText="Config loaded"}):send()
hs.window.animationDuration = 0 -- Animations are silly
-- Load Spoons
hs.loadSpoon("WinWin")
hs.loadSpoon("ReloadConfiguration")
spoon.ReloadConfiguration:start()
-- Bind the Hyper key
@MasonSlover
MasonSlover / SFSymbolTitles.swift
Last active September 17, 2025 21:15
A .swift file with all SF Symbols titles in arrays, separated by category for app development and icon selection
//The following file has 20 arrays, allSymbols[] has the title of every SFSymbol, and the remaining 19 arrays have the following categories:
//communication, weather, objectsAndTools, devices, connectivity, transportation, human, nature, editing, textFormatting, media, keyboard, commerce, time, health, shapes, arrows, indicies, math
private var allSymbols = ["0.circle", "00.circle", "0.circle.fill", "00.circle.fill", "0.square", "00.square", "0.square.fill", "00.square.fill", "1.circle", "01.circle", "1.circle.fill", "01.circle.fill", "1.magnifyingglass", "1.square", "01.square", "1.square.fill", "01.square.fill", "2.circle", "02.circle", "2.circle.fill", "02.circle.fill", "2.square", "02.square", "2.square.fill", "02.square.fill", "3.circle", "03.circle", "3.circle.fill", "03.circle.fill", "3.square", "03.square", "3.square.fill", "03.square.fill", "4.alt.circle", "4.alt.circle.fill", "4.alt.square", "4.alt.square.fill", "4.circle", "04.circle", "4.circle.fill", "04.circle.fill", "4.square", "04.square", "4
@ctrlcctrlv
ctrlcctrlv / rust-maintainer-perfectionism.md
Last active May 15, 2025 04:03
Rust maintainer perfectionism

Rust maintainer perfectionism, or, the tragedy of Alacritty

I did not submit this to Hacker News and did not intend that this post would have high circulation but have no real problem with it being there or with it having such. I have more recent comments below. This post is from January 2020 and predates the Modular Font Editor K (MFEK) project.

I have not worked on Rust projects in quite a while, and don't know if I ever will again. I feel many crate maintainers are way too perfectionist, for example, despite all the developer hours that went into this PR, it took the effort within years to be (halfway) merged.

There's always a reason not to merge, isn't there? It would be better done with a new nightly language feature, or the function signature should have a where clause, or the documentation is not perfect. There's always a new nit to pick in the world of Ru

@uogbuji
uogbuji / pixelbook-dev-setup.md
Last active January 4, 2025 22:10 — forked from cassiozen/pixelbook-dev-setup.md
Notes on setting up Pixelbook for development

Pixelbook or Pixel Slate Setup

Partly updated June 2023

General caution: Chrome OS is a secure OS by design, but this has at least one key consequence. If you change your Google account password, you will still be required to enter the old password the next time you access each Chrome OS device. Devices are encrypted with that password, so the OS needs to decrypt using the old password then re-encrypt using the new one. If you forget your old password you will lose access to your Chrome OS device data. As always, make sure you keep backups up to date.

Fast User Switching

If you have multiple Chrome OS accounts (Say, work and play), you can quickly sitch between them without logging out:

@pixelomer
pixelomer / mkjail.sh
Last active March 13, 2025 09:33
Create a macOS chroot jail with GNU bash and utilities
#!/usr/bin/env sh
#############################################
# WARNING #
# No more commits are going to be made to #
# this gist. Please get the latest script #
# from the new repository: #
# https://github.com/pixelomer/macos-mkjail #
#############################################
@jimfoltz
jimfoltz / tw5-server.rb
Last active July 4, 2025 12:46
A local server for TiddlyWiki5 that allows saving wiki.
require 'webrick'
require 'fileutils'
BIND_ADDRESS = "127.0.0.1"
PORT = 8080
BACKUP_DIR = 'bak'
if ARGV.length != 0
root = ARGV.first.gsub('\\', '/')

I'm t9md

t9md__t9md_.png Presentation1.png

  • My editor history: Vim > Emacs > Vim > Atom
@miguelmota
miguelmota / remove_tuxera.sh
Last active September 26, 2025 07:13
Completely uninstall and remove Tuxera NTFS on MacOS (resets trial version)
sudo rm -rf /Applications/Tuxera\ Disk\ Manager.app
sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS
sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs