Skip to content

Instantly share code, notes, and snippets.

View lboulard's full-sized avatar
💭
Be patient. I enjoy real world.

Laurent Boulard lboulard

💭
Be patient. I enjoy real world.
  • Versailles, France
View GitHub Profile
From 65752efbecf15f8a24ee83126115fd578d2f86e9 Mon Sep 17 00:00:00 2001
From: Wez Furlong <[email protected]>
Date: Mon, 8 Jan 2018 21:57:43 -0800
Subject: [PATCH 1/2] fix art.t test failure on alpine linux
Summary:
Looks like we end up with root_ holding a nullptr after
the associated test is finished. This only seems to be a problem
in practice on Alpine linux's musl libc based environment, and
only when built with `-O2`. Not sure if this is a c++ standard
@lboulard
lboulard / xkb.md
Last active December 6, 2024 18:34
XKB settings for US keyboard
@lboulard
lboulard / zeroes.sh
Last active January 20, 2019 08:55
Zeroed free space of vfat filesystem
#!/bin/sh
set -eu
usage() {
printf "usage: %s <filesystem>\n\n" "$(basename "$0")"
}
if [ $# != 1 ]; then usage >&2; exit 1; fi
fs="${1%/}"
@lboulard
lboulard / community_install_offline.bat
Created December 21, 2018 21:24
Save/restore VS2017 installation packages
@CD "%~dp0\vs2017offline"
.\vs_community.exe --noweb --locale en-US --addProductLang en-US ^
--passive --norestart ^
--config "%~dp0\community.vsconfig.json"
@lboulard
lboulard / python_executables.bat
Last active February 3, 2022 13:30
Get Python executable paths
@SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
@SET "HKEY=HKEY_LOCAL_MACHINE\Software\Python\PythonCore"
@ECHO.::::::::: Local Machine
@CALL :display "HKEY_LOCAL_MACHINE\Software\Python\PythonCore"
@ECHO.::::::::: Current User
@CALL :display "HKEY_CURRENT_USER\Software\Python\PythonCore"
@FOR /F "usebackq" %%v in (`py.exe -c "import sys;print(sys.winver)"`) DO @SET "VERSION=%%v"
@ECHO.::::::::: py.exe current version
@ECHO Current version: Python %VERSION%
@GOTO :EOF
@lboulard
lboulard / go.mod
Last active October 11, 2018 13:56
Parse YAML dual type field
module lboulard.net/go/playfield/flexible-yaml
require gopkg.in/yaml.v2 v2.2.1
@lboulard
lboulard / showlic.bat
Created August 31, 2018 09:15
Display Windows 10 license details
slmgr.vbs /dlv
@lboulard
lboulard / sddm-theme-chili.md
Last active August 12, 2021 17:01
Install chili sddm theme on Debian
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\Shell\Vim]
@="Edit with &Vim"
"Icon"="\"C:\\Vim\\vim81\\gvim.exe\""
[HKEY_CLASSES_ROOT\*\Shell\Vim\command]
@="\"C:\\Vim\\vim81\\gvim.exe\" \"%1\""
@lboulard
lboulard / packages.txt
Created July 30, 2018 14:29
Different representation for packages.txt in vim-win32-build
Package: upx
Version: 391w
Architecture: all
Source: http://upx.sourceforge.net/download/upx391w.zip (upx_bin.zip)
Checksum:
sha256:d7d4817f46d2616c209c46fb8bce44e4bec93ab5adef5e4dfc93ee879527be1b
Install: upx${Version}
Package: nsis
Version: 3.02.1