Skip to content

Instantly share code, notes, and snippets.

View dmitry-ilyashevich's full-sized avatar

Dzmitry Ilyashevich dmitry-ilyashevich

View GitHub Profile
@dmitry-ilyashevich
dmitry-ilyashevich / iceberg_light.conf
Created November 11, 2022 09:17 — forked from gkeep/iceberg_light.conf
Iceberg light theme for kitty terminal
background #e8e9ec
foreground #33374c
selection_background #d2d4dd
selection_foreground #33374c
cursor #33374c
cursor_text_color #e8e9ec
# white
@dmitry-ilyashevich
dmitry-ilyashevich / gist:f1149cb18c74a7864b1aa15394461b0b
Created December 17, 2018 12:14 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database

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

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 August 12, 2017 16:14 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

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

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")
@dmitry-ilyashevich
dmitry-ilyashevich / SassMeister-input.scss
Created August 19, 2015 20:53
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
@function modular-scale($value, $increment, $ratio) {
@if $increment > 0 {
@for $i from 1 through $increment {
$value: ($value * $ratio);
}
}

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy
@dmitry-ilyashevich
dmitry-ilyashevich / SassMeister-input.scss
Created May 14, 2015 20:34
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
@function modular-scale($value, $increment, $ratio) {
@if $increment > 0 {
@for $i from 1 through $increment {
$value: ($value * $ratio);
}
}
@dmitry-ilyashevich
dmitry-ilyashevich / SassMeister-input.scss
Created May 6, 2015 12:30
Generated by SassMeister.com.
// ----
// 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)...);
}
@dmitry-ilyashevich
dmitry-ilyashevich / SassMeister-input.scss
Created March 16, 2015 09:05
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
/*! ========================================================================
QUANTITY QUERIES FOR SASS
-------------------------
Author: Indrek Paas <@indrekpaas>