Skip to content

Instantly share code, notes, and snippets.

View voz's full-sized avatar

Andrii Vozniuk voz

View GitHub Profile
@voz
voz / btsync-install
Last active February 4, 2016 15:27 — forked from rmamba/btsync-install
Install BTSync for ARM on RaspberryPi
#!/bin/bash
#On RaspberryPi run
#wget http://goo.gl/QaXLfr -O btsync-install
#sudo chmod +x btsync-install
#sudo btsync-install
cd /home/bananapi
mkdir BTSync
chown bananapi:bananapi BTSync
@voz
voz / gist:4434566b2f1fd93e6ccd
Created December 7, 2015 10:00 — forked from alfonsodev/gist:10597209
gandi.net ssl https
Gandi.net ssl certificate working with haproxy
In one file concatenate the certifcate with the private key (domain.pem in the example)
In other file just the intermediate ceritificate (gandi.ca.pem in the example) then in your haproxy.cfg
bind *:443 ssl crt /home/.ssh/domain.pem ca-file /home/.ssh/gandi.ca.pem
frontend https-in
bind *:443 ssl crt /home/.ssh/domain.pem ca-file /home/.ssh/gandi.ca.pem
timeout client 1h
@voz
voz / gist:3793268
Created September 27, 2012 10:09
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after