Skip to content

Instantly share code, notes, and snippets.

View okdas's full-sized avatar
:shipit:

Dima K. okdas

:shipit:
View GitHub Profile
# TODO_CONSIDERATION: We don't need this now, but it would be beneficial if the
# logic handling this config file could be designed in such a way that it allows for
# "hot" config changes in the future, meaning changes without restarting a process.
# This would be useful for adding a new supplier without interrupting the service.
# Name of the key (in the keyring) used to sign transactions.
signing_key_name: supplier1
# Relative path (on the relayminer's machine) to the SMT KV store data on disk.
smt_store_path: smt_stores
@okdas
okdas / genesis.json
Created February 13, 2024 22:16
TestNet Genesis
{
"app_name": "poktrolld",
"app_version": "",
"genesis_time": "2024-02-08T20:44:06.415749Z",
"chain_id": "poktroll",
"initial_height": 1,
"app_hash": null,
"app_state": {
"application": {
"applicationList": [
/root/.pocket/config/priv_validator_key.json:
{
"address": "9E5032CAE5AEE2A57D9CEE0A2921970C09324759",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "RJO6kuOHELMgXrpMMLz2hHlvE1Xb+EgKpTspSwDKADE="
},
"priv_key": {
"type": "tendermint/PrivKeyEd25519",
#!/bin/bash
TZ=Europe/London && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
apt-get install -y -qq wget gcc make git nvme-cli nano unzip runit pv aria2 lz4
runsvdir -P /etc/service &
if [[ -n $SSH_PASS ]]
then
apt-get install -y ssh
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && (echo $SSH_PASS; echo $SSH_PASS) | passwd root && service ssh restart
fi
{
"__inputs": [
{
"name": "DS_NATS-PROMETHEUS",
"label": "NATS-Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
### Keybase proof
I hereby claim:
* I am okdas on github.
* I am kdas (https://keybase.io/kdas) on keybase.
* I have a public key whose fingerprint is 7D1C ADF0 12B7 7A03 DAA6 0AFB E61E D270 0D20 9E2A
To claim this, I am signing this object:
<?xml version="1.0" encoding="utf-8"?>
<yandexsearch version="1.0">
<request>
<query>
site:sw76.ru &quot;помощь военного юриста&quot;
</query>
<page>
0
</page>
<sortby order="ascending" priority="no">
@okdas
okdas / gist:28aba84faa51b7e0b8314bbce659d7b4
Last active January 20, 2017 03:10
OVH Ubuntu/Debian eth1 + docker install sript
#!/bin/bash
echo 'auto eth1' >> /etc/network/interfaces
echo 'iface eth1 inet dhcp' >> /etc/network/interfaces
/sbin/ifup eth1
wget -qO- https://get.docker.com/ | sh
SELECT DISTINCT `triggers`.`triggerid` AS t0_r0, `triggers`.`expression` AS t0_r1, `triggers`.`description` AS t0_r2, `triggers`.`url` AS t0_r3, `triggers`.`status` AS t0_r4, `triggers`.`value` AS t0_r5, `triggers`.`priority` AS t0_r6, `triggers`.`lastchange` AS t0_r7, `triggers`.`comments` AS t0_r8, `triggers`.`error` AS t0_r9, `triggers`.`templateid` AS t0_r10, `triggers`.`type` AS t0_r11, `triggers`.`state` AS t0_r12, `triggers`.`flags` AS t0_r13, `hosts`.`hostid` AS t1_r0, `hosts`.`proxy_hostid` AS t1_r1, `hosts`.`host` AS t1_r2, `hosts`.`status` AS t1_r3, `hosts`.`disable_until` AS t1_r4, `hosts`.`error` AS t1_r5, `hosts`.`available` AS t1_r6, `hosts`.`errors_from` AS t1_r7, `hosts`.`lastaccess` AS t1_r8, `hosts`.`ipmi_authtype` AS t1_r9, `hosts`.`ipmi_privilege` AS t1_r10, `hosts`.`ipmi_username` AS t1_r11, `hosts`.`ipmi_password` AS t1_r12, `hosts`.`ipmi_disable_until` AS t1_r13, `hosts`.`ipmi_available` AS t1_r14, `hosts`.`snmp_disable_until` AS t1_r15, `hosts`.`snmp_available` AS t1_r16, `hosts`.`mai
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"