Skip to content

Instantly share code, notes, and snippets.

Avatar
🇺🇦

Denis oleynikd

🇺🇦
View GitHub Profile
@oleynikd
oleynikd / Activity.java
Created Nov 7, 2017
Android TV HDMI plug/unplug event example
View Activity.java
package ua.youtv.testapp;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
import static android.media.AudioManager.ACTION_HDMI_AUDIO_PLUG;
@oleynikd
oleynikd / backup.md
Last active Apr 19, 2016
Installing backup gem on ubuntu
View backup.md
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
oleynikd / duply.md
Last active Jun 25, 2018
Amazon AWS (Amazon Linux AMI) Duplicity via Duply Backups to S3 installation and setup
View duply.md

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):