Skip to content

Instantly share code, notes, and snippets.

@diegov
diegov / clustered_posters.sql
Last active January 23, 2023 18:17
pleroma_post_frequency_lists
create or replace view diego.clustered_posters as
with params as (
select 1 as config_id,
now() as dt,
interval '7 days' as period,
'https://ap.diegoveralli.net/users/diego' as account,
10::integer as cluster_count
union all
select 2,
now(), interval '3 days', 'https://ap.diegoveralli.net/users/diego',
@diegov
diegov / languages.org
Last active December 22, 2023 12:05
json_dsls
LanguageNotes
JsonPathRead-only
JSONataR/W. JS-only?
JMESPathRead-only. Well specified, implemented in multiple languages.
@diegov
diegov / python_config.md
Last active June 7, 2023 15:59
Config for python services
@diegov
diegov / Regex
Created May 11, 2022 19:25
Regex
'(a,b,c)'.match(/(?<=\()[^\)]*(?=\))/)
@diegov
diegov / sshd_macos_x_forwarding.txt
Created November 23, 2021 10:55
Settings for sshd X forwarding on macos
X11Forwarding yes
XauthLocation /opt/X11/bin/xauth
X11DisplayOffset 10
X11UseLocalhost no
@diegov
diegov / userChrome.css
Created June 28, 2021 09:45
Firefox Proton quick tab fix
.tab-background {
margin-top: 1px !important;
margin-bottom: 1px !important;
border-radius: 0 !important;
}
.tabbrowser-tab {
padding: 0 !important;
}
#!/usr/bin/env bash
filter="$1"
shift
jq -r '
def normalise:
. as $in
| if type == "number" then
"[]"

Keybase proof

I hereby claim:

  • I am diegov on github.
  • I am diegov (https://keybase.io/diegov) on keybase.
  • I have a public key whose fingerprint is 1321 4084 A25D 5D92 28EC 4FE5 BFF0 28CB 6F87 E7E8

To claim this, I am signing this object: