Skip to content

Instantly share code, notes, and snippets.

@k9ert
k9ert / robbyrussell.zsh-theme
Last active April 24, 2022 12:16
robbyrussell.zsh-theme
PROMPT="$USER@%M"
PROMPT+="%(?:%{$fg_bold[green]%}➜ : %{$fg_bold[red]%}➜ )"
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@k9ert
k9ert / gist:81817c6ddf8826128ef1d237768da9d7
Last active September 2, 2021 10:45
Zu viele Fragen: Outing einer Nicht-Geimpften
Anmelden
Mein Profil
Themen
Von der Berliner Zeitung
============================= test session starts ==============================
platform linux -- Python 3.8.10, pytest-6.1.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/kim/src/specter-desktop, configfile: pytest.ini
plugins: cov-2.10.1
collected 104 items
tests/test_checker.py . [ 0%]
tests/test_cli_bitcoind.py .. [ 2%]
tests/test_cli_server.py .... [ 6%]
tests/test_config.py . [ 7%]
@k9ert
k9ert / 000_Readme.md
Last active December 28, 2020 16:11
rc3

What's specter - the tutorial-notes for the talk at the rc3

We'll have some slides and will also have a look on the specter-shields (the hardware-side of Specter) but will soon do hands-on.

Content:

{
"$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Person",
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
@k9ert
k9ert / specter-desktop-userscript
Created May 14, 2020 08:39
Specter-desktop greasemonkey script for modifying the Color-scheme
// ==UserScript==
// @name specter-desktop
// @version 1
// @grant none
// @include http://localhost:25441/*
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
@k9ert
k9ert / btc_dca.ipynb
Created May 12, 2019 12:05
A jupyter-notebook researching the effect of Dollar-Cost-Averaging with Bitcoin.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# openssl x509 -in alice-tls.cert -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
d6:a0:86:69:7e:b8:e1:ac
Signature Algorithm: ecdsa-with-SHA256
Issuer: CN=localhost, O=lnd
Validity
Not Before: Jun 24 11:03:12 2018 GMT
#!/usr/bin/env python3
import sys
if sys.version_info.major < 3:
sys.stderr.write('Sorry, Python 3.x required by this example.\n')
sys.exit(1)
import requests
import bitcoin