View cpuinfo.txt
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 61
model name : Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
stepping : 4
microcode : 0x24
cpu MHz : 2899.951
cache size : 4096 KB
physical id : 0
View README.md

The best HA/automated architecture

Disclaimer: I don't believe there is a best architecture. It depends of the business requirements and there are several things to consider, including non-tecnical ones.

High-availability

List of things I've done to have a reliable, easy to maintain, operate and evolve HA architecture.

Scale dinamically

View workarround.md

To solve screen is flickering

sudo -e /etc/default/grub

Add i915.enable_psr=0 to GRUB_CMDLINE_LINUX="...... i915.enable_psr=0"

View thyme.sh
#! /bin/bash
# Dependencies (Fedora)
# xprintidle: https://copr.fedorainfracloud.org/coprs/alonid/xprintidle/
# wmctrl: dnf install wmctrl
# Config
LOGFILE="/home/antonmry/Documents/thyme/thyme_$(date '+%Y%m%d').log"
HTMLFILE="/home/antonmry/Documents/thyme/thyme_$(date '+%Y%m%d').html"
HTMLFILETEMP="/home/antonmry/Documents/thyme/thyme.html"
View main.groovy
import groovy.lang.GroovyClassLoader
// http://docs.groovy-lang.org/latest/html/documentation/index.html#_integrating_groovy_in_a_java_application
def gcl = new GroovyClassLoader()
def clazz = gcl.parseClass(new File("./template.groovy"))
assert clazz.name == 'Env'
def o = clazz.newInstance()
o.doIt()
println o.test
View call-forwarding-receiver.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<!-- Luis Barreiro - Mobicents QA team -->
<scenario name="UAS for SIP-Servlets Tests">
<recv request="INVITE" rrs="true" timeout="5000" />
<send>
View intellij.md

Intellij IDEA - Cheat Sheet (aka most useful shortcuts)

Note: Some of these keymapping are specific to IdeaVim plugin. If you don't use IdeaVim (what' wrong with you :)), I've tried to point out where they differ, but I could have missed a few

Coding Session

Parameter documentation for Method Calls

  • Ctrl-P - Popup parameter documentation for method calls
View cards.go
package main
// See https://www.reddit.com/r/dailyprogrammer/comments/4knivr/20160523_challenge_268_easy_network_and_cards/
import (
"flag"
"fmt"
"net"
"os"
"sync"
View restcomm_rc_range.yml
apiVersion: v1
kind: ReplicationController
metadata:
name: restcomm-core-controller
spec:
replicas: 1
selector:
app: restcomm-core
template:
metadata:
View delete_label_from_issues.sh
ghi list -L LABELTOBEDELETED -s closed -- YOURORGANIZATION/YOURREPO | sed -n '/^[ 0-9 ]/p' | sed -r 's/([^0-9]*([0-9]*)){1}.*/\2/' | xargs -I %issue sh -c 'ghi label "%issue" -d "LABELTOBEDELETED" -- YOURORGANIZATION/YOURREPO'