Skip to content

Instantly share code, notes, and snippets.

{"id":875825428,"keymap":[[{"col":0,"row":0,"val":41},{"col":1,"row":0,"val":190},{"col":2,"row":0,"val":189},{"col":3,"row":0,"val":32260},{"col":4,"row":0,"val":32261},{"col":5,"row":0,"val":30760},{"col":6,"row":0,"val":30759},{"col":7,"row":0,"val":172},{"col":8,"row":0,"val":174},{"col":9,"row":0,"val":171},{"col":10,"row":0,"val":168},{"col":11,"row":0,"val":170},{"col":12,"row":0,"val":169},{"col":13,"row":0,"val":76},{"col":14,"row":0,"val":0},{"col":15,"row":0,"val":2308},{"col":0,"row":1,"val":53},{"col":1,"row":1,"val":30},{"col":2,"row":1,"val":31},{"col":3,"row":1,"val":32},{"col":4,"row":1,"val":33},{"col":5,"row":1,"val":34},{"col":6,"row":1,"val":35},{"col":7,"row":1,"val":36},{"col":8,"row":1,"val":37},{"col":9,"row":1,"val":38},{"col":10,"row":1,"val":39},{"col":11,"row":1,"val":45},{"col":12,"row":1,"val":46},{"col":13,"row":1,"val":42},{"col":14,"row":1,"val":0},{"col":15,"row":1,"val":75},{"col":0,"row":2,"val":43},{"col":1,"row":2,"val":20},{"col":2,"row":2,"val":26},{"col":3,"row":2,"va
@yannbertrand
yannbertrand / .aerospace.toml
Last active July 30, 2025 20:40
.aerospace.toml
# You can use it to add commands that run after login to macOS user session.
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
# Available commands: https://nikitabobko.github.io/AeroSpace/commands
after-login-command = []
# You can use it to add commands that run after AeroSpace startup.
# 'after-startup-command' is run after 'after-login-command'
# Available commands : https://nikitabobko.github.io/AeroSpace/commands
after-startup-command = [
'exec-and-forget borders active_color=0xffe1e3e4 inactive_color=0xff494d64 width=5.0'
@yannbertrand
yannbertrand / biome.jsonc
Last active January 7, 2025 12:42
Biome base local config (in `~/Developer`)
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"formatter": {
"lineWidth": 120,
"indentStyle": "space",
"formatWithErrors": true,
"useEditorconfig": true
},
"javascript": {
"formatter": {
@yannbertrand
yannbertrand / nr-auto-node-run.sh
Last active March 21, 2025 13:13
`nr` bash function to use `node --run` when possible
nr() {
node_version=$(node -v)
major=$(echo $node_version | cut -c 2-3)
if [[ $(($major)) -gt 21 ]]
then
echo "node $node_version, using node --run $@ ⚡\n"
node --run $@
else
echo "node $node_version, using npm run $@\n"
npm run $@
@yannbertrand
yannbertrand / links.txt
Last active October 27, 2023 11:46
Formation IMT 2023
@yannbertrand
yannbertrand / settings.json
Last active August 12, 2025 08:44
VS Code config
{
"window.zoomLevel": 2,
"window.autoDetectColorScheme": true,
"window.newWindowDimensions": "maximized",
// Editor
"editor.renderWhitespace": "trailing",
"editor.formatOnSave": true,
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
@yannbertrand
yannbertrand / homebrew-cheatsheet.md
Last active December 11, 2021 13:40
homebrew cheatsheet

Current version: 3.3.7

Install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)

BREW

@yannbertrand
yannbertrand / fixtures.json
Created February 2, 2019 11:09
2019 Six Nations fixtures
[
{
"matchNumber": 1,
"kickOff": "2019-02-01T20:00:00.000Z",
"teamA": "France",
"teamB": "Wales",
"location": "Stade de France, Paris",
"finalScore": "19-24"
},
{
@yannbertrand
yannbertrand / index.js
Created January 14, 2017 20:12
electron-config default usage not working
const Config = require('electron-config');
const config = new Config();
config.set('unicorn', '🦄');
console.log(config.get('unicorn'));
//=> '🦄'
// use dot-notation to access nested properties
config.set('foo.bar', true);
console.log(config.get('foo'));
@yannbertrand
yannbertrand / using_xdebug_with_postman.md
Created December 6, 2016 15:04
Using xDebug with POSTMAN

Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION=PHPSTORM