Skip to content

Instantly share code, notes, and snippets.

@wl2776
wl2776 / Chromium Linux.md
Created March 12, 2024 06:32 — forked from marians/Chromium Linux.md
How to install CA certificates and PKCS12 key bundles on different platforms

We install certutil and pk12util if necessary:

sudo apt install libnss3-tools

On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb directory:

ls $HOME/.pki/nssdb
@wl2776
wl2776 / .ycm_extra_conf.py
Last active February 26, 2021 07:45 — forked from ajford/.ycm_extra_conf.py
PlatformIO/YouCompleteMe Integration
"""
YouCompleteMe extra configuration for Platformio based
projects.
Based on the `.ycm_extra_conf.py` by @ladislas and @ajford
"""
import logging
from pathlib import Path
@wl2776
wl2776 / .vimrc
Created November 16, 2018 02:15
Cython in vim
compiler msbuild
" plus msvc
let &efm .= ', %f(%l) : %t%*\D%n: %m,%*[^"]%f"%*\D%l: %m,%f(%l) : %m,%*[^ ] %f %l: %m,%f:%l:%c:%m,%f(%l):%m,%f|%l| %m'
" plus CMake
let &efm .= ', %#%f:%l %#(%m)'
let &efm .= ',%E' . 'CMake Error at %f:%l (message):' " Start of multi-line error
let &efm .= ',%Z' . 'Call Stack (most recent call first):' " End of multi-line error
let &efm .= ',%C' . ' %m' " Continuation is message
@wl2776
wl2776 / .bash_aliases
Created November 16, 2018 02:09
bash aliases
alias sudo='sudo '
alias gpu='git pull'
@wl2776
wl2776 / .gitconfig
Created November 16, 2018 02:08
Git aliases
[alias]
co = checkout
br = branch
ci = commit
st = status
di = diff --color
hist = log --pretty=format:'%C(cyan)%h%Cred%d %Creset%s%Cgreen [%cn]' --decorate --graph
history = log --pretty=format:'%C(cyan)%h%Cred%d %Creset%s%Cgreen [%cn]' --decorate
filelog = log -u
fe = fetch
@wl2776
wl2776 / ipython_notebook_in_git.md
Last active July 19, 2016 07:09 — forked from pbugnion/ ipython_notebook_in_git.md
Keeping IPython notebooks under Git version control

This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.

To use the script, follow the instructions given in the script's docstring.

For further details, read this blogpost.

The procedure outlined here is inspired by this answer on Stack Overflow.