Skip to content

Instantly share code, notes, and snippets.

View ytjohn's full-sized avatar

John Hogenmiller ytjohn

View GitHub Profile
@ytjohn
ytjohn / test1.md
Created August 27, 2012 22:04
A quick markdown test, first play with gist

Exploring the Oracle Database Architecture

(video 2)

Oracle Instance : (mem structure) + (proc) that support 1 database 1 database per instance

System Global Area (SGA) : Compartment of RAM

<html>
<head>
<style>
pre {
white-space: pre-wrap; /* css-3 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5+ */
white-space: -moz-pre-wrap; !important! /* Older Versions of Mozilla */
@ytjohn
ytjohn / freerdp server compile
Created November 1, 2012 20:24
Notes on getting freerdp server working
freerdp
Also need these dependencies:
sudo apt-get install libxkbfile-dev libxv-dev libcups2-dev
Add this option to CMAKE:
-DWITH_SERVER=ON
@ytjohn
ytjohn / chefnotes.md
Created November 7, 2012 03:22
chef notes

Chef Notes

Fast Start Guide

When doing an amazon node, the hostname is set to an approximation of the IP address. You can specify your node name in client.rb.

node_name "new-name"

If you happened to have already ran chef-client, you can not rename your client but you can delete and recreate it. Do this as early as possible.

@ytjohn
ytjohn / reversehostname.py
Created November 14, 2012 20:29
quick hostname reversal
# This is very useful for sorting hostnames.
def revhost(host):
""" split a hostname into segments, reverse them, and then rejoin them """
segments = host.split('.')
segments.reverse()
reversed = ".".join(segments)
return reversed
domain = 'a.ns.example.com'
rdomain = revhost(domain)
@ytjohn
ytjohn / gist:4156690
Created November 27, 2012 20:06
ARES Service Card

This certifies that ________________________________________ is a member in good standing of the American Radio Emergency Service(r), sponsored by the American Radio Relay League, Inc. The bearer of this card, a licensed Amateur Radio Operator, is a trained emergency communicator, volunteering personal time, skill and equipment to serve in the public interest.

@ytjohn
ytjohn / gist:4539841
Last active December 11, 2015 03:39
find and terminate
#!/usr/bin/env python
import boto
import boto.ec2
import requests
from requests.auth import HTTPBasicAuth
def find_ec2_nodes(name, c):
@ytjohn
ytjohn / redmine 2.2 gitolite.md
Last active December 11, 2015 09:18
Source install of redmine2 and gitolite

From a fresh install of Ubuntu 12.04.1 precise

redmine 2.2 stable specific

# update and upgrade server
sudo apt-get update
sudo apt-get upgrade
# if kernel updates:
sudo reboot
@ytjohn
ytjohn / redmine1-4source install.md
Last active December 11, 2015 09:19
redmine 1.4 source install ubuntu precise

Never mind, this won't work.

redmine_gitolite plugin requires Redmine 2.0.0 or higher but current is 1.4.6.stable.11224

From a fresh install of Ubuntu 12.04.1 precise

redmine 1.4 stable specific

update and upgrade server

@ytjohn
ytjohn / smallcloud.md
Last active December 11, 2015 14:58
best small group/individual cloud

best small group cloud

dedicated hardware:

  1. pfsense firewall (could become virtual)
  2. iscsi server (freenas perhaps)
  3. ovirt engine device (2 for redundancy)
  4. 2+ ovirt nodes

applications on virtual machines: