Skip to content

Instantly share code, notes, and snippets.

View NicHub's full-sized avatar
😈

NicHub

😈
  • Switzerland
  • 22:58 (UTC +02:00)
View GitHub Profile
@NicHub
NicHub / vscode-copilot-font-size.md
Last active September 4, 2025 07:31
VScode copilot font size
code "/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.css"
  • Paste this at the end
  • Save as sudo
  • Restart VSCode
  • Dismiss corruption warning
  • Must be redone after VSCode update
@NicHub
NicHub / css-dev-in-browser.md
Last active September 1, 2025 06:41
css-dev-in-browser.md
@NicHub
NicHub / devtools-zoom.md
Last active August 28, 2025 10:36
Guide on zooming in browser developer tools using keyboards where the `+` key requires the Shift modifier.

DEVTOOLS ZOOM

Guide on zooming in browser developer tools using keyboards where the + key requires the Shift modifier, but the shortcut does not work as expected.

Gecko

  • Navigate to about:config
  • Search for devtools.toolbox.zoomValue
@NicHub
NicHub / js_console_snippets.md
Last active August 15, 2025 16:00
JS CONSOLE SNIPPETS

Enable select and copy on every element of a web page

document.querySelectorAll('*').forEach(el => { el.style.userSelect = 'auto'; el.style.webkitUserSelect = 'auto'; el.style.mozUserSelect = 'auto'; el.style.msUserSelect = 'auto'; el.oncontextmenu = null; el.onselectstart = null; el.ondragstart = null; el.onmousedown = null; }); document.onselectstart = null; document.oncontextmenu = null; document.ondragstart = null; document.onmousedown = null; document.body.style.userSelect = 'auto';

Print single page PDF

heightMultiplier = 10;

MESHTASTIC — COMMANDES UTILES

PORTS=(
    /dev/cu.usbmodem11101
    /dev/cu.usbmodem11201
    /dev/cu.usbmodem114201
)
PORT=${PORTS[3]} && echo $PORT

Lister les ports séries si plusieurs sont utilisés

@NicHub
NicHub / android-power-saving-settings.md
Last active March 6, 2025 16:56
ANDROID POWER SAVING SETTINGS

ANDROID POWER SAVING SETTINGS

https://www.youtube.com/watch?v=OfMdQVOfdmc

  • Don’t choose 5G in this config : (en) Connections / Mobile networks / Network mode / (fr) Connexions / Réseaux mobiles / Mode réseau

  • Turn on dark mode (en) Display /

@NicHub
NicHub / radio_station_playlist.js
Created April 3, 2023 13:57
Radio station playlist
let radio_station_playlist = [
{
"geo_name": "France",
"stations": [
{
"station_name": "France Inter",
"live_urls": [
"https://www.radiofrance.fr/franceinter/direct"
],
"stream_urls": [
@NicHub
NicHub / ENCEINTES_BLUETOOTH_PORTABLES.md
Last active March 26, 2023 18:37
ENCEINTES BLUETOOTH PORTABLES

CRITÈRES

  • Prix
  • Qualité sonore
  • Esthétique
  • Connectique
  • Facilité de connexion
  • Kit main libre
  • Dimensions
  • Poids
  • Durée de la batterie
@NicHub
NicHub / .gitignore
Created December 12, 2022 14:33
.gitignore
._.DS_Store
.DS_Store
*.FCStd1
*ajeter*
*nogit*
WifiSettings.h
arduino_secrets.h
[wW][iI][fF][iI][sS][eE][tT][tT][iI][nN][gG][sS].*
ESPSettings.h
.~lock.*
@NicHub
NicHub / wintricks.md
Last active March 4, 2023 11:01
Windows tricks

WINDOWS TRICKS

Most of the commands below can be run from the “Run Box” with the shortcuts WIN+R or WIN+E CTRL+L. To run the commands with admin privileges, hit Ctrl+Shift+Enter after typing them.

SHUTDOWN COMPUTER

shutdown /p