Skip to content

Instantly share code, notes, and snippets.

View beekill95's full-sized avatar
🤘
Everything Is Awesome!!!

Quan Nguyen beekill95

🤘
Everything Is Awesome!!!
View GitHub Profile

2022 Zephyrus G14 Fedora Silverblue Setup

GPU Naming

Most applications in Linux will report the names of the two GPUs as follows.

  • Dimgrey Cavefish is dGPU
  • Yellow Carp is iGPU

Boot Hotkeys

@idavydov
idavydov / README.txt
Last active November 8, 2023 19:18 — forked from QuentinAndre/README.txt
A Jupyter NBConvert HTML template adding a toggle to hide/show each code cell.
# You need to put index.html.j2 & conf.json into a directory called, e.g., mytmpl/.
# Typical usage: The --no-prompt is important (layout is all messed up otherwise).
jupyter nbconvert MySuperNotebook.ipynb --to html --no-prompt --template mytmpl/
# By default, all cells are hidden. You can override this behavior for some cells by giving them a 'code_shown' tag.
@cellularmitosis
cellularmitosis / README.md
Last active April 10, 2025 00:22
Matching a string literal using regex

Blog 2019/9/1

<- previous | index | next ->

Matching a string literal using regex

updated 2025/4/9 to add a Python demo

@dmfigol
dmfigol / asyncio_loop_in_thread.py
Last active May 19, 2025 04:43
Python asyncio event loop in a separate thread
"""
This gist shows how to run asyncio loop in a separate thread.
It could be useful if you want to mix sync and async code together.
Python 3.7+
"""
import asyncio
from datetime import datetime
from threading import Thread
from typing import Tuple, List, Iterable