Skip to content

Instantly share code, notes, and snippets.

@jsn
jsn / tags.txt
Created February 14, 2025 18:15
jason@jsn rbot $ git tag -l --format='%(objectname:short) %(describe:tags)'
46dd499 last-svn-commit
ac5ab47 oldmaster
46be439 rbot-0.9.10
a60096e rbot-0.9.11
9ceb025 rbot-0.9.11-rc1
81fa1c6 rbot-0.9.11-rc2
084a857 rbot-0.9.11-rc3
5cee46e rbot-0.9.12
1d4228c rbot-0.9.13
@jsn
jsn / main.rs
Created November 9, 2024 07:38
use std::borrow::Cow;
use std::collections::HashMap;
use std::hash::Hash;
use std::sync::RwLock;
pub trait IndexKey<Item>: Sized {
fn keys(i: &Item) -> Vec<Self>;
}
pub struct Index<Item, K> {
(ns ab)
(defn- bump [f m]
(into {} (map (juxt (comp f key) val) m)))
(defn- turn [[a b]]
(mapv #(merge-with + b (bump % a)) [inc dec]))
(->> {0 1N}
(repeat 2)
@jsn
jsn / values.txt
Last active February 10, 2023 23:57
(from: "The Power of Full Engagement", by Jim Loehr and Tony Schwartz, Part Two, Chapter Eight)
DEEPEST VALUES CHECKLIST
Authenticity
Happiness
Balance
Harmony
Commitment
Health
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :buildSrc:generateGrammarSource
error(10): internal error: Can't get property indirectDelegates using method get/isIndirectDelegates from org.antlr.tool.Grammar instance : java.lang.NullPointerException
java.util.Objects.requireNonNull(Objects.java:203)
java.util.ArrayList.removeAll(ArrayList.java:695)
org.antlr.tool.CompositeGrammar.getIndirectDelegates(CompositeGrammar.java:222)
org.antlr.tool.Grammar.getIndirectDelegates(Grammar.java:2620)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
@jsn
jsn / a.txt
Created October 26, 2020 23:05
(an excerpt from Dogen's Shobogenzo)
Question 10: Some have said: “Do not concern yourself about birth-and-death.
There is a way to promptly rid yourself of birth-and-death. It is by grasping
the reason for the eternal immutability of the ‘mind-nature.’ The gist of it is
this: although once the body is born it proceeds inevitably to death, the
mind-nature never perishes. Once you can realize that the mind-nature, which
does not transmigrate in birth-and-death, exists in your own body, you make it
your fundamental nature. Hence the body, being only a temporary form, dies here
and is reborn there without end, yet the mind is immutable, unchanging
throughout past, present, and future. To know this is to be free from
birth-and-death. By realizing this truth, you put a final end to the
diff --git a/PKGBUILD b/PKGBUILD
index bc1a54d..875ab64 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,13 @@
pkgname=prometheus-nginxlog-exporter-bin
_name=prometheus-nginxlog-exporter
-pkgver=1.4.0
+pkgver=1.7.0
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>X</title>
<style type="text/css" media="screen">
#outer > div {
position: relative ;
float: left ;
border: 1px solid black ;
set $to_yandex 0;
if ($cookie_bltsr) {
set $to_yandex 1;
}
if ($http_x_aab_http_check) {
set $to_yandex 1;
}
unmap('i') ;
map('iu', 'g0') ;
map('io', 'g$') ;
map('ij', '<Ctrl-6>') ;
map('d', 'x') ;
map('u', 'X') ;
map('ih', 'S') ;
map('il', 'D') ;
map('gn', "<Ctrl-'>");
settings.scrollStepSize = 250 ;