Skip to content

Instantly share code, notes, and snippets.

View iegik's full-sized avatar
🧾
Looking for work

Arturs Jansons iegik

🧾
Looking for work
View GitHub Profile
@iegik
iegik / README.md
Last active January 27, 2021 07:32

If you accidently remove any host from known_hosts you can restore them by following command:

ssh-keyscan -H HOSTNAME >> ~/.ssh/known_hosts
@iegik
iegik / README.md
Last active January 14, 2019 10:04

LOGICAL AND - a ∧ b (a && b) - is true if A and B are both true; else it is false.

LOGICAL OR - a ∨ b (a || b) - is true if A or B (or both) are true; if both are false, the statement is false.

LOGICAL XOR - a ⊕ b (a != b) - is true when either A or B, but not both, are true.

EQUIVALENCE - a ↔ b (a == b) - means A is true if B is true and A is false if B is false

LOGICAL NOT - ¬a (!a) - is true if and only if A is false.

@iegik
iegik / README.md
Last active January 27, 2021 08:12
Video in Markdown

in markdown format:

HTML image:

HTML video:

quick, brown fox? jumped over! the lazy dog.

Quick, Brown Fox? Jumped Over! The Lazy Dog.

Quick, Brown Fox? Jumped Over! The Lazy Dog.

QUICK, BROWN FOX? JUMPED OVER! THE LAZY DOG.

эй, жлоб! где туз? прячь юных съёмщиц в шкаф.

Elementary

https://elementary.io/

Show desktop windows

phanteon-desktop does not have icons on desktop, instead you can install nautilus

sudo apt install --no-install-recommends nautilus dconf-tools

# R0lGOD image/gif
# /9j/4 image/jpeg
# iVBORw image/png
# UklGR image/webp
# JVBERi0xLj application/pdf
# PCFET0NUWVBFI text/html
dataURI () { base64 "$@" | sed 's/^\(R0lGOD\)/data:image\/gif;base64,\1/g;s/^\(iVBORw\)/data:image\/png;base64,\1/g;s/^\(\/9j\/4\)/data:image\/jpeg;base64,\1/g;s/^\(UklGR\)/data:image\/webp;base64,\1/g;'; }
@iegik
iegik / translate.sh
Last active June 1, 2018 13:05
``` Usage: translate.sh [OPTION]... [FILE]... --template use template [ mustashe | csharp ] -o|--output Output path for {prefix}.json files -p|--prefix Replace pr
#!/bin/bash
declare -a List=(en it de es pt fr et fi)
USAGE=$(cat <<-EOM
Usage: ${0##*/} [OPTION]... [FILE]...
EOM
)
INFO=$(cat <<-EOM
Example:
@iegik
iegik / README.md
Last active November 6, 2023 09:34
НОМЕНКЛАТУ́РА

НОМЕНКЛАТУ́РА

НОМЕНКЛАТУ́РА - Совокупность или перечень употребляемых в какой-н. специальности названий, терминов.

СИГНАТУРА функции — характеристическая часть определения функции в программировании

PROGRESSIVE ENHANCEMENT - поддерживать каждую мелочь

GRACEFUL DEGRADATION - отказоустойчивость, поддерживать то, что поддерживается (css без префиксов, без теней в IE)

@iegik
iegik / Makefile
Last active October 2, 2025 08:00
## Actions
# --ignore-platform - to avoid compilation binary files
# --no-bin-links - to not create executables in node_modules/.bin/
YARN_ARGS=\
--link-duplicates \
--no-bin-links \
--ignore-optional \
--ignore-scripts \
--disable-pnp \
@iegik
iegik / code.html
Last active December 29, 2017 09:43
No code - no bugs