Skip to content

Instantly share code, notes, and snippets.

View smithbm2316's full-sized avatar

Ben Smith smithbm2316

View GitHub Profile
@smithbm2316
smithbm2316 / ublock-origin-static-filters.txt
Created May 15, 2025 23:19
Static Filters for uBlock Origin
! block "sign in with google" popup modals
||accounts.google.com/gsi/*
##iframe[src^="http://accounts.google.com/gsi/*"]
##iframe[src^="https://accounts.google.com/gsi/*"]
##iframe[src^="//accounts.google.com/gsi/*"]
! block the Turbolinks script network request on Github, it's slow af in comparison to a full page refresh
||github.githubassets.com/assets/*turbo*.js$script,domain=github.com
@smithbm2316
smithbm2316 / lsp.log
Created April 4, 2022 21:52
astro-ls lsp.log
[START][2022-04-04 14:49:18] LSP logging initiated
[WARN][2022-04-04 14:49:18] .../lua/vim/lsp.lua:812 "server_request: no handler found for" "workspace/semanticTokens/refresh"
[WARN][2022-04-04 14:49:18] .../lua/vim/lsp.lua:812 "server_request: no handler found for" "workspace/semanticTokens/refresh"
[WARN][2022-04-04 14:49:18] .../lua/vim/lsp.lua:812 "server_request: no handler found for" "workspace/semanticTokens/refresh"
[WARN][2022-04-04 14:49:18] .../lua/vim/lsp.lua:812 "server_request: no handler found for" "workspace/semanticTokens/refresh"
[WARN][2022-04-04 14:49:18] .../lua/vim/lsp.lua:812 "server_request: no handler found for" "workspace/semanticTokens/refresh"
[WARN][2022-04-04 14:49:18] .../lua/vim/lsp.lua:812 "server_request: no handler found for" "workspace/semanticTokens/refresh"
[WARN][2022-04-04 14:49:18] .../lua/vim/lsp.lua:812 "server_request: no handler found for" "workspace/semanticTokens/refresh"
[WARN][2022-04-04 14:49:18] .../lua/vim/lsp.lua:812 "server_request: no handler found for"
@smithbm2316
smithbm2316 / colorscheme_generator.lua
Last active April 1, 2021 07:58
Generates colorscheme for current highlights in neovim (updated with spelling fixes from gist.github.com/shadmansaleh/colorscheme_genarator.lua)
-- This file creates a colorscheme from already available colorscheme
-- Author : Shadman Saleh
-- License : You can do whatever you want with it but do provide proper credit
-- Uses :
-- 1. Copy this script to any &rtp/lua folder, most likely ~/.config/nvim/lua
-- so the script can be required
-- 2. Run :lua require('colorscheme_generator').create('colorscheme_name', load_colorscheme)
-- colorscheme_name is the name of colorscheme, load_colorscheme is a boolean