This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:ae8e46cd64ec9d68382bf21ebb1768f4534593c0]
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Electron: Main", |
#!/usr/bin/python3 | |
import subprocess | |
import sys | |
import json | |
# command for gathering health information | |
# there are no checks and user is expected to pass valid information | |
# if container id is incorrect, script will return status code 1 | |
command = ['podman', 'inspect', '--format', '\'{{.State.Health.Status}}\'', sys.argv[1]] |
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:ae8e46cd64ec9d68382bf21ebb1768f4534593c0]
#!/bin/sh | |
curl 'https://corona-stats.online/serbia?source=2' -s | | |
sed 's/\x1b\[[0-9;]*m//g' | # Remove ANSI color codes | |
grep 'Serbia' | | |
sed 's/\s*//g ; s/║//g ; s/│/;/g' | | |
awk -F';' '{ if ($4 == "") {$4 = 0;} if ($6 == "") {$6 = 0;} print "😷 " $3 " (" $4 ") 💀 " $5 " (" $6 ") 👍 " $7 }' |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)" | |
apt-get update | |
apt-get install -y mssql-server |
git config --global alias.lg "log --graph --abbrev --decorate --pretty=format:'%h %C(bold blue)%s%C(reset) %C(yellow)%d%C(reset) %C(dim green)%an %C(dim white)%ar%n' --all" | |
git config --global alias.lgg "log --graph --abbrev --decorate --pretty=format:'%h %C(bold blue)%s%C(reset) %C(yellow)%d%C(reset) %C(dim green)%an %C(dim white)%ar%n%b%n' --all" |
#!/bin/bash | |
printf "Local: %s\n" "$(ifconfig enp3s0 | grep 'inet ' | awk '{ print $2}')" | |
printf "Global: %s\n" "$(dig +short myip.opendns.com @resolver1.opendns.com)" |
#!/bin/bash | |
find . -name '<include files>' -not -path '<exclude dir>' | xargs wc -l |
#define swap(a, b) do { \ | |
typeof(a) temp = a; \ | |
a = b; \ | |
b = temp; \ | |
} while (0); |