Skip to content

Instantly share code, notes, and snippets.

@navjack
navjack / 1gpt-j 8bit readme.md
Last active June 10, 2023 14:10
Local GPT-J 8-Bit on WSL 2

Local GPT-J 8-Bit on WSL 2

This should would on GPUs with as little as 8GB of ram but in practice I've seen usage go up to 9-10GB

I have only personally tested this to be functional in WSL 2 and Windows 11's latest Dev preview build. Attempts to run natively in Windows didn't work but I won't stop you from trying.

I have personally backed up any possibly one day could be lost to time remote files. I could provide those if needed.

Now, why is this neat? Why is this cool?

@aluxian
aluxian / threadreader.js
Created February 7, 2022 10:47
Bookmarklet for redirecting from tweet to thread reader
// Test case:
// https://mobile.twitter.com/danluu/status/1487228574608211969
// https://threadreaderapp.com/thread/1487228574608211969.html
// Use on twitter.com root tweet page
window.location = `https://threadreaderapp.com/thread/${
/status\/(\d+)/g.exec(document.location.pathname)[1]
}.html`;
@Viole403
Viole403 / anti-adblock.js
Created June 8, 2020 04:26
Anti Adblock Killer
// ==UserScript==
// @name Anti-Adblock Killer | Reek
// @namespace https://userscripts.org/scripts/show/155840
// @description Helps you keep your Ad-Blocker active, when you visit a website and it asks you to disable.
// @author Reek | reeksite.com
// @version 10.0
// @encoding utf-8
// @license https://creativecommons.org/licenses/by-sa/4.0/
// @icon https://raw.github.com/reek/anti-adblock-killer/master/anti-adblock-killer-icon.png
// @homepage https://github.com/reek/anti-adblock-killer/
@gmolveau
gmolveau / firefox_dark_background.md
Last active May 25, 2024 15:59
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active June 29, 2024 01:12
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
sudo apt-add-repository ppa:yannubuntu/boot-repair && \
sudo apt-get update && \
sudo apt-get install -y boot-repair && \
boot-repair
sudo apt-get install os-prober && \
sudo os-prober && \
sudo update-grub
// https://help.ubuntu.com/community/Boot-Repair
@sunnywalker
sunnywalker / html-table-to-markdown-extra.html
Last active August 3, 2022 12:09
HTML Table to Markdown Extra converter
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Table to Markdown Extra Table</title>
<style>
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}
body { font-family: -apple-system, "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.5;
text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
textarea { width: 100%; height: 15em; }
@piotrpolak
piotrpolak / gist:c616455f1da8dfc2d4e101afbfdcdc8d
Last active July 17, 2023 12:25
Cygwin unattended installation
# 1. Download https://cygwin.com/setup-x86_64.exe
# 2. Copy and paste the following lines in your default Windows CMD
# to install Cygwin alongside with some additional packages under c:\cygwin64
# NOTE: First navigate to the same directory where setup-x86_64.exe is located
setup-x86_64.exe ^
--quiet-mode ^
--packages ^
bzip2,^