Skip to content

Instantly share code, notes, and snippets.

View icavalheiro's full-sized avatar
😅

Ivan Schuaste Cavalheiro icavalheiro

😅
View GitHub Profile
curl --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" -v $@
@icavalheiro
icavalheiro / Program.cs
Created December 22, 2021 16:00 — forked from DanielSWolf/Program.cs
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);
@icavalheiro
icavalheiro / .ps1_color
Created August 14, 2020 01:22 — forked from afeijo/.ps1_color
My colored linux prompt
# download me or copy & paste into your root folder, name it .ps1_color
# add the line below into your ~/.profile or ~/.bashrc
# source ~/.ps1_color
# ANSI color codes
RS="\[\033[0m\]" # reset
HC="\[\033[0;1m\]" # hicolor
UL="\[\033[4m\]" # underline
INV="\[\033[7m\]" # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black