Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View yelizariev's full-sized avatar
💭
Recursive schizophrenics believe that many suffer from such personality disorder

Ivan Kropotkin yelizariev

💭
Recursive schizophrenics believe that many suffer from such personality disorder
View GitHub Profile
@yelizariev
yelizariev / MATRIX.markdown
Last active April 19, 2024 10:51
«Лунный 🪬 СВЕТ» | Детективное 😍☘️☘️ АГЕНСТВО
@yelizariev
yelizariev / README.md
Last active April 14, 2024 18:15
The Art of War

远胜百战者为上将

"Искусство войны - это заблаговременное выигрывание сражения без боя."

  • Перевод: Военное искусство заключается в том, чтобы добиваться победы без прямого столкновения с врагом.
  • Пояснение: Эта цитата подчеркивает важность стратегии, планирования и умения управлять ситуацией таким образом, чтобы достичь цели без излишних потерь.

知彼知己,百战不殆;不知彼而知己,一胜一负;不知彼,不知己,每战必败

@yelizariev
yelizariev / README.md
Last active April 10, 2024 20:19
Вращайте ☢️ БАРАБАН

Ваш 🦀 БИЛЕТ

БИЛЕТ № 101


[MOME] Any plans to open #Odoo 🦀 office# ?debug=assets

Ваше 🪬 ПРИЛОЖЕНИЕ

@yelizariev
yelizariev / mappings.txt
Last active February 27, 2020 07:46 — forked from dmgerman/vimium-emacs.md
Emacs-Style Key Bindings for Vimium
#########################################
unmapAll # Use Emacs-style bindings only.
#########################################
# Modifier Keys w/ Emacs Terminology:
# `<c-*>` = ⌃ Control Key; i.e. `C-*`.
# `<a-*>` = ⌥ Meta Key (Alt/Option); i.e. `M-*`.
@yelizariev
yelizariev / 00-install-odoo-translation.sh
Last active August 17, 2020 11:40
Automatic translation of odoo files by using existing translation (e.g. from Ukrainian to Russian, English to Russian, Russian to Russian)
# install dependencies
sudo pip install polib
sudo pip install google-cloud-translate==2.0.0
# https://docs.transifex.com/client/installing-the-client
sudo pip install transifex-client
# prepare and export your google cloud credentials
# See https://cloud.google.com/translate/docs/basic/setup-basic
# and https://cloud.google.com/docs/authentication/getting-started
@yelizariev
yelizariev / rotate.sh
Created February 18, 2019 15:07
Simple file rotating (e.g. for backups)
# based on https://serverfault.com/a/196847
# It will keep only latest 12 files
ls -1t /path/to/dir/* | tail -n +13 | xargs rm > /dev/null 2>&1
@yelizariev
yelizariev / monotoring.sh
Last active February 16, 2019 22:32
monitoring tools
sudo apt install lolcat cowsay
while true; do export PINGHOST=8.8.8.8 && RESULT=$(ping -q -n -c 4 $PINGHOST | awk '/packet loss/ {if ($6 != "0%") print $6, "packet loss"}') && echo "Done:" && if [[ -z $RESULT ]]; then cowsay "No package lost!" | lolcat --seed=45; else cowsay $RESULT | lolcat --seed=17; fi; date; echo -n "sleeping... "; sleep 5; echo -n "pinging... "; done