Skip to content

Instantly share code, notes, and snippets.

View astrolemonade's full-sized avatar
🔍
Happiness should be a pure function without any parameters.

astrolemonade astrolemonade

🔍
Happiness should be a pure function without any parameters.
View GitHub Profile
@astrolemonade
astrolemonade / README.md
Created September 17, 2024 23:17 — forked from jamiephan/README.md
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@astrolemonade
astrolemonade / esp-idf-on-wsl2.md
Created September 15, 2024 19:54 — forked from abobija/esp-idf-on-wsl2.md
ESP-IDF on WSL2 - Build, Flash and Monitor

ESP-IDF on WSL2 - Build, Flash and Monitor ⚡

Demo

How to setup ESP-IDF on WSL2 Ubuntu 20.04 - Config, Build and Flash

Intro

WSL2 still does not support USB devices, but with a little effort we can make possible to flash and monitor ESP device from WSL2.

// Go to the following link in your YouTube: https://www.youtube.com/feed/channels
// Scroll the page all the way down until you reach the very last subscribed channel in your list
const DELAY = 100;
const delay = ms => new Promise(res => setTimeout(res, ms));
const list = document.querySelectorAll("#grid-container > ytd-channel-renderer");
for (let index = 0; index < list.length; index++) {
console.log("")
@astrolemonade
astrolemonade / Fix Broken EDID Guide.md
Created August 8, 2024 12:57 — forked from hinell/Fix Broken EDID Guide.md
Guide how to achieve better resolution with broken EDID. Two methods are used: xorg.conf config and kernel params.

Fix Broken EDID Guide

This guide outlines replacement of the broken EDID metadata file for the device in Linux Operating Systems.

Last-Modified: Sunday, April 11, 2021

• • •

impl<V: Value> core::str::FromStr for NonNormalizingDec<V> {
type Err = &'static str;
#[inline(never)]
#[rustfmt::skip]
fn from_str(s: &str) -> Result<Self, Self::Err> {
/// Converts an ASCII decimal digit to an int.
///
/// In release builds, no range checks are performed and passing a
/// non-digit character will result is undefined (yet safe) behavior.
@astrolemonade
astrolemonade / markdown-details-collapsible.md
Created April 30, 2024 22:13 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@astrolemonade
astrolemonade / spi_recorder.ino
Created April 17, 2024 06:45 — forked from wareya/spi_recorder.ino
long SPI message recorder - rasberry pi pico (rp2040), arduino IDE .ino file (C++)
// wiring example for ripping a PMW3360 SROM: https://i.imgur.com/EspAlvz.jpeg
// set the board to 240mhz or higher for best results (WARNING: higher than 240mhz only works with USB if you overvolt the MCU)
// this implements reading SPI mode 3. if you want a different mode, you need to edit these two lines:
// uint32_t clockval = (1 << pin_clock);
// if (newclock && !clockval && buff_i < buffsize)
#include <pico/stdlib.h>
#define buffsize 50000
import re
tpp = """
┌────┐
╭───┤ ├───╮
│ │ │ │
[MO] [23] │ ⌾ └────┘ ⌾ │ [BAT]
[MI] [19] │ ⌾ ▣ │ ⏚
[SCK] [18] │ ⌾ ⌾ │ [5V]
[SS] [ 5] │ ⌾ ⌾ │ [3V3]
[SCL] [22] │ ⌾ ⌾ │ [ 4] [TCH0] [ADC2-0] [RTC10]