Skip to content

Instantly share code, notes, and snippets.

View gildas-ld's full-sized avatar

Gildas Le Drogoff gildas-ld

View GitHub Profile
@rufoa
rufoa / patch.sh
Last active April 24, 2025 15:53
sublime merge 2 build 2068 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid
@salkin-mada
salkin-mada / app_launcher_window_switcher.md
Last active January 1, 2024 07:27
fzf/skim app launcher + window switcher using kitty/alacritty

.

Here follows a simple example using sway. Scripts and locations can/should be modified for your needs and layout can be changed to whatever likings. export FZF / SKIM default envir vars can also change behavior in addition to local fzf/skim --flags during command or scripting will override defaults. Go nuts.

  • in sway/config
# Preferred application launcher
# fzf launcher
set $fzf_launcher kitty --config \"$HOME/.config/kitty/fzf-launcher.config\" --class fzf-launcher --detach
@sindresorhus
sindresorhus / esm-package.md
Last active April 29, 2025 15:28
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@pystardust
pystardust / pdf_contrast.py
Created May 1, 2022 21:09
Change contrast of pdf using python
"""
# pdf_contrast.py
Modify contrast of pdf
## Install
```
pip install Pillow pdf2image img2pdf tqdm
```
> Save this file as pdf_contrast.py