Skip to content

Instantly share code, notes, and snippets.

@ask0n
ask0n / lizardfs.template
Created February 15, 2017 15:02 — forked from badri/lizardfs.template
LizardFS CloudFormation template.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "LizardFS CloudFormation template. See: http://goo.gl/1bp2qF and http://goo.gl/vEOJq5 and http://goo.gl/Fpzm61",
"Parameters" : {
"DataNodeCount" : {
"Description" : "Number of data nodes to provision in cluster (2-18)",
"Type" : "Number",
"Default" : "2",
@ask0n
ask0n / info.txt
Created September 14, 2016 09:24 — forked from phrawzty/info.txt
python27 in CentOS via SCL on Socorro Vagrant
(socorro-virtualenv)[vagrant@localhost ~]$ cat /etc/centos-release
CentOS release 6.4 (Final)
(socorro-virtualenv)[vagrant@localhost ~]$ sudo yum install centos-release-SCL
[...]
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
## hostvars:
letsencrypt_certs:
- demo.ubuntu.lt
- ubuntu.lt, www.ubuntu.lt
- legacy.ubuntu.lt
## my letsencrypt role's main/tasks.yml:
- name: generate certificates
@ask0n
ask0n / gist:88b844080df9891460fc
Created November 5, 2015 12:49 — forked from bailsman/gist:0be72ceba495f4e3fab6
SSH_ASKPASS script that works without X
#!/bin/bash
set -o errexit
set -o nounset
# This script is useful when forwarding your agent to an untrusted server. It works without X.
#
# To use this script, export DISPLAY=FAKE SSH_ASKPASS=/path/to/this/script SSH_ASKPASS_TTY=$(tty)
# before you do eval `ssh-agent` (these variables should end up in the environment ssh-agent runs in)
# Then add keys to the agent with ssh-add -c /path/to/key
# ssh-agent will then call this script to ask you for confirmation when asked for that key.