Skip to content

Instantly share code, notes, and snippets.

@rayleyva
rayleyva / README.md
Created February 7, 2021 17:53 — forked from ctsrc/README.md
How to run FreeBSD 13.0-BETA1 for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc)
@rayleyva
rayleyva / auto-centos7-vbox-guest.sh
Created November 23, 2020 01:16
VirtualBox CentOS7 Guest Automation
VBoxManage createmedium \
--filename "$HOME/VirtualBox VMs/cent7/cent7.vdi" \
--size 2000000
VBoxManage createvm \
--name cent7 \
--ostype RedHat_64 \
--register
VBoxManage storagectl cent7 \

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from Feb

@rayleyva
rayleyva / hot-cloud-swap-script.md
Created June 8, 2018 22:56 — forked from jenschelkopf/hot-cloud-swap-script.md
Cheat Sheet for the FoundationDB 'Hot Cloud Swap' Screencast

Cheat Sheet for the FoundationDB 'Hot Cloud Swap' Screencast

Initial Cluster Setup on Digital Ocean

Grab the client and server packages from the FoundationDB website

ansible -i inventory digital_ocean -a "wget https://foundationdb.com/downloads/f-nbxofdxnoxocd/I_accept_the_FoundationDB_Community_License_Agreement/key-value-store/2.0.9/foundationdb-clients_2.0.9-1_amd64.deb https://foundationdb.com/downloads/f-nbxofdxnoxocd/I_accept_the_FoundationDB_Community_License_Agreement/key-value-store/2.0.9/foundationdb-server_2.0.9-1_amd64.deb"

Install the client and server packages

@rayleyva
rayleyva / keybase.md
Created March 24, 2017 13:42
Verifying my KeyBase identity

Keybase proof

I hereby claim:

  • I am rayleyva on github.
  • I am rayleyva (https://keybase.io/rayleyva) on keybase.
  • I have a public key whose fingerprint is 7EBC C9D5 D004 73E2 4B10 F8F7 1734 6F5B F55B B0D4

To claim this, I am signing this object:

@rayleyva
rayleyva / rebuild.py
Created February 17, 2017 19:04 — forked from rgbkrk/rebuild.py
Rebuilding an arbitrary server with an SSH Key.
#!/usr/bin/env python
'''
Builds a server with no SSH key then rebuilds it with an SSH Key.
'''
import os
import getpass
import pyrax
@rayleyva
rayleyva / index.html
Created June 13, 2016 15:12 — forked from jexp/index.html
Charting Neo4j Cypher Results and Database Statistics
<!-- License MIT -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Neo4j Charts</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
@rayleyva
rayleyva / conda.fish
Created June 10, 2016 15:12 — forked from jiffyclub/conda.fish
Activate and deactivate commands for working with conda environments in the fish shell. Currently assumes you are switching to a named environment, not specifying a directory.
function condalist -d 'List conda environments.'
for dir in (ls $HOME/miniconda3/envs)
echo $dir
end
end
function condactivate -d 'Activate a conda environment' -a cenv
if test -z $cenv
echo 'Usage: condactivate <env name>'
return 1
@rayleyva
rayleyva / WebsiteWatcher.gs
Created May 3, 2016 18:12 — forked from TheAnonymous/WebsiteWatcher.gs
This is a Google Apps Script to monitor dom elements at a website if they change you will get an email.
function initSheets(sps){
var Emailsheet;
try{
Emailsheet = sps.getSheetByName("emaillist");
} catch(e){
sps.insertSheet("emaillist")
Emailsheet = sps.getSheetByName("emaillist");
Emailsheet.getRange("A1").setValue("[email protected]")
}
import os, re,asyncfile, jester, asyncdispatch, htmlgen, asyncnet, net, browsers, parseutils, strutils, parseopt2
echo "\"./upload insecure\" to share also subdirectorys"
echo "\"./upload 5000\" to serve on port 5000"
echo "\"./upload insecure 5000\" to share also subdirectorys and serve on port 5000"
var port = 8080
var insecure_world = false
var html_temp = ""
html_temp.add "<link href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css\" rel=\"stylesheet\">"