Skip to content

Instantly share code, notes, and snippets.

View Buom01's full-sized avatar

Bastien Adam Buom01

View GitHub Profile
#!/bin/sh
# One-paste-install:
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/Buom01/c8e332bc56e9076c29645af8aa532875/raw/minilibx-linux-installer.sh)"
function install_failed()
{
echo "Installation failed!"
exit 1
}
@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active July 9, 2025 02:10
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.
var preact = require('preact');
var createRenderer = require('./preact-dom-renderer');
// set up a rendering target
var renderer = createRenderer();
// render some stuff into the internal DOM
renderer.render(preact.h(PreactApp, pageConfig));
// get a snapshot of the current HTML
@nrdobie
nrdobie / dev-server.js
Last active September 29, 2019 14:17
Node.js Server with webpack and auto reload
const { fork } = require('child_process');
const webpack = require('webpack');
const webpackServerConfig = require('./webpack.server.js');
let bundler = webpack(webpackServerConfig);
let child;
bundler.watch({}, (err, status) => {
@gre
gre / easing.js
Last active July 11, 2025 12:47
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
/*
* apng-detect.js
* 2010-06-13
* By Eli Grey, http://eligrey.com
*
* Detects if a browser supports the APNG format and sets a
* global `APNG` boolean indicating if the browser supports APNG.
*
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.