Skip to content

Instantly share code, notes, and snippets.

@ovelny
ovelny / google-filter-sites.js
Created January 25, 2022 22:09
Filter SEO spam websites in google searches
// ==UserScript==
// @name Google search filter
// @version 1.0.0
// @description Filter / blacklist sites in Google search
// @author ovelny
// @match *://www.google.com/search?*
// @run-at document-start
// ==/UserScript==
blacklist = [
@ovelny
ovelny / .vimrc-example
Created July 31, 2021 09:58
Script to make vimwiki + various plugins work like Joplin, with support for note encryption (https://ovelny.sh/blog/switching-from-joplin-to-vimwiki/)
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')
" Declare the list of plugins.
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
Plug 'ferrine/md-img-paste.vim', { 'for': 'markdown' }
Plug 'vimwiki/vimwiki'
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
" Optional: goyo
" Plug 'junegunn/goyo.vim'
@ovelny
ovelny / monaco-font-fix.md
Last active December 7, 2021 07:00
Fix pixelated Monaco Font (Google Chrome, Firefox...) on Linux

TL;DR: solution is to disable embedded bitmaps, either for all fonts or Monaco font

  • Create a file named 20-no-embedded.conf in ~/.config/fontconfig/conf.d/
  • To disable this behavior with all fonts, add this in your file:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">