Skip to content

Instantly share code, notes, and snippets.

View shuritch's full-sized avatar
:shipit:

Alexander Ivanov shuritch

:shipit:
View GitHub Profile
@shuritch
shuritch / Stringify.js
Last active March 23, 2024 13:15
Safe json stringifier
'use strict';
const MAX_DEPTH = 10;
const MAX_ITEMS = 100;
const ROOT_NAME = 'root';
const stringify = Stringify.bind({ maxItems: MAX_ITEMS, maxDepth: MAX_DEPTH, name: ROOT_NAME });
// prettier-ignore
/* eslint-disable consistent-return */
function Stringify(sample, key = this.name ?? 'root', stack = new WeakMap()) {
@ErickWendel
ErickWendel / websocket-client.js
Last active March 3, 2025 17:04
Pure WebSocket Node.js Server using Native HTTP Module
// make a request
const options = {
port: 1337,
host: 'localhost',
headers: {
'Connection': 'Upgrade',
'Upgrade': 'websocket'
}
};
const protocol = 'http'
@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active October 25, 2025 12:00
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.
@heroheman
heroheman / ranger-cheatsheet.md
Last active November 1, 2025 09:37
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts