Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Trying to quit VIM

Dmitry A. Ilyashevich dmitry-ilyashevich

💭
Trying to quit VIM
View GitHub Profile
@dmitry-ilyashevich
dmitry-ilyashevich / gist:f1149cb18c74a7864b1aa15394461b0b
Created Dec 17, 2018 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database
View gist:f1149cb18c74a7864b1aa15394461b0b

Grab new backup of database

Command: heroku pgbackups:capture --remote production

Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712

Get url of backup download

Command: heroku pgbackups:url [db_key] --remote production

View keybase.md

Keybase proof

I hereby claim:

  • I am dmitry-ilyashevich on github.
  • I am dilyashevich (https://keybase.io/dilyashevich) on keybase.
  • I have a public key ASCvDR4IEl4i4iJPzb7wgp91pB-jMe6X0s8cJMiRLXd7Qgo

To claim this, I am signing this object:

@dmitry-ilyashevich
dmitry-ilyashevich / install-comodo-ssl-cert-for-nginx.rst
Created Aug 12, 2017 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

View app_id_generator.rb
class Analytics::AppIdGenerator
attr_accessor :current_site
DEFAULT_APP_ID = 200
def initialize(current_site = 'fashion', _request_host = nil)
self.current_site = current_site
end
def app_id
send("#{current_site.gsub(/\.|\-/, "_")}_app_id")
View SassMeister-input.scss
// ----
// libsass (v3.2.4)
// ----
@function modular-scale($value, $increment, $ratio) {
@if $increment > 0 {
@for $i from 1 through $increment {
$value: ($value * $ratio);
}
}
View README.md

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy
View SassMeister-input.scss
// ----
// libsass (v3.2.4)
// ----
@function modular-scale($value, $increment, $ratio) {
@if $increment > 0 {
@for $i from 1 through $increment {
$value: ($value * $ratio);
}
}
View SassMeister-input.scss
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
@function chain($value, $functions...) {
@each $function in $functions {
$value: call(nth($function, 1), set-nth($function, 1, $value)...);
}
View SassMeister-input.scss
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
/*! ========================================================================
QUANTITY QUERIES FOR SASS
-------------------------
Author: Indrek Paas <@indrekpaas>
View gist:f7da957977319fe9647a
#
# This file is the units database for use with GNU units, a units conversion
# program by Adrian Mariano adrianm@gnu.org
#
# March 2014 Version 2.10
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006
# 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
# Free Software Foundation, Inc
#