https://learn.microsoft.com/en-us/aspnet/core/blazor/?view=aspnetcore-7.0
# bash programmable completion for core lightning | |
# copy to /etc/bash_completion.d and restart your shell session | |
# Copyright (c) by Andreas M. Antonopoulos | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
# modified by Tomas Stary (2018) for lightning-cli | |
# modified by urza (2024) for cln alias ("lightning-cli" must be in path and "cln" is alias for that) | |
_cln_cli() { | |
local cur prev words=() cword |
#!/usr/bin/bash | |
# install docker, portainer and few other packages | |
# run it: | |
# curl -fsSL https://gist.githubusercontent.com/urza/06ceec2c23f8ee66012c120bab42b144/raw/ -o serverinit.sh && sudo sh serverinit.sh | |
# Update and upgrade packages | |
echo -e "\033[1;33mUpdating and upgrading packages...\033[0m" | |
sudo apt-get update | |
sudo apt-get upgrade -y |
#!/bin/bash
lightning-cli listpeers | jq -r '.peers[] | select(.channels != null) | .id' | while read -r id; do
channel_info=$(lightning-cli listpeers "$id" | jq -r ".peers[0].channels[] | {id: \"${id}\", short_channel_id: .short_channel_id}")
alias=$(lightning-cli listnodes "$id" | jq -r ".nodes[0].alias")
echo "$channel_info" | jq --arg alias "$alias" '. + {alias: $alias}'
#!/bin/bash | |
# Usage: yt-whisper URL [OUTPUT_FILENAME_TEMPLATE [LANGUAGE]] | |
# If OUTPUT_FILENAME_TEMPLATE is empty, output is yt-whisper-video | |
# If LANGAUGE is empty, it is set to "auto" | |
# General settings (paths) for whisper.cpp | |
# Note - this uses whisper.cpp, not official whisper. Get it at | |
# https://github.com/ggerganov/whisper.cpp | |
# You will have to adjust these |
calmness and composure, especially in a difficult situation. "she accepted both the good and the bad with equanimity"
Equanimity (Latin: æquanimitas, having an even mind) is a state of psychological stability and composure which is undisturbed by experience of or exposure to emotions, pain, or other phenomena that may cause others to lose the balance of their mind.
Neither a thought nor an emotion, it is rather the steady conscious realization of reality's transience. It is the ground for wisdom and freedom and the protector of compassion and love. While some may think of equanimity as dry neutrality or cool aloofness, mature equanimity produces a radiance and warmth of being. The Buddha described a mind filled with equanimity as "abundant, exalted, immeasurable, without hostility and without ill-will."
private async void btnWordStatsParallelInTaskWithProgress_Click(object sender, RoutedEventArgs e) | |
{ | |
txbResultsInfo.Text = ""; | |
IProgress<string> progress = new Progress<string>(message => | |
{ | |
txbResultsInfo.Text += message; | |
}); | |
await Task.Run(() => Parallel.ForEach(_files, (file) => |
private void btnWordStatsParallelInTask_Click(object sender, RoutedEventArgs e) | |
{ | |
/* | |
10 nejcastejsich slov v kazdem souboru - paralelně | |
*/ | |
txbResultsInfo.Text = ""; | |
Stopwatch w = new Stopwatch(); | |
w.Start(); | |
Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; |
// needs C# 9.0 or newer (top level statements) | |
// will utilize 100 % CPU and print elapsed seconds when finished | |
// Ryzen 5900x - cca 150 seconds | |
// you can also use int.MaxValue / 100 for shorter run | |
using System; | |
using System.Threading.Tasks; | |
var d = DateTime.Now; | |
Parallel.For(0, int.MaxValue, _ => new Random() ); |
Command line arguments for GrinPro.io miner. | |
General format is: arg1=value1 arg2=value2 etc. | |
Example: | |
Linux: ./GrinProMiner configpath=/absolute/path/to/directory api-port=3333 | |
Windows: GrinProMiner.exe configpath=C:\absolute\path\to\directory api-port=3333 | |
"configpath" Defines directory where to save or load config.xml file from. | |
Example: | |
Linux: ./GrinProMiner configpath=/absolute/path/to/directory | |
Windows: GrinProMiner.exe configpath=C:\absolute\path\to\directory |