Skip to content

Instantly share code, notes, and snippets.

@alexchexes
alexchexes / chatgpt_ui_fix.user.js
Last active April 30, 2024 11:28
ChatGPT web-interface width fix (and other UI improvements)
// ==UserScript==
// @name ChatGPT CSS fixes
// @version 2024-02-11
// @updateURL https://gist.github.com/alexchexes/d2ff0b9137aa3ac9de8b0448138125ce/raw/chatgpt_ui_fix.user.js
// @downloadURL https://gist.github.com/alexchexes/d2ff0b9137aa3ac9de8b0448138125ce/raw/chatgpt_ui_fix.user.js
// @namespace http://tampermonkey.net/
// @description Adjusts width of side bar and messages of the chatGPT web interface
// @author alexchexes
// @match https://chat.openai.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
@uwezi
uwezi / 20240309_opencv.py
Last active April 30, 2024 11:27
[video inclusion in Manim] Include video objects picture-in-picture. #manim #animate #video #opencv #videomobject
import cv2
from PIL import Image, ImageOps
from dataclasses import dataclass
@dataclass
class VideoStatus:
time: float = 0
videoObject: cv2.VideoCapture = None
def __deepcopy__(self, memo):
return self
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active April 30, 2024 11:26
set -e, -u, -o, -x pipefail explanation
@jjb
jjb / file.md
Last active April 30, 2024 11:26
Using Jemalloc 5 with Ruby.md

For years, people have been using jemalloc with ruby. There were various benchmarks and discussions. Legend had it that Jemalloc 5 didn't work as well as Jemalloc 3.

Then, one day, hope appeared on the horizon. @wjordan offered a config for Jemalloc 5.

Ubuntu/Debian

FROM ruby:3.1.2-bullseye
RUN apt-get update ; \
@verazuo
verazuo / cuda_11.7_installation_on_Ubuntu_20.04
Last active April 30, 2024 11:25 — forked from X-TRON404/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 20.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@tbaddade
tbaddade / a11y-list.md
Last active April 30, 2024 11:25
Sammlung für Barrierefreiheit
@dhruvhcinterior
dhruvhcinterior / gist:da72fb5f3081760faed7335ac5fac772
Created April 30, 2024 11:13
Expert interior designers in Delhi / Home Renovation Services In Delhi NCR
Expert interior designers in Delhi / Home Renovation Services In Delhi NCR
@TheAndrey
TheAndrey / yandex.user.css
Last active April 30, 2024 11:22
Блокировка самой назойливой рекламы в мире
/* ==UserStyle==
@name Yandex ADBlock
@namespace TheAndrey
@version 1.1.8
@license WTFPL
@preprocessor default
@updateURL https://gist.github.com/TheAndrey/11eacc8ea931f33e846ec8edeb4b247a/raw/yandex.user.css
==/UserStyle== */
@-moz-document domain("yandex.ru"), domain("ya.ru"), domain("dzen.ru") {
@alissa-maria
alissa-maria / daily-text.py
Created April 9, 2024 10:09
Prints daily text + explanation to stdout
import requests
from bs4 import BeautifulSoup
url = 'https://wol.jw.org/en/wol/h/r1/lp-e'
response = requests.get(url)
html_content = response.content
soup = BeautifulSoup(html_content, 'html.parser')