Skip to content

Instantly share code, notes, and snippets.

View densmirnov's full-sized avatar
🏖️
I may be slow to respond.

Denis Smirnov densmirnov

🏖️
I may be slow to respond.
View GitHub Profile
import { useState } from "react";
import { Box, Button, FormControl, FormErrorMessage, Textarea } from "@chakra-ui/react";
import { Field, Form, Formik, FormikProps } from "formik";
import { Trans } from "@lingui/macro";
const AddOperations = ({ arbitratorAddress }) => {
const [submissionData, setSubmissionData] = useState<any>();
const validateOperations = (value: string) => {
let error;
did:3:kjzl6cwe1jw145lzked73faw1o46fy6zqgynqipoirnd49nwnp8lmkxknulbvsa
did:muport:QmTyDZhSAwX2tW84cKHNJgk385gwNHehJzR7UhLvVE8vgv
@densmirnov
densmirnov / digitalocean-promo-cupon-code-free-trial.md
Created August 17, 2018 04:16
DigitalOcean Coupon Code $35 / $100 1 Year Free Trial - August 2018

alt text

Digital Ocean Promo Coupon Code $35 / $100 1 Year Free Trial

1) Get $35 / $25 / $20 / $10 free DigitalOcean Credit.

2) Get DigitalOcean 1 Year Free Trial.

3) Get $100 Credit For 60 Days. $100 Free Credits

Verifying my Blockstack ID is secured with the address 12nFRj6Uutu9kHRFoHw3rXv7BHzJta9k6C https://explorer.blockstack.org/address/12nFRj6Uutu9kHRFoHw3rXv7BHzJta9k6C
0xE3297Cae3144C94129C62195A998Dd30005c4f67
@densmirnov
densmirnov / gunstart.sh
Created June 8, 2017 22:42
Simple Alias to run GunBot instances with PM2
#!/bin/bash
export ARCH FOLDER GUNTHY PM2
ARCH=$(uname -m)
if [[ "$OSTYPE" == "linux-gnu" && "$ARCH" == "x86_64" ]]; then
GUNTHY="gunthy-linuxx64"
elif [[ "$OSTYPE" == "linux-gnu" && "$ARCH" == "i686" ]]; then
GUNTHY="gunthy-linuxx86"
elif [[ "$OSTYPE" == "darwin"* ]]; then
GUNTHY="gunthy-macos"
@densmirnov
densmirnov / cryptoPortfolio.gs
Created May 24, 2017 20:17 — forked from sargonas/cryptoPortfolio.gs
crypto portfolio import for google sheets
/////////////////////////
//Section 1: Coin Value//
/////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
//coin market value lookup (works for all coins, just pass a single coin symbol as a parameter)
function getCoinPriceBySymbol(symbol) {
var url = 'https://api.coinmarketcap.com/v1/ticker/';
var response = UrlFetchApp.fetch(url);
var json = JSON.parse(response.getContentText());
Verifying that "18h3PUoictfxhwNsehVSnLwhdCQnvF4H8E.id" is my Blockstack ID. https://onename.com/18h3PUoictfxhwNsehVSnLwhdCQnvF4H8E
@densmirnov
densmirnov / gunbot.yaml
Created January 6, 2017 10:48
gunbot.yaml command file for pm2 process manager
apps:
- script : ./gunbot.js
name : 'BTC_ETH'
args : 'BTC_ETH'
out_file : 'logs/ETH.log'
- script : ./gunbot.js
name : 'BTC_XMR'
args : 'BTC_XMR'
out_file : 'logs/XMR.log'
- script : ./gunbot.js