Skip to content

Instantly share code, notes, and snippets.

@kddlb
kddlb / ntfy.conf
Created January 14, 2024 23:02
Fail2Ban action for ntfy.sh
[Definition]
actionstart =
actionstop =
actioncheck =
actionban = lgm=$(printf '%%.10240s\n...' "<matches>"); curl -L 'https://ntfy.sh/<topíc_name>' -H 'Title: IP address <ip> has been banned!' -H 'Tags: globe_with_meridians,hammer' -H 'Content-Type: text/plain' -H 'Actions: view, IPinfo.io, https://ipinfo.io/<ip>; view, AbuseIPDB, https://www.abuseipdb.com/check/<ip>' -d "$lgm"
actionunban =
[Init]
name = ntfy
#
# $PARU_CONF
# /etc/paru.conf
# ~/.config/paru/paru.conf
#
# See the paru.conf(5) manpage for options
#
# GENERAL OPTIONS
#
#
# $PARU_CONF
# /etc/paru.conf
# ~/.config/paru/paru.conf
#
# See the paru.conf(5) manpage for options
#
# GENERAL OPTIONS
#
@kddlb
kddlb / README.txt
Created June 17, 2016 04:58
SoundFont List, as JSON
patchMappings:
[0 ,2]
^-Bank, ^-Program
.voto {
background-color: #fff;
color: #000;
border: 1px solid #000;
padding: 3em 5em 3em 3em;
font-family: "Arial Narrow", sans-serif;
font-weight: 700;
}
.opcion {
idle=nomwait iommu=pt l1tf=off mds=off mitigations=off no_stf_barrier noibpb noibrs nopti nospec_store_bypass_disable nospectre_v1 nospectre_v2 rcu_nocbs=0-7 spectre_v2_user=off drm_kms_helper.edid_firmware=DVI-D-1:edid/1920x1080.bin

Keybase proof

I hereby claim:

  • I am kddlb on github.
  • I am kddlb_cl (https://keybase.io/kddlb_cl) on keybase.
  • I have a public key ASDKgTFe3VRtTPcrvYZtgO5BmTI5mx727sXFNR80MQHxigo

To claim this, I am signing this object:

#user-specified-css-input {
height: 400px;
}
.messages .from .user:before {
opacity: 0.5;
content: "<";
}
.messages .from .user:after {
opacity: 0.5;
content: ">";
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Flurl;
using Flurl.Http;
using Newtonsoft.Json;
using SpotifyLibraryExporter.SpotifyAPI;
namespace SpotifyLibraryExporter
@kddlb
kddlb / recipe.conf
Created May 13, 2016 23:00
NGINX recipe for Polr and PHP 7
location / {
try_files $uri $uri/ /index.php?$query_string;
rewrite ^/([a-zA-Z0-9]+)/?$ /index.php?$1;
}
location ~ \.(php|phar)$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.(?:php|phar))(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;