Skip to content

Instantly share code, notes, and snippets.

View adrianbiro's full-sized avatar

Adrián Bíro adrianbiro

View GitHub Profile
docker-compose -f services/docker-compose.yml down
docker-compose -f services/docker-compose.yml up --build -d
if [ ! -d /tmp/venv ]
then
echo "Creating venv in /tmp/venv"
python3 -m venv /tmp/venv
fi
source /tmp/venv/bin/activate
pip install -r /src/requirements.txt
docker exec -it website rm -rf /home/jekyll/src/main/content/_posts /home/jekyll/src/main/content/img/blog
docker cp blogs/posts website:/home/jekyll/src/main/content/_posts
docker cp blogs/img/blog website:/home/jekyll/src/main/content/img
docker cp blogs/blog_tags.json website:/home/jekyll/src/main/content

Source in link

Screen Name Resolution (Pixels) Also Known as
SD 720x576 Standard Definition
qHD 960×540 Quarter HD (1/4th or Quater of Full HD)
HD 1280×720 720p, 720p HD
Full HD 1920×1080 1080p
Quad HD 2560×1440 WQHD, 1440p (Four times 720p or HD)
4K Ultra HD 3840×2160 UHD, 4K (Four times Full HD)
@adrianbiro
adrianbiro / Gain_in_dBi_Meaning.md
Last active October 13, 2022 13:47
Gain in dBi Meaning
-10 dBi
One tenth or 10 % (loss)
-6 dBi
One quarter or 25 % (loss)
-3 dBi
One half or 50% (loss)
0 dBi
Same or 100% (no gain/loss)
+1 dBi
  • 1xx (Informational): The request was received, continuing process
  • 2xx (Successful): The request was successfully received, understood, and accepted
  • 3xx (Redirection): Further action needs to be taken in order to complete the request
  • 4xx (Client Error): The request contains bad syntax or cannot be fulfilled
  • 5xx (Server Error): The server failed to fulfill an apparently valid request

RFC 9110 HTTP Semantics

Decimal

$1000$ kB kilobyte

$1000^2$ MB megabyte

$1000^3$ GB gigabyte

$1000^4$ TB terabyte

find /usr -name sysexits.h

/*
 *  SYSEXITS.H -- Exit status codes for system programs.
 *
 *	This include file attempts to categorize possible error
 *	exit statuses for system programs, notably delivermail
@adrianbiro
adrianbiro / extendLVM_LUSK.md
Last active September 16, 2022 07:31
Extend LVM LUKS

Extend LVM LUKS

link

LVM

$ lsblk
$ wipefs -a /dev/sdb
  # quick wipe target device
$ pvcreate /dev/sdb
$ pvs
$ vgs
@adrianbiro
adrianbiro / setupclamavdb.sh
Last active August 27, 2022 14:38
setup clamav db
#!/bin/bash
trap "sudo systemctl enable --now clamav-freshclam.service" EXIT
sudo systemctl stop clamav-freshclam.service
sudo freshclam
@adrianbiro
adrianbiro / Place this to the .bashrc
Created June 16, 2022 10:57
Bash competition for go
#!/bin/bash
function completego()
# Bash completion for go
{
local wordlist; wordlist=$(go help | awk 'NR==9, NR==26{ printf "%s%s", $1, sp = NR==26? "\n": " "}')
complete -W "${wordlist}" go
}
completego