Skip to content

Instantly share code, notes, and snippets.

View hunter32292's full-sized avatar
🐕
Wishing I had my own dog

John Stupka hunter32292

🐕
Wishing I had my own dog
View GitHub Profile
package main
import (
"bytes"
"encoding/json"
"image/png"
"log"
"net/http"
"strconv"
package main
import (
"log"
"net/http"
)
const (
// Username - Global Username for testing
Username = "John"
@hunter32292
hunter32292 / go-rpc-hello-world.go
Created February 3, 2021 17:11
Example of RPC with golang
package main
import (
"errors"
"log"
"net"
"net/rpc"
"strconv"
"sync"
"time"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hunter32292
hunter32292 / ubuntu.yaml
Last active September 16, 2020 21:07
Sample Ubuntu Deploy for checking on things internally in cluster
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: ubuntu-deployment
spec:
selector:
matchLabels:
app: ubuntu
replicas: 1
template:
package main
import (
"flag"
"log"
"math/rand"
"net/http"
"time"
"github.com/gorilla/mux"
@hunter32292
hunter32292 / Dockerfile
Last active June 22, 2019 21:34
Old ruby 1.9.3 docker image for winterberg
FROM ruby:1.9.3-p551
RUN mkdir /myapp
WORKDIR /myapp
COPY Gemfile /myapp/Gemfile
COPY Gemfile.lock /myapp/Gemfile.lock
RUN bundle install