Skip to content

Instantly share code, notes, and snippets.

View voz's full-sized avatar

Andrii Vozniuk voz

View GitHub Profile
@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

Keybase proof

I hereby claim:

  • I am voz on github.
  • I am voz (https://keybase.io/voz) on keybase.
  • I have a public key whose fingerprint is ED52 6C27 06C4 375D 412D 8784 5A5F 79A8 E901 6396

To claim this, I am signing this object:

@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 / 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 / email-with-ses.js
Last active March 15, 2016 11:23
A script to send (survey) emails with Amazon SES
/**
* This script allows sending emails with Amason SES (you should already have an account).
*
* It can be useful, for instance, when you want to distribute a survey done with Google Forms,
* but Google keeps on telling you:
* "You've temporarily exceeded your email quota. Please wait for a while and try sending again."
*
* Before running the script, install nodemailer and lodash:
* `$ npm install nodemailer`
* `$ npm install lodash`