Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
exploring

Elmer Rivera elmer

:octocat:
exploring
View GitHub Profile
@elmer
elmer / oauth-client.rb
Created Sep 14, 2022 — forked from dagingaa/oauth-client.rb
A minimal Sinatra OAuth 2.0 client and resource server.
View oauth-client.rb
require 'sinatra'
require 'open-uri'
require 'json'
# This application is the bare minimum to authorize with OAuth 2.0
# using the authorization grant scheme. No error handling included.
# The application is both a client and a resource server.
# Start it by using 'ruby <file>' and navigate to http://localhost:4567
#
# The application also needs the oauth-server written in Java.
View GetNordVPNWireGuardDetails.md
View dns-upstream
forward-addr: 2606:4700:4700::1111@53 # cloudflare
forward-addr: 2606:4700:4700::1001@53 # cloudflare
forward-addr: 2001:470:20::2@53 # he
forward-addr: 2620:fe::9@53 # quad9
forward-addr: 2620:fe::fe@53 # quad9
forward-addr: 91.239.100.100@53 # anycast.censurfridns.dk
forward-addr: 89.233.43.71@53 # unicast.censurfridns.dk
forward-addr: 74.82.42.42@53 # he
forward-addr: 1.1.1.1@53 # one.one.one.one
@elmer
elmer / RESEARCH_NANO_G.md
Created Dec 11, 2020 — forked from thomasgroch/RESEARCH_NANO_G.md
UFiber Nano G Research
View RESEARCH_NANO_G.md
View adlist.txt
"https://adaway.org/hosts.txt"
"https://blocklist.site/app/dl/ads"
"https://blocklist.site/app/dl/drugs"
"https://blocklist.site/app/dl/fraud"
"https://blocklist.site/app/dl/gambling"
"https://blocklist.site/app/dl/malware"
"https://blocklist.site/app/dl/phishing"
"https://blocklist.site/app/dl/piracy"
"https://blocklist.site/app/dl/porn"
"https://blocklist.site/app/dl/ransomware"
View rb-check.script
# rb-check
# Mikrotik RayBill Network Checker
# PPPoE Interface
:local rbInterface pppoe-rb
# Gateway in RB network
:local rbGateway 192.168.1.1
# Ping failure threshold
@elmer
elmer / unmarshal_user.go
Created Oct 26, 2019 — forked from lachlan-eagling/unmarshal_user.go
Blog - Anatomy of a Struct (Unmarshaling)
View unmarshal_user.go
package main
import (
"encoding/json"
"fmt"
)
type User struct {
FirstName string `json:"firstName"`
LastName string `json:"surname"`
@elmer
elmer / prometheus-metrics-golang.go
Created Sep 17, 2019 — forked from sysdig-blog/prometheus-metrics-golang.go
Prometheus metrics code instrumentation in Golang
View prometheus-metrics-golang.go
package main
import (
"net/http"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"log"
"time"
"math/rand"
View keybase.md

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 Feb 6, 2018 — forked from tobert/cassandra.service
A systemd unit for Cassandra
View cassandra.service
[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