This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run `nh` any time in the session to delete it's history on session exit. | |
alias nh="export ATUIN_DELETE_HISTORY=1" | |
__delete_history_on_exit() { | |
if [[ $ATUIN_DELETE_HISTORY ]] | |
then | |
# echo $ATUIN_SESSION >> /tmp/debug | |
# stick to tomlq to get the db from config or hardcode db path here | |
db=$(tomlq -c .db_path < ~/.config/atuin/config.toml) | |
[[ "${db}" == "null" || -z "${db}" ]] && db="~/.local/share/atuin/history.db" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 078326f48100 browser/components/urlbar/UrlbarInput.jsm | |
--- a/browser/components/urlbar/UrlbarInput.sys.mjs Tue Apr 14 06:41:42 2020 +0000 | |
+++ b/browser/components/urlbar/UrlbarInput.sys.mjs Tue Apr 14 16:01:40 2020 +0200 | |
@@ -3101,6 +3101,8 @@ | |
if (event.target.id == SEARCH_BUTTON_ID) { | |
this._preventClickSelectsAll = true; | |
this.search(lazy.UrlbarTokenizer.RESTRICT.SEARCH); | |
+ } else if (event.target == this.inputField) { | |
+ this._preventClickSelectsAll = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Reset the low watermark of partitions close to the point where given consumer-group has been.""" | |
import argparse | |
import sys | |
from collections import OrderedDict | |
from json import dumps, loads | |
from pprint import pformat | |
from subprocess import PIPE, Popen | |
from tempfile import NamedTemporaryFile | |
from typing import Generator, Iterable, Union |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.es has to contain {"username": "...", "password": "...", "endpoint": "https://..."} | |
es_config(){ jq -r ".$1" < ~/.es; } | |
es_api () | |
{ | |
url=$1; | |
shift; | |
curl -ku $(es_config username):$(es_config password) -s "$(es_config endpoint):9200/${url}" "$@" | |
} |