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 / 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

@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 / 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 / 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
@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