Skip to content

Instantly share code, notes, and snippets.

View timsegraves's full-sized avatar

Tim Segraves timsegraves

View GitHub Profile
@timsegraves
timsegraves / nginx_deployment.yaml
Created June 4, 2023 22:40 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
/*Programmer: Austin Applegate
Date modified: 1/28/13 Description: read a file and take the contents of it and clean it up and fix the error's and then write it to a new file.
Lab Number: 1
Date Due: 2/6/13
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>

Running redis using upstart on Ubuntu

I've been trying to understand how to setup systems from the ground up on Ubuntu. I just installed redis onto the box and here's how I did it and some things to look out for.

To install:

@timsegraves
timsegraves / setup-statsd.sh
Created December 5, 2012 06:32 — forked from KyleAMathews/setup-statsd.sh
Turn an Ubuntu 12.04 Amazon EC2 Micro instance into a StatsD/Bucky/Graphite server
# Notes:
# Make sure and install ubuntu 12.04 instance instead of default amazon one.
# Root not enabled by default for ubuntu instance.
# Run sudo -i when you log in for persistent root.
# Update
sudo apt-get update
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils make
@timsegraves
timsegraves / gist:3646311
Created September 5, 2012 22:24 — forked from anonymous/gist:3645770
Austin's Convert Program
import java.util.Scanner;
public class Convert
{
public static void main(String[] args)
{
//allowing us to take input from the keyboard
Scanner keyboard = new Scanner(System.in);
//delcaring variables