Skip to content

Instantly share code, notes, and snippets.

View joelvaneenwyk's full-sized avatar
🏠
Finding the secrets to the universe...

Joel Van Eenwyk joelvaneenwyk

🏠
Finding the secrets to the universe...
View GitHub Profile
// ==UserScript==
// @name ChatGPT / Gemini / Claude Width
// @namespace http://tampermonkey.net/
// @version 0.10
// @description increase chatgpt, gemini and claude box width
// @author bitmunja
// @license MIT
// @match https://gemini.google.com/*
// @match https://chat.openai.com/*
// @match https://chatgpt.com/*
@joelvaneenwyk
joelvaneenwyk / main.ipynb
Last active March 12, 2025 17:39
distinct-words
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/sh
#
# update_fork_remotes.sh
#
# A POSIX-compliant script to automatically set the "origin" remote
# to your fork and the "upstream" remote to the parent repository,
# if this repository is indeed a fork on GitHub.
#
# Default: Uses SSH remotes.
# Pass `--https` or `-h` as an argument to use HTTPS remotes instead.
@joelvaneenwyk
joelvaneenwyk / installing_nvidia_driver_cuda_cudnn_linux.md
Created January 10, 2025 22:30 — forked from kmhofmann/installing_nvidia_driver_cuda_cudnn_linux.md
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

@joelvaneenwyk
joelvaneenwyk / backup-github.sh
Created July 15, 2024 20:56 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
#-------------------------------------------------------------------------------
# NOTES:
#-------------------------------------------------------------------------------
# * Under the heading "CONFIG" below you'll find a number of configuration
# parameters that must be personalized for your GitHub account and org.
# Replace the `<CHANGE-ME>` strings with the value described in the comments
# (or overwrite those values at run-time by providing environment variables).
#!/usr/bin/sh
set -eax
###################################
# Prerequisites
# Update the list of packages
sudo apt-get update
@joelvaneenwyk
joelvaneenwyk / docker-ssh-forward.bash
Created January 31, 2024 01:10 — forked from d11wtq/docker-ssh-forward.bash
How to SSH agent forward into a docker container
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash
@joelvaneenwyk
joelvaneenwyk / Git Subtree basics.md
Last active February 14, 2025 21:54 — forked from SKempin/Git Subtree basics.md
Git Subtree basics

Git Subtree Basics

If you hate git submodule, then you may want to give git subtree a try.

Background

When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.

When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.

@joelvaneenwyk
joelvaneenwyk / .eslintrc.js
Created January 15, 2024 20:49 — forked from adrianhall/.eslintrc.js
A sample .eslintrc file
var OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
"es6": true
},
"ecmaFeatures": {
// env=es6 doesn't include modules, which we are using
"modules": true
@joelvaneenwyk
joelvaneenwyk / wire-chat-export.md
Created December 6, 2023 18:46 — forked from OmeGak/wire-chat-export.md
Wire chat export

Wire doesn't support exporting chat history (wireapp/wire#116). It is, however, possible to access the decrypted messages in the local storage of a browser. This guide will help you produce a text export once you are logged in https://app.wire.com. All from the browser console.

Open a connection to your browser local storage:

var db
var request = indexedDB.open("wire@production@4278eafb-b21c-4d7a-aad4-2be4fa3a9fa0@permanent")
request.onerror = function(event) {
  console.log("Why didn't you allow my web app to use IndexedDB?!")
}