Skip to content

Instantly share code, notes, and snippets.

View Danil00524's full-sized avatar
🏠
Working from home

Darvin | QSO-soft Danil00524

🏠
Working from home
View GitHub Profile
{
"key": "6277b0df5122180425e4f546",
"addrs": [
{
"addr": {
"id": "47b5ed1ccfb873f489c68903b1285208aec6cddb",
"ip": "185.188.250.66",
"port": 26616
},
"src": {
Optimizing size of evmos database
---------------------------------
Blockchain database tends to grow over time, depending e.g. on block
speed and transaction amount. For evmos, we are talking about close to
100GB of disk usage in first two weeks.
There are few configurations that can be done to reduce the required
disk usage quite significantly. Some of these changes take full effect
only when you do the configuration and start syncing from start with
@Danil00524
Danil00524 / addrbook.json
Last active April 28, 2022 21:11
Archway Addrbook
{
"key": "6a5c15c0cb9779d2118db59a",
"addrs": [
{
"addr": {
"id": "ee8a33890ce180c21719f05a0cb2490dfe1c1cf6",
"ip": "142.132.238.143",
"port": 26656
},
"src": {

Keybase proof

I hereby claim:

  • I am danil00524 on github.
  • I am darvin002 (https://keybase.io/darvin002) on keybase.
  • I have a public key whose fingerprint is 542A 802E C560 57C5 4676 ABFC 3BEB 84F1 4CED A03C

To claim this, I am signing this object:

Rewards: 1% of the $CELL total supply will be rewards for Testnet miners!
The recommended configuration
OS: Ubuntu 18.04
CPU:32C, 4C is the minimum requirement
Memory: 16GB. 4GB is the minimum requirement
HDD:500G, 200G is the minimum requirement
#Ubuntu 18.04
wget https://github.com/Cell-chain/wiki/releases/download/v0.3.1/cell
$ apt update
$ apt install -y curl make git wget build-essential cmake gcc jq clang pkg-config libssl-dev screen
$ . <(wget -qO- https://raw.githubusercontent.com/SecorD0/utils/main/installers/golang.sh)
$ go version
Output: go version go1.17.2 linux/amd64
$ adduser gno
$ usermod -aG sudo gno
$ su -l gno
highlightedName({ name }: { name: string }) {
const query = this.$route.query.q as string;
const escapeQuery = query.replace(/([.*+?^=!:${}()|[\]\\])/g, '\\$1');
const regexp = new RegExp(`(${escapeQuery})`, 'gi');
let result;
if (regexp.test(name + 'כאן')) {
result = name + 'כאן';
}
import store from '../../store/configureStore';
const BlogHOC = () => {
const articlesList = store.getState().articles.articlesList;
const [articles, setArticles] = useState(articlesList)
const checkArticles = () => {
if (!articlesList) {
articlesRequest()
@Danil00524
Danil00524 / Active class on button
Created November 21, 2019 11:22
Active class on button
const chooseRoomsNumber = (e) => {
setBedroom(e.target.value)
document.querySelector('.filter-rooms .filter-btn.active').classList.remove('active');
e.target.classList.add('active');
};
const bedroomSelect =
<div className="filter-rooms filter-control-container ">
<label className="filter-label">Спален:</label>
<button className='filter-btn' value={1} onClick={(e) => chooseRoomsNumber(e)}>1</button>
@Danil00524
Danil00524 / Filtration JS
Last active November 23, 2019 13:02
Filtration JS
let items = [
{ id: 1, floors: 4, rooms: 5 },
{ id: 2, floors: 1, rooms: 1 },
{ id: 3, floors: 3, rooms: 3 },
{ id: 4, floors: 5, rooms: 2 },
{ id: 6, floors: 4, rooms: 10 },
{ id: 7, floors: 4, rooms: 5 }
];
let filters = { id: '2-7', rooms: 3 };
function detectMethod(value) {