Skip to content

Instantly share code, notes, and snippets.

@0xdevalias
0xdevalias / chatgpt-reverse-engineering-and-deep-dive-code-exploration.md
Last active May 21, 2024 09:16
Notes on reverse engineering ChatGPT's frontend web app + deep dive explorations of the code
@TechRancher
TechRancher / Basic Ubuntu Commands.md
Last active May 21, 2024 09:14
Ubuntu 18.04 Terminal Commands

Basic Ubuntu Commands

This is a list of the most basic but extremely useful commands. Learning these will help you have a strong foundation to add more sophisticated commands upon.

Here are some words that we use and some meanings that you may associate them with.

We use What you may know them as
directory folder
sudo Run as Administor
@nikita-mityagin
nikita-mityagin / index.js
Created January 17, 2023 08:17
Tron blockchain base58 address validation Javascript
import bs58 from "bs58";
import jssha from "jssha";
const sha256 = str => {
const inst = new jssha("SHA-256", "HEX");
inst.update(str);
return inst.getHash("HEX");
};
/**
@sbailliez
sbailliez / vagrant-vmware-fusion-13-apple-m1-pro.md
Last active May 21, 2024 09:12
Vagrant and VMWare Fusion 13 on Apple M1 Pro

Vagrant and VMWare Fusion 13 Player on Apple M1 Pro

This document summarizes notes taken to make VMWare Fusion 13 Player work on Apple M1 Pro. It builds upon a previous document based on VMWare Tech Preview 21H1

VMWare Fusion 13 was released on November 17, 2022 and Fusion 13.5 on October 19, 2023

Created on: November 20, 2022

Updated on: December 12, 2023

@paulirish
paulirish / what-forces-layout.md
Last active May 21, 2024 09:11
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@zulhfreelancer
zulhfreelancer / show-all-docker-build-logs.md
Created June 1, 2023 08:25
How to show all `docker build` logs?

How to show all docker build logs?

docker build -t YOUR-USER-NAME/YOUR-REPO:<YOUR-IMAGE-TAG> --no-cache --progress=plain .
@malash
malash / beijing-unicom-iptv.md
Created July 5, 2021 15:35
北京联通IPTV+OpenWrt配置方法
@jsmestad
jsmestad / smartparens-cheatsheet.md
Created September 9, 2018 00:19 — forked from pvik/smartparens-cheatsheet.md
A Cheatsheet for Emacs Smarparens example configuration

An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.

Traversal

C-M-f sp-forward-sexp
C-M-b sp-backward-sexp

Intercom user_hash

Remember that your secret key should never be exposed to the public

  • So Javascript code below should only be used for testing unless modified and used to run on a server
@nmn
nmn / utilities.stylex.ts
Created December 12, 2023 09:37
Tailwind Utilities in StyleX
import * as stylex from '@stylexjs/stylex'
export default stylex.create({
sr_only: {
position: 'absolute',
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: 'hidden',