Skip to content

Instantly share code, notes, and snippets.

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 / 000-aws-lambda-bot.md
Last active December 15, 2022 15:18
Telegram resending bot on AWS Lambda. OBSOLETE: the latest version is here https://chatops.readthedocs.io/en/latest/resend-bot/index.html
View 000-aws-lambda-bot.md

The general idea is to ask a group (let's call it target group) via bot and get answer. The group might be:

  • Support Team
  • IT Department of your company
  • etc.

TODO: text formatting is lost on resending. Use entities instead of text field

TODO: set debug level via Environment variables

@yelizariev
yelizariev / install-odoo.sh
Last active December 1, 2021 16:14
install odoo from source. Script is maintained on github now: https://github.com/yelizariev/install-odoo
View install-odoo.sh
if [ "$(basename $0)" = "install-odoo.sh" ]; then
echo "don't run install-odoo.sh, because it's not fully automated script. Copy, paste and execute commands from this file manually"
exit 0
fi
#### Detect type of system manager
export SYSTEM=''
pidof systemd && export SYSTEM='systemd'
@yelizariev
yelizariev / 000-aws-lambda-todo-bot.md
Last active November 10, 2021 12:48
TODO-list bot for Telegram. OBSOLETE: latest version is here https://itpp.dev/chat/todo-bot/index.html
View 000-aws-lambda-todo-bot.md

Allows to create TODOs for a small group of users.

Tasks can have on of the following states:

  • TODO -- to be done
  • DONE -- done
  • CANCELED -- nothing was done and not going to be done
  • WAITING -- cannot be started and waits for something

Technical specification

@yelizariev
yelizariev / Letsencrypt Wildcard DNS manual.rst
Last active February 20, 2021 00:12 — forked from Rusllan/Letsencrypt Wildcard DNS manual.rst
Issue certificate with DNS manual mode
View Letsencrypt Wildcard DNS manual.rst
@yelizariev
yelizariev / 1-Constitution.md
Last active February 20, 2021 00:05
IT-Projects LLC rules. The document is moved to https://gitlab.com/itpp/handbook/
View 1-Constitution.md

Constitution explains how and in what direction is the company growing

I. Just work well

  • The only way to compensate poorly made work is to improve yourself and do it well

I.1. No penalties

  • There are no any financial, moral, administrative penalties

I.2. No excuses

  • Inside the company, excuses have no sense
@yelizariev
yelizariev / Smiles.md
Last active February 17, 2021 13:40 — forked from roachhd/README.md
Smiles EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻
View Smiles.md

People

:bowtie: 😄 😆 😊 😃 ☺️ 😏 😍

@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)
View 00-install-odoo-translation.sh
# 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 / install-ivann-ssh.sh
Last active July 9, 2020 11:33
save my ssh key
View install-ivann-ssh.sh
#
su
# ivann + general
mkdir ~/.ssh
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> ~/.ssh/authorized_keys
echo -ne " yelizariev@it-projects.info\n" >> ~/.ssh/authorized_keys
@yelizariev
yelizariev / change-password.js
Last active June 18, 2020 19:12
XMLRPC for apps.odoo.com
View change-password.js
// Step 1. Ask support team to set some temporar password on apps.odoo.com database
// Step 2. Login to https://apps.odoo.com/web in a usual way (via oauth)
// Step 3. Open browser console and change password by using js code below
odoo.define('www', function(require) {
"use strict";
var ajax = require('web.ajax');
// will only work after the password has been set by Odoo
ajax.jsonpRpc('/web/session/change_password', 'call', {
'fields' : [
@yelizariev
yelizariev / mappings.txt
Last active February 27, 2020 07:46 — forked from dmgerman/vimium-emacs.md
Emacs-Style Key Bindings for Vimium
View mappings.txt
#########################################
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-*`.