Skip to content

Instantly share code, notes, and snippets.

View iodar's full-sized avatar
🐳
just trying out github and having fun

iodar

🐳
just trying out github and having fun
  • Berlin, Germany
View GitHub Profile
@iodar
iodar / SimpleProgressMock.cs
Last active March 1, 2021 20:52
Simple Progress Bar Mock in C#
// Shows how to implement a simple progress bar in C#
// usage:
// - create new terminal app: `dotnet new console --name terminal`
// - copy source code into `Program.cs`
// - compile and run `dotnet run`
// - have fun!
using System;
namespace terminal
{
#!/bin/bash
#
# Installs flatpak and configures 'flathub' as a repository for
# ubunut, mint or debian.
function get-dist-id {
echo "$(lsb_release -i | tail -n +1 | sed -Er "s/.*\:[[:space:]]//")"
}
function echo-install-prompt {