Skip to content

Instantly share code, notes, and snippets.

@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.
## 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 / 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:
@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",

Nginx ingress controller

To make use of the Nginx ingress controller your Kubernetes environment must be configured to have the Rancher ingress controller disabled (Enable Rancher Ingress Controller should be false).

The Nginx ingress controller must be deployed before launching any ingresses. The recommended way of doing this is via Helm.

helm install stable/nginx-ingress
@ask0n
ask0n / happy_git_on_osx.md
Created February 5, 2018 09:48 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@ask0n
ask0n / ssh_key.tf
Created August 6, 2018 19:24 — forked from irvingpop/ssh_key.tf
Terraform external data source example - dynamic SSH key generation
# ssh key generator data source expects the below 3 inputs, and produces 3 outputs for use:
# "${data.external.ssh_key_generator.result.public_key}" (contents)
# "${data.external.ssh_key_generator.result.private_key}" (contents)
# "${data.external.ssh_key_generator.result.private_key_file}" (path)
data "external" "ssh_key_generator" {
program = ["bash", "${path.root}/../ssh_key_generator.sh"]
query = {
customer_name = "${var.customer_name}"
customer_group = "${var.customer_group}"
@ask0n
ask0n / ipa.tf
Created October 11, 2018 20:29 — forked from justmiles/ipa.tf
Deploy FreeIPA in AWS using Terraform
# Notes:
# You'll need to update any references to 'module.vpc' with your VPC's info (subnets, security groups, etc)
# If you define your subnets as a map, this will deploy different replicas across availabity zones. Note
# that the master and first replica will be in the same AZ.
#
# Look through the 'connection' fields and update with your bastion_host/key combos
#
# Number of IPA Replica(s) to deploy
variable "ipa_replicas" {
@ask0n
ask0n / freeotp_backup.md
Created September 21, 2019 11:08 — forked from kontez/freeotp_backup.md
A guide to back up and recover 2FA tokens from FreeOTP (Android)

Backing up and recovering 2FA tokens from FreeOTP

Backing up FreeOTP

Using adb, create a backup of the app using the following command:

adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp
@ask0n
ask0n / go-carbon-carbonapi-grafana-setup-memo.txt
Created November 3, 2019 18:43 — forked from hnakamur/go-carbon-carbonapi-grafana-setup-memo.txt
go-carbon with built-in carbonserver enabled, carbonapi and grafana setup memo
# setup go
curl -sS https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | tar zxf - -C /usr/local
export PATH=/usr/local/go/bin:$HOME/go/bin:$PATH
yum install -y make git
# setup go-carbon
go get -d github.com/lomik/go-carbon
cd $HOME/go/src/github.com/lomik/go-carbon