Skip to content

Instantly share code, notes, and snippets.

View jviveiros's full-sized avatar

Joe Viveiros jviveiros

View GitHub Profile
@jviveiros
jviveiros / keybase.md
Last active July 14, 2020 16:38
keybase.md

Keybase proof

I hereby claim:

  • I am jviveiros on github.
  • I am joe_nexhealth (https://keybase.io/joe_nexhealth) on keybase.
  • I have a public key ASCjeDIHCWLJ6B9e3vZqd94WZpvoqTtY7OepD6e_rsKM7Ao

To claim this, I am signing this object:

@jviveiros
jviveiros / keybase.md
Created September 24, 2018 14:57
Keybase

Keybase proof

I hereby claim:

  • I am jviveiros on github.
  • I am joeviveiros (https://keybase.io/joeviveiros) on keybase.
  • I have a public key ASCws_WvdnPud5ET7XZm8Kigy89iG0EaJ29h_Fh0P5txhgo

To claim this, I am signing this object:

@jviveiros
jviveiros / selenium_example.py
Created March 31, 2018 01:08
Python Selenium Example
import os
import json
from faker import Factory
from selenium.webdriver.support.wait import WebDriverWait
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import zipfile
@jviveiros
jviveiros / reveal_api.php
Created March 31, 2018 01:06
PHP Example
<?php
require_once 'vendor/autoload.php';
$username = getenv("FORWARD_HTTP_PROXY_USERNAME");
$password = getenv("FORWARD_HTTP_PROXY_PASSWORD");
$forward_proxy = getenv("FORWARD_HTTP_PROXY_HOST");
$reverse_proxy = getenv("REVERSE_HTTP_PROXY_HOST");
$client = new GuzzleHttp\Client();
@jviveiros
jviveiros / reveal_api.cs
Created March 31, 2018 01:03
C Sharp Example
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using System.Net;
namespace example
{
public static class Example
{
@jviveiros
jviveiros / reveal_api.scala
Created March 31, 2018 01:01
Scala Sampe
package example
import java.net.{InetSocketAddress, Proxy}
import com.softwaremill.sttp.okhttp.{OkHttpSyncBackend}
import okhttp3.{Authenticator, OkHttpClient}
import okhttp3.Credentials
import okhttp3.Route
import okhttp3.Response
import okhttp3.Request
@jviveiros
jviveiros / reveal_api.js
Created March 31, 2018 00:59
Node Example
const unirest = require('unirest');
var fs = require('fs');
const username = process.env.FORWARD_HTTP_PROXY_USERNAME;
const password = process.env.FORWARD_HTTP_PROXY_PASSWORD;
const forward_proxy = process.env.FORWARD_HTTP_PROXY_HOST;
const reverse_proxy = process.env.REVERSE_HTTP_PROXY_HOST;
function reveal_via_forward_proxy(tokenized_value) {
return new Promise((rs, rj) => {
@jviveiros
jviveiros / reaveal_api.go
Created March 31, 2018 00:57
Go Example
package test
import (
"fmt"
"gopkg.in/resty.v0"
"os"
)
var username = os.Getenv("FORWARD_HTTP_PROXY_USERNAME")
var password = os.Getenv("FORWARD_HTTP_PROXY_PASSWORD")
@jviveiros
jviveiros / rust_reveal.rs
Created March 31, 2018 00:55
Rust Reveal
extern crate hyper;
extern crate hyper_tls;
extern crate hyper_proxy;
extern crate envy;
extern crate reqwest;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
#[macro_use]
extern crate fake;
@jviveiros
jviveiros / sample_api.bash
Created March 31, 2018 00:53
API Curl example
curl -H "Accept:application/json," -H "Content-Type:application/json" \
-X POST -u admin:changeme -k -d "{"payment":{"card":"4111111111111111"}}" \
https://tenantid.sandbox.verygoodproxycom/api/v1