Skip to content

Instantly share code, notes, and snippets.

@an-ivannikov
an-ivannikov / README.md
Created November 17, 2020 00:52
ERROR: epmd error for host NAME: address (cannot connect to host/port)

ERROR: epmd error for host NAME: address (cannot connect to host/port)

hostname
sudo nano /etc/hosts
@an-ivannikov
an-ivannikov / gist:fd19306bdfb9fc5d156ab109e9e940ea
Created November 9, 2020 01:01
how-to-deploy-smart-contract-in-predefined-contract-address
https://ethereum.stackexchange.com/questions/17927/how-to-deploy-smart-contract-in-predefined-contract-address-in-private-ethereum
@an-ivannikov
an-ivannikov / gist:2285a59d01146e895b774b6c234672a4
Created November 8, 2020 15:25
upgradable-smart-contracts
https://simpleaswater.com/upgradable-smart-contracts/
@an-ivannikov
an-ivannikov / README.md
Created November 3, 2020 13:01
Text to ASCII Art Generator (TAAG) - patorjk.com

https://patorjk.com/software/taag/#p=display&f=Big%20Money-ne&t=IVANNIKOV

 /$$$$$$ /$$    /$$  /$$$$$$  /$$   /$$ /$$   /$$ /$$$$$$ /$$   /$$  /$$$$$$  /$$    /$$
|_  $$_/| $$   | $$ /$$__  $$| $$$ | $$| $$$ | $$|_  $$_/| $$  /$$/ /$$__  $$| $$   | $$
  | $$  | $$   | $$| $$  \ $$| $$$$| $$| $$$$| $$  | $$  | $$ /$$/ | $$  \ $$| $$   | $$
  | $$  |  $$ / $$/| $$$$$$$$| $$ $$ $$| $$ $$ $$  | $$  | $$$$$/  | $$  | $$|  $$ / $$/
  | $$   \  $$ $$/ | $$__  $$| $$  $$$$| $$  $$$$  | $$  | $$  $$  | $$  | $$ \  $$ $$/ 
  | $$    \  $$$/  | $$  | $$| $$\  $$$| $$\  $$$  | $$  | $$\  $$ | $$  | $$  \  $$$/  
 /$$$$$$ \ $/ | $$ | $$| $$ \ $$| $$ \ $$ /$$$$$$| $$ \ $$| $$$$$$/ \ $/ 
@an-ivannikov
an-ivannikov / README.md
Created October 28, 2020 07:55
How effectively delete a git submodule.

How effectively delete a git submodule.

git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>
- https://www.rabbitmq.com/tutorials/
- https://habr.com/ru/post/489086/ - объясняются обменники
- https://makeomatic.ru/blog/2013/10/16/RabbitMQ/
@an-ivannikov
an-ivannikov / README.md
Created October 10, 2020 23:01
Installing VMware Tools in an Ubuntu virtual machine

Installing VMware Tools in an Ubuntu virtual machine

https://kb.vmware.com/s/article/1022525

To install VMware Tools, you must mount the VMware Tools CD image, extract the contents (VMware Tools), and then run the installer.

Note: If VMware Tools is already installed, use these steps to uninstall and then reinstall VMware Tools. When there is product updates, the VMware Tools package is also updated, so an update of the installed version of VMware Tools is required.

@an-ivannikov
an-ivannikov / README.md
Last active September 26, 2020 11:50
Check if bash script running as non root user

Check if bash script running as non root user

#!/usr/bin/env bash
set -eo pipefail

if [ `whoami` != 'root' ]
  then
    echo "You must be root to do this."
 exit
@an-ivannikov
an-ivannikov / Protonmail.md
Created September 26, 2020 11:35 — forked from ibaiul/Protonmail.md
Configure the protonmail bridge linux client on CentOS server and Fedora

Protonmail on CentOS server

#protonmail #centos #fedora #linux

Before you start

Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (https://protonmail.com/bridge/install).

Consider that the bridge linux client requires a paid protonmail account to work.

Get the protonmail bridge linux installer

@an-ivannikov
an-ivannikov / PrivateRoute.js
Created September 4, 2020 21:53
Private route for react-router-dom
import * as React from 'react';
import { Route, Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import withImmutablePropsToJS from 'with-immutable-props-to-js';
function PrivateRoute({ component: Component, isAuthenticated, ...rest }) {
return (
<Route