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 / setup.md
Created August 21, 2025 16:15 — forked from bhouse/setup.md
YubiKey GPG + GitHub setup

Yubikey + GPG + Github + Keybase

The following guide are steps that can be used to generate GPG keys on a YubiKey, use the gpg keys to sign github commits, and publish the public gpg key to Keybase.

Why is this a good idea?

  1. Generating and storing GPG keys on a YubiKey allows the private key to be protected and ported between physical machines.
  2. Signing git commits adds an extra layer of verification that code changes originated from an trusted source.
  3. Using a YubiKey + touch-to-sign requires a physical presence to use the GPG signing key.
  4. GitHub supports restricting commits to a repo to only those that are signed.
  5. Putting a physical stamp on your code commits invokes a feeling of pride.
@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 <[email protected]>";
// Errors will be send here
var SUPPORT_EMAIL = "[email protected]";
// Subject of the email
var SUBJECT = "EMAIL SUBJECT";
@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 <[email protected]>
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