Skip to content

Instantly share code, notes, and snippets.

View redbaty's full-sized avatar

Marcos Cordeiro redbaty

  • Andbank
  • São Paulo, Brazil
  • 11:42 (UTC -03:00)
View GitHub Profile
@redbaty
redbaty / busybox.yaml
Created December 27, 2022 18:51
Busybox sleep pod
apiVersion: v1
kind: Pod
metadata:
name: busybox
labels:
app: busybox
spec:
containers:
- image: busybox
command:
@redbaty
redbaty / main.sh
Created September 12, 2022 18:19
Convert all *.cs files from WINDOWS-1252 to UTF-8
find . -type f -name "*.cs" | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" | xargs -I {} bash -c "iconv -f WINDOWS-1252 -t UTF-8 {} -o {}"
@redbaty
redbaty / darkmode.css
Created October 24, 2019 02:43
Franz dark mode theme for Whatsapp (updated 23/10/19)
/*
- OSX: ~/Library/Application\ Support/Franz/recipes/whatsapp/darkmode.css
- Windows: %appdata%/Franz/recipes/whatsapp/darkmode.css
- Linux: ~/.config/Franz/recipes/whatsapp/darkmode.css
*/
/* ==UserStyle==
@name WhatsApp by Mew
@redbaty
redbaty / dockerInstall.sh
Last active March 20, 2018 12:11
Install docker on ubuntu
#!/bin/sh
# https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88 | grep [email protected] || exit 1
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo docker run --rm hello-world
sudo groupadd docker
private void PostgresNotification(object sender, NpgsqlNotificationEventArgs e)
{
Console.WriteLine("HELLO");
Console.WriteLine("HELLO");
Console.WriteLine("HELLO");
Console.WriteLine("HELLO");
Console.WriteLine("HELLO");
Console.WriteLine("HELLO");
Console.WriteLine("HELLO");
Console.WriteLine("HELLO");
using System.Drawing;
using System.Threading.Tasks;
using Colorful;
using Console = System.Console;
namespace Demo
{
class Program
{
private static bool _isRunning = true;