Skip to content

Instantly share code, notes, and snippets.


Denis oleynikd

View GitHub Profile
oleynikd /
Last active June 25, 2018 16:43
Amazon AWS (Amazon Linux AMI) Duplicity via Duply Backups to S3 installation and setup

Installing on Amazon Linux AMI (release 2014.09)

Installing using yum. By default Amazon Linux AMI release has only AWS's yum repos, but it has EPEL (Extra Packages for Enterprise Linux) predefined but not enabled. To temporarily enable the EPEL 6 repository, use the yum command line option --enablerepo=epel.

Installing duplicity and dependencies:

sudo yum install duplicity rsync gpg python python-devel python-pip --enablerepo=epel

Insalling duply manually (latest version can be found here):

oleynikd /
Last active April 19, 2016 14:53
Installing backup gem on ubuntu
apt-add-repository ppa:brightbox/ruby-ng
apt-get update
apt-get -y install ruby2.2 ruby2.2-dev build-essential zlib1g-dev mysql-client-5.5
gem install backup
oleynikd /
Created November 7, 2017 18:38
Android TV HDMI plug/unplug event example
package ua.youtv.testapp;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
import static;