Skip to content

Instantly share code, notes, and snippets.

View lrascao's full-sized avatar

Luis Rascão lrascao

View GitHub Profile
@lrascao
lrascao / Makefile
Last active August 29, 2015 14:09 — forked from ericbmerritt/Makefile
# Copyright 2012 Erlware, LLC. All Rights Reserved.
#
# This file is provided to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
@lrascao
lrascao / gist:f57312ff33b799c4c0db56b10e80fe26
Created March 31, 2016 16:19
Export/Import datadog dashboards
dash_id=xxxx
api_key=xxx
app_key=xxx
# 1. export
curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json
# 2. edit dash.json
move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level
@lrascao
lrascao / gist:24a73c375d8aafd6fd5a3a91545aaee1
Created September 13, 2016 21:56
Validating gcc signature
# download the Gnu keyring and import it
curl http://ftp.gnu.org/gnu/gnu-keyring.gpg -O
gpg --import gnu-keyring.gpg
# download the gcc tarball and verify it
curl ftp://ftp.gnu.org/pub/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2.sig -O
gpg --verify ./gcc-5.4.0.tar.bz2.sig
gpg --verify ./gcc-5.4.0.tar.bz2.sig gcc-5.4.0.tar.bz2
@lrascao
lrascao / gist:97f6dbf38083b7eb03be820c0017362d
Last active September 14, 2016 17:56
Download and install gcc
sudo yum install libmpc-devel mpfr-devel gmp-devel zlib-devel*
mkdir -p gcc/src gcc/tarballs gcc/releases
cd gcc/tarballs
curl ftp://ftp.gnu.org/pub/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O
# verify the signatures
cd ..
@lrascao
lrascao / gist:6880485b8dc4c51c74392b0fa5b9d358
Last active December 29, 2023 12:29
Build Erlang statically linked with OpenSSL
sudo yum install gcc gcc-c++ make libxslt fop ncurses-devel openssl-devel *openjdk-devel unixODBC unixODBC-devel
KERL_CONFIGURE_OPTIONS="--with-ssl=/home/ec2-user/openssl/releases/1.0.2h --disable-dynamic-ssl-lib" kerl build 18.3 18.3
# without ECC
KERL_CONFIGURE_OPTIONS="CFLAGS=-DOPENSSL_NO_EC=1" kerl build 18.3 18.3
mkdir -p openssl/releases openssl/src openssl/tarballs
cd openssl/tarballs
curl http://www.openssl.org/source/openssl-1.0.2h.tar.gz -O
cd ..
mkdir -p releases/1.0.2h
cp tarballs/openssl-1.0.2h.tar.gz src/
cd src
@lrascao
lrascao / gist:7f082d21e4a06a81e92ac3dfb788f1da
Created November 5, 2016 14:06
Patch to ddb_proxy grrr branch, fixes gpb build
From b863e924eb6a7c18c1bf026808d7d733d826c83d Mon Sep 17 00:00:00 2001
From: Luis Rascao <luis.rascao@miniclip.com>
Date: Sat, 5 Nov 2016 14:02:39 +0000
Subject: [PATCH] Move gpb options to ddb_proxy app rebar.config
A ddb_proxy specific rebar.config defines the
gpb configuration to be applied.
---
apps/ddb_proxy/rebar.config | 16 ++++++++++++++++
rebar.config | 15 ---------------
# /etc/security/limits.conf
#
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#
#Also note that configuration files in /etc/security/limits.d directory,
#which are read in alphabetical order, override the settings in this
#file in case the domain is the same or more specific.
#That means for example that setting a limit for wildcard domain here
#can be overriden with a wildcard setting in a config file in the
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
#
# Network settings
#
#
# This sets the max OS receive buffer size for all types of connections