Skip to content

Instantly share code, notes, and snippets.

View lrascao's full-sized avatar

Luis Rascão lrascao

View GitHub Profile
@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: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: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 / 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,