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 September 14, 2022 00:07 — 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.
@elmer
elmer / GetNordVPNWireGuardDetails.md
Created March 9, 2022 04:57 — forked from bluewalk/GetNordVPNWireGuardDetails.md
Getting NordVPN WireGuard details
View GetNordVPNWireGuardDetails.md
@elmer
elmer / RFC 1925
Created February 22, 2011 03:38
The Twelve Networking Truths
View RFC 1925
Network Working Group R. Callon, Editor
Request for Comments: 1925 IOOF
Category: Informational 1 April 1996
The Twelve Networking Truths
Status of this Memo
This memo provides information for the Internet community. This memo
does not specify an Internet standard of any kind. Distribution of
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 December 11, 2020 10:42 — 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 October 26, 2019 12:15 — 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 September 17, 2019 05:15 — 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: