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
@densmirnov
densmirnov / brew-sync.sh
Last active August 29, 2015 14:16 — forked from jpawlowski/brew-sync.sh
Sync Homebrew installations via Microsoft OneDrive
#!/bin/bash
# Sync Homebrew installations via Microsoft OneDrive
#
# Colored Output
b='\033[1;34m' # Blue
w='\033[1;30m' # White
c='\033[0m' # No Color
@densmirnov
densmirnov / site.conf
Last active August 29, 2015 14:22 — forked from paskal/site.conf
# read more at https://terrty.net/2014/ssl-tls-in-nginx/
# latest version on https://gist.github.com/paskal/628882bee1948ef126dd/126e4d1daeb5244aacbbd847c5247c2e293f6adf
# security test score: https://www.ssllabs.com/ssltest/analyze.html?d=terrty.net
# your nginx version might not have all directives included, test this configuration before using in production against your nginx:
# $ nginx -c /etc/nginx/nginx.conf -t
server {
# public key, contains your public key and class 1 certificate, to create:
# (example for startssl)
# $ (cat example.com.pem & wget -O - https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem) | tee -a /etc/nginx/ssl/domain.pem > /dev/null
Verifying that +densmirnov is my blockchain ID. https://onename.com/densmirnov
@densmirnov
densmirnov / gist:e4b51747c349f554b28f6672caaa93a3
Created July 25, 2016 06:11 — forked from craigminihan/gist:b23c06afd9073ec32e0c
Build GCC 4.9.2 for C/C++ on CentOS 7
sudo yum install libmpc-devel mpfr-devel gmp-devel
cd ~/Downloads
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O
tar xvfj gcc-4.9.2.tar.bz2
cd gcc-4.9.2
./configure --disable-multilib --enable-languages=c,c++
make -j 4
make install
@densmirnov
densmirnov / bitmarkClaiming
Created September 17, 2016 19:50
Claiming of Bitmark account
Publicly linking my bitmark account / https://economy.bitmark.com/account/e6qNyaJSQ5G2HyGunCJh2AzhUTnyhDRG1h8Nbyuy8LNDKyhBcS/a2b0e53670f6cfcde0a4f01a9397045470a4c6a0cfe873cb3903cb59a8d533f03d16d9015109b655f6d5d5df73d7d6cf6a5ee746ecd0ef952048fff4a32d740b

Keybase proof

I hereby claim:

  • I am densmirnov on github.
  • I am densmirnov (https://keybase.io/densmirnov) on keybase.
  • I have a public key whose fingerprint is B833 F791 BC1B 6111 8B4B 0CE9 AB6F 0B3A 0924 B748

To claim this, I am signing this object:

@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
Verifying that "18h3PUoictfxhwNsehVSnLwhdCQnvF4H8E.id" is my Blockstack ID. https://onename.com/18h3PUoictfxhwNsehVSnLwhdCQnvF4H8E
@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());
@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"