Skip to content

Instantly share code, notes, and snippets.

View gbolo's full-sized avatar

George Bolo gbolo

View GitHub Profile
@gbolo
gbolo / README.md
Created April 13, 2022 13:09
Small API Server Challenge

Summary

You have been tasked with creating a simple REST API server to help with a monitoring effort. The main purpose of the server is to return information about a website's performance. Details of the three endpoints that this server should have are below.

NOTE you may use any programming language of your choice

Endpoints

@gbolo
gbolo / go_version_switcher.sh
Last active November 6, 2019 16:01
go_version_switcher.sh
#!/usr/bin/env bash
#
# Go Version Switcher/Downloader
# THIS SCRIPT SHOULD BE SOURCED UNLESS YOU WANT TO KEEP A STATIC GOROOT OF: /opt/goroot/go
# example usage: source ./go_version_switcher.sh 1.11.5
#
# Some defaults
GO_ROOT_PATH=/opt/goroot
@gbolo
gbolo / Dockerfile
Last active March 13, 2017 23:54
tinyapi dockerfile from scratch
# Building A Tiny but Functional Docker Container
FROM scratch
LABEL maintainer "George Bolo <gbolo@linuxctl.com>"
# Install Application - github.com/gbolo/go-tinyapi
ENV TINYAPI_CFG_PATH /etc/tinyapi
ADD tinyapi /bin/tinyapi
ADD config.yml ${TINYAPI_CFG_PATH}/config.yml
# This application requires CA bundle for outbound HTTPS calls
@gbolo
gbolo / x509-cert-sig-verify.sh
Created February 14, 2017 02:32
Verification of Signatures on x.509 Certificates
#!/bin/bash
#############################################################
## x.509 Certifcate Signature Verification
## This script was made for educational purposes.
## VERIFICATION MAY BE WRONG, USE AT YOUR OWN RISK!
## - gbolo linuxctl.com 2016
#############################################################
VERSION=0.2
DATE=`date +%Y-%m-%d.%H-%M-%S`