Skip to content

Instantly share code, notes, and snippets.

@cmod
cmod / hugofastsearch.md
Last active February 11, 2026 09:42 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
const authParams = {
grant_type: "client_credentials",
client_id: "dyZHpNCWN5iuPx1gdbE3Dx9JAJIzZSCQ",
client_secret: "abD8E45RS31lZIHZhqoev5Zr78JO8j4W"
}
const options = {
method: 'post',
headers: {
'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
},
ProductID Database
106 GeoIP.dat
111 GeoIPOrg.dat
112/115 GeoIPRegion.dat
117 GeoIPASNum.dat
119 GeoIPUserType.dat
121/122 GeoIPISP.dat
132/133 GeoIPCity.dat
135 GeoIPAreaCode.dat
137 GeoIPDMACode.dat
@u0d7i
u0d7i / disable_vim_auto_visual_on_mouse.txt
Last active March 11, 2026 15:45
Disable vim automatic visual mode on mouse select
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
my ~/.vimrc for preserving global defaults and only changing one option:
source $VIMRUNTIME/defaults.vim
set mouse-=a
@bradfitz
bradfitz / diskchecker.pl
Created July 24, 2012 21:05
diskchecker.pl
#!/usr/bin/perl
#
# Brad's el-ghetto do-our-storage-stacks-lie?-script
#
sub usage {
die <<'END';
Usage: diskchecker.pl -s <server[:port]> verify <file>
diskchecker.pl -s <server[:port]> create <file> <size_in_MB>
diskchecker.pl -l [port]