Skip to content

Instantly share code, notes, and snippets.

View TrongTan124's full-sized avatar

Nguyễn Trọng Tấn TrongTan124

  • VNPT-IT
  • Hà Nội, Việt Nam
View GitHub Profile
stack@octavia:~$ cat /etc/octavia/octavia.conf |egrep -v "^$|^#"
[DEFAULT]
transport_url = rabbit://stackrabbit:[email protected]:5672/
api_handler = queue_producer
bind_host = 172.16.68.59
logging_exception_prefix = ERROR %(name)s %(instance)s
logging_default_format_string = %(color)s%(levelname)s %(name)s [-%(color)s] %(instance)s%(color)s%(message)s
logging_context_format_string = %(color)s%(levelname)s %(name)s [%(global_request_id)s %(request_id)s %(project_name)s %(user_name)s%(color)s] %(instance)s%(color)s%(message)s
logging_debug_format_suffix = {{(pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d}}
[api_settings]
@TrongTan124
TrongTan124 / byobuCommands
Created July 10, 2017 09:29 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@TrongTan124
TrongTan124 / mos-websso.rst
Created May 24, 2017 09:00 — forked from bretonium/mos-websso.rst
How to configure Mirantis OpenStack for WebSSO via Okta
  • To use openstack cli you need to switch it to using v3 API. Do this:
    1. cp openrc openrc.v3
    2. edit openrc.v3 and
      • add there this line: export OS_IDENTITY_API_VERSION=3
      • change OS_AUTH_URL to point to v3.
  • Create an identity provider

    openstack identity provider create idp_1 # idp_1 is an id. Use any you like. I like idp_1

@TrongTan124
TrongTan124 / slackpost
Created May 5, 2017 02:53 — forked from dopiaza/slackpost
Post a message to a Slack channel
#!/bin/bash
# Usage: slackpost <token> <channel> <message>
# Enter the name of your slack host here - the thing that appears in your URL:
# https://slackhost.slack.com/
slackhost=PUT_YOUR_HOST_HERE
token=$1
@TrongTan124
TrongTan124 / elasticsearch.yml
Created April 27, 2017 04:18 — forked from reyjrar/elasticsearch.yml
ElasticSearch config for a write-heavy cluster
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration for a write heavy cluster
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing