Skip to content

Instantly share code, notes, and snippets.

View elmer's full-sized avatar
:octocat:
exploring

Elmer Rivera elmer

:octocat:
exploring
View GitHub Profile
@elmer
elmer / prometheus-metrics-golang.go
Created September 17, 2019 05:15 — forked from sysdig-blog/prometheus-metrics-golang.go
Prometheus metrics code instrumentation in Golang
package main
import (
"net/http"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"log"
"time"
"math/rand"

Keybase proof

I hereby claim:

  • I am elmer on github.
  • I am ubuntunero (https://keybase.io/ubuntunero) on keybase.
  • I have a public key ASDRRi0Jaxl-hnf6syfvopAv3zCcaUeyGbQQAqVNnwPA2Qo

To claim this, I am signing this object:

@elmer
elmer / cassandra.service
Created February 6, 2018 18:43 — forked from tobert/cassandra.service
A systemd unit for Cassandra
[Unit]
Description=Cassandra
After=network.target
[Service]
Type=forking
PIDFile=/var/lib/cassandra/cassandra.pid
User=cassandra
Group=cassandra
ExecStart=/usr/bin/cassandra -p /var/lib/cassandra/cassandra.pid
@elmer
elmer / pldt-home-fibr-an5506-04-fa-rp2616-advanced-settings.md
Created February 6, 2018 16:42 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

By default the PLDT HOME FIBR AN5506-04-FA RP2616 comes only with limited settings.

Hidden from the web interface are the rest of the router's capabilities and advanced settings.

We just need to enter the right url for the settings you're looking for.

We need to be logged in before we can do anything else, use your defined password if you already set the admin password.

# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.
@elmer
elmer / README.md
Created October 12, 2013 13:13 — forked from nikcub/README.md
@elmer
elmer / default-puppet
Created September 30, 2013 09:26
default-puppet.conf
[main]
pluginsync = true
echo 'Acquire::http::Proxy "http://10.20.30.100:3128";' | tee /etc/apt/apt.conf.d/00-proxy
echo 'http_proxy = http://10.20.30.100:3128/' | tee -a /etc/wgetrc
apt-get update
@elmer
elmer / bldpkg.sh
Created August 6, 2013 12:59 — forked from crazed/bldpkg.sh
#!/bin/bash
MPATH=$1
BETCDIR='/etc/mcollective'
BRUBYDIR='/Library/Ruby/Site/1.8'
BSBINDIR='/usr/sbin'
BBINDIR='/usr/bin'
BLIBEXECDIR='/usr/libexec/mcollective'
BDOCDIR='/usr/share/doc/mcollective'
BLAUNCHDIR='/Library/LaunchDaemons'
BLOGDIR='/var/log/mcollective'
require 'rubygems'
require 'rubygems/package'
require 'zlib'
require 'fileutils'
module Util
module Tar
# Creates a tar file in memory recursively
# from the given path.
#