Skip to content

Instantly share code, notes, and snippets.

View cljoly's full-sized avatar
If I’m not answering within 7 days, please ping me again!

Clément Joly cljoly

If I’m not answering within 7 days, please ping me again!
View GitHub Profile
@cljoly
cljoly / neovim-python-3.10.md
Last active November 28, 2021 13:56
Python 3.10 not properly detected by neovim <=5.1

Termux ships with python 3.10 already, which is not properly detected by neovim stable at the time of writing. A trick is to put pythonx.vim in .config/nvim/autoload/provider/pythonx.vim

@cljoly
cljoly / fan-out_with_context.go
Created August 23, 2021 07:07 — forked from Jguer/fan-out_with_context.go
Fan-Out with Context in Go
package main
import (
"context"
"errors"
"fmt"
"math/rand"
"os"
"os/exec"
"os/signal"
@cljoly
cljoly / semantic-commit-messages.md
Created January 28, 2021 23:36 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@cljoly
cljoly / hugofastsearch.md
Created January 14, 2021 21:55 — forked from cmod/hugofastsearch.md
Fast, instant client side search for Hugo static site generator

Super fast, keyboard-optimized, client side Hugo search

This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.

It's built for the Hugo static site generator, but could be adopted to function with any json index compatible with Fuse fuzzy search library.

To see it in action, go to craigmod.com and press CMD-/ and start typing.

Fast Search

Editing remote files in Vim with SSH

  1. Configure SSH

    In ~/.ssh/config, include the lines:

    Host *
    ControlPath ~/.ssh/sockets/%r@%h-%p
    

Keybase proof

I hereby claim: * I am cljoly on github. * I am leowzukw (https://keybase.io/leowzukw) on keybase. * I have a public key ASDgaUuqYWE24WtzDcaoSg53PAXjK6QCQ51R-SRpNtw4gwo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "0120e0694baa616136e16b730dc6a84a0e773c05e32ba402439d51f9246936dc38830a",       "host": "keybase.io",       "kid": "0120e0694baa616136e16b730dc6a84a0e773c05e32ba402439d51f9246936dc38830a",       "uid": "5fab3531b5f11d697de32e60732fea19",       "username": "leowzukw"     },     "merkle_root": {       "ctime": 1569162833,       "hash": "4ed3528d28bb4c06b304254f00bc51e0bf6cc50df9c35510d101548b7829fee4191036b9cb320e6bbbb0928fd812ce04505eaa520ab24e2d6cf1b381f9fc772c",       "hash_meta": "dd79e26b69d4c916b3819bd0ca7571d85bd7d259921697f9d7ba71e565758779",       "seqno": 7684734     },     "service": {       "entropy": "uIv29NZNcMbha0HVZDMKx6Gz",       "name": "github",       "username": "cljoly"     },     "type": "web_service_b

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

" Line wrapping
set wrap " Retour à la ligne automatiques
set linebreak " Selon les limites des mots
set colorcolumn=72
" Other
set clipboard^=unnamedplus

Keybase proof

I hereby claim:

  • I am leowzukw on github.
  • I am leowzukw (https://keybase.io/leowzukw) on keybase.
  • I have a public key ASCm2JFZGLasJ1u4S6XgaefpR4w54Vu-M2qJWQJlbNmG9Qo

To claim this, I am signing this object: