Skip to content

Instantly share code, notes, and snippets.

@urza
urza / blazor_resources.md
Last active September 19, 2023 21:30
Blazor + asp.net core resources
@urza
urza / serverinit.sh
Last active April 23, 2024 17:36
ubuntu init - install docker, portainer, git and few other packages
#!/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
# 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