Skip to content

Instantly share code, notes, and snippets.

View relaxdiego's full-sized avatar

Mark Maglana relaxdiego

View GitHub Profile
@relaxdiego
relaxdiego / golang-tls.md
Last active March 7, 2026 19:14 — forked from denji/golang-tls.md
OpenSSL TLS

Moved to git repository: https://github.com/denji/golang-tls

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)
javascript:(function(){try{document.documentElement.requestFullscreen();var style=document.createElement('style');style.textContent=':root {color-scheme: light !important;} @media (prefers-color-scheme: dark) {html, body, * {background-color: #fff !important; color: #000 !important;}}';document.head.appendChild(style);}catch(e){alert('Fullscreen or light mode failed: '+e.message);}})();
demo:
provider: openstack
auth_service:
name: identity
host_uri: http://192.168.42.11:5000
request: create_token
validator: list_tenants
api_version: v3
#
# Installation:
# mkdir -p ~/.byobu
# wget -O ~/.byobu/keybindings.tmux byobu.relaxdiego.com
# tmux source-file ~/.byobu/keybindings.tmux
#
# Rebind Ctrl-a as the prefix
unbind-key -n C-a
set -g prefix ^A
@relaxdiego
relaxdiego / gist:be7b87cae8c2d51d5ee4
Last active May 31, 2024 06:31 — forked from dayyan/gist:e62bddc65ce1af735f0f
Setting up git send-email in OS X
  1. Configure Gmail in you gitconfig:
[sendemail]
  smtpserver = smtp.gmail.com
  smtpserverport = 587
  smtpencryption = tls
  smtpuser = <gmail email address>
  from = <email address for From: field>
@relaxdiego
relaxdiego / README.md
Created March 23, 2017 17:58 — forked from dnozay/_Jenkins+Script+Console.md
jenkins groovy scripts collection.
@relaxdiego
relaxdiego / upload-github-release-asset.sh
Created July 4, 2017 18:22 — forked from stefanbuck/upload-github-release-asset.sh
Script to upload a release asset using the GitHub API v3.
#!/usr/bin/env bash
#
# Author: Stefan Buck
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
# * repo
@relaxdiego
relaxdiego / graphite.md
Last active January 5, 2022 09:07 — forked from surjikal/graphite.md
Installing Graphite in OS X Mavericks

Follow these steps to install graphite on OS X Mavericks.

Prerequisites

  • Homebrew
  • Python 2.7
  • Git

Install dependencies

Install Cairo and friends

@relaxdiego
relaxdiego / install-tmux
Last active December 7, 2021 16:09 — forked from rothgar/install-tmux
Install tmux 2.2 on CentOS 7.1
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
make
sudo make install
#!/usr/bin/env bash
#
# Usage: ./yaml-to-json.sh | jq .
#
file=$1
if ! pip show pyyaml >/dev/null; then
echo "PyYAML needs to be installed"