Skip to content

Instantly share code, notes, and snippets.

alert((webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken());
@nandorojo
nandorojo / knew.md
Last active May 12, 2025 20:08
What I wish I knew when I started with Expo Web, React Navigation & Next.js

I started using React Native in September 2018. I always forget some things when I build new apps, so I'll keep track of the gotchas on this post.

Some topics, such as navigation, will be fundamental to how I think about apps. Others, will be one-line helpers that make apps work more smoothly.

It's gotten to the point where I find my own answers from 6 months before on certain Github issues.

I'll keep adding over time as I think of more. If anyone thinks these topics would be useful, let me know and I'll elaborate.

I have made libraries to address a number of the topics here, from navigation to design.

Docker

Install Docker and NVIDIA Container Toolkit

Docker

#Docker Installation 

sudo apt-get update
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 12, 2025 20:05
Hyperlinks in Terminal Emulators
@alexchexes
alexchexes / chatgpt_ui_fix.user.js
Last active May 12, 2025 20:03
ChatGPT web-interface width fix (and other UI improvements)
// ==UserScript==
// @name ChatGPT CSS fixes
// @version 2025-05-07.2
// @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/*
// @match https://chatgpt.com/*
@BrunoQuaresma
BrunoQuaresma / nextapimock.ts
Last active May 12, 2025 19:59
NextApiResponse and NextApiRequest mocks
import { IncomingMessage } from 'http'
import {
NextApiRequestCookies,
NextApiRequestQuery,
} from 'next/dist/next-server/server/api-utils'
import { Socket } from 'net'
import { ServerResponse } from 'http'
import { NextApiRequest, NextApiResponse } from 'next'
import { Env } from 'next/dist/lib/load-env-config'
@hpcdisrespecter
hpcdisrespecter / sootpost.md
Created May 12, 2025 19:16
Obcessed Brimstone Post about Luke

Luke Smith AKA Lute

A Chronically Online AuDHD Man Loredumps About a Niche Microceleb (o algo)
An Obcessed Brimstone Longform Post

> tl;dr, Luke Smith is an internet microceleb who makes it a point to complain about modern life and being online, while being less online than he lets on. He is otherwise a typical right-of-center imageboard-adjacent entrepeneur taking crypto donations for projects, and those projects are polarizing because of their technical shortcomings and/or content, which may be seen as incongruent when his professed vs revealed preferences are taken into account.

Luke Smith, began his PhD. in Lingustics at the University of Arizona after earning his Master’s degree from the University of Georgia in 2015 [1]. Frustrated with academia and the tools at his disposal, he leveraged his linguistics background to produce a series of Unix shell scripts and wrappers around LaTeX, creating a set of dotfiles and environment setup sc

@MalikAbuShabab
MalikAbuShabab / organize.py
Last active May 12, 2025 19:47
Script organizing files and dividing them into folders according to their type
import os
import shutil
home_path = os.getcwd()
print("\t [+] Welcome in organize.py script - happy clean folder ;) \n")
images = 0
Code = 0
Docs = 0
archive = 0
for file in os.listdir(home_path):

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.

" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'