Skip to content

Instantly share code, notes, and snippets.

View eugene-s's full-sized avatar

Eugene Savchenko eugene-s

  • Remote
View GitHub Profile
@eugene-s
eugene-s / celery_healthcheck.sh
Last active May 27, 2019 11:02
Celery healthchecks for django
celery inspect ping -d <worker_name> --timeout=<timeout_time>
@eugene-s
eugene-s / docker-configure-tls.sh
Created September 11, 2018 13:09 — forked from ivan-pinatti/docker-configure-tls.sh
Enable TLS in Docker service running in Ubuntu - #docker #docker-tls #tls #ubuntu
#!/usr/bin/env bash
: ' Script that enables TLS for Docker service in Ubuntu 16.x
This script is intended to be run as root
It;
- Generates the keys
- Creates the daemon.json Docker config file
@eugene-s
eugene-s / django-eb-fab.py
Created July 3, 2017 10:20 — forked from dkarchmer/django-eb-fab.py
Fabric based deploy script for a Python/Django Server with a Docker based worker
'''
Example of a deployment script for:
- A Django based server running as an Elastic Beanstalk server tier, with Load Balancing
(Assumes a pre-configured RDS database - best practice)
- A Docker based running as an Elastic Beanstalk worker tier
Assumes following directory structure
- ./server # With Django based project and appropriate .ebextensions
- ./worker # with Docker based project and appropriate .ebextensions, Dockerfile and Dockerrun.aws.json file
# (similar to https://github.com/dkarchmer/aws-eb-docker-django)
@eugene-s
eugene-s / gist:2897ba755f2b7a61e145c808c14e8ea5
Created January 5, 2017 18:55 — forked from gankit/gist:48bdead2699c5af474b51c05f812bce4
Google Apps Script to send email via Mailgun
// Index of some column that is not used.
var SENT_COLUMN = 15;
// Place your Grid API Key here.
var MAILGUN_KEY = "YOUR_MAILGUN_KEY"
// The emails will be send from here.
var EMAIL_FROM = "Company Name <info@mycompany.com>";
// Errors will be send here
var SUPPORT_EMAIL = "error@mycompany.com";
// Subject of the email
var SUBJECT = "EMAIL SUBJECT";

Readme to setup Work On utility

Setting up workon-util

  • installing virtualenv:
sudo apt-get install python-virtualenv
  • creating folder, which will be storing your virtual environments:
mkdir ~/.virtualenvs
@eugene-s
eugene-s / README.md
Created March 25, 2016 21:51 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@eugene-s
eugene-s / Fix brightness FN-keys on Asus laptops
Last active July 21, 2018 19:57 — forked from carlocaione/-
Fix brightness FN-keys in Linux on Asus laptops (N550, UX305, UX303 etc)
commit 4e9bdc8ceeffa48962ae018cf52cc8ada72dc98b
Author: Carlo Caione <carlo@endlessm.com>
Date: Fri Aug 21 08:58:14 2015 +0200
drm/i915/opregion: work around buggy firmware that provides 15+ output devices
- DIDL/DDL2/DDL3/... are the DIDL fields in the IGDM OpRegion (Supported
Display Devices ID List)
- This field indicates which display devices are supported by the platform, and