Skip to content

Instantly share code, notes, and snippets.

@elsonrodriguez
elsonrodriguez / golang-tls.md
Created July 16, 2016 23:48 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
    
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key
@elsonrodriguez
elsonrodriguez / README.md
Last active August 8, 2016 00:00
Creating a Jira project for automated workflows

Create a new project From the administration page

Select "Task Management" as the project type and hit next

Click "Select"

Enter your project name, in this example we are creating a Deployment workflow

Click submit

@elsonrodriguez
elsonrodriguez / README.md
Created August 22, 2016 16:49
Sysdig Tricks

Show command line for a given command execed by any proc:

sysdig  -p"%proc.exeline" evt.buffer contains <command>
@elsonrodriguez
elsonrodriguez / README.md
Last active August 23, 2016 17:57
Ceph K8s documentation re-write.
@elsonrodriguez
elsonrodriguez / README.md
Last active June 3, 2021 09:32
Ceph Ansible Quickstart Guide

Quick and Dirty Ceph Cluster

This is a bare-bones guide on how to setup a Ceph cluster using ceph-ansible

This guide assumes:

  • Ansible is installed on your local machine
  • Eight Centos 7.2 nodes are provisioned and formatted with XFS
  • You have ssh and sudo access to your nodes

Ansible Setup

@elsonrodriguez
elsonrodriguez / README.md
Created September 21, 2016 18:31
Testing Kubernetes

Run e2e conformance tests against current cluster context:

KUBERNETES_CONFORMANCE_TEST=y KUBERNETES_PROVIDER=skeleton go run hack/e2e.go -v --test --test_args="--ginkgo.focus=\[Conformance\]"
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
labels:
app: hadoop
daemon: datanode
name: hadoop-datanode
namespace: hadoop
spec:

When trying to mount a cephfs volume, my command hangs for minutes.

mount -t ceph -o name=admin,secret=xxx==  ceph-mon.ceph.svc.harbor0.group.company.com:6789:/ /mnt/test/
mount error 5 = Input/output error

Output from the mounting system's logs:

[2948295.425025] libceph: client214643 fsid 80802a78-0c63-4146-8040-c93730f92515
@elsonrodriguez
elsonrodriguez / gist:3d3d708a57e4942808144d099e571a8f
Created November 29, 2016 00:52
Notes on ZPL printing on OSX
cupsctl WebInterface=yes
add Zebra_RAW printer via interface.
lp -d Zebra_RAW -o raw <path>
@elsonrodriguez
elsonrodriguez / fast-sc.yaml
Last active February 12, 2019 03:20
Superset/Caravel on Kubernetes
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: fast
provisioner: kubernetes.io/gce-pd
parameters:
type: pd-ssd