Skip to content

Instantly share code, notes, and snippets.

View nshenry03's full-sized avatar

Nicholas Henry nshenry03

View GitHub Profile
@nshenry03
nshenry03 / exampleOrder.json
Created July 17, 2014 18:02
Example SoftLayer API order
{
"parameters": [
{
"packageId": 46,
"prices": [
{
"id": 1640,
"complexType": "SoftLayer_Product_Item_Price"
},
{
@nshenry03
nshenry03 / configuration.yml.diff
Created July 16, 2014 14:47
Changes needed to get Redmine to use Postfix on a server... Simply copy config/configuration.yml.example to config/configuration.yml, make the following changes, and then restart your web server.
--- config/configuration.yml.example 2014-07-16 14:36:32.000000000 +0000
+++ config/configuration.yml 2014-07-16 14:41:36.000000000 +0000
@@ -81,15 +81,17 @@
# default configuration options for all environments
default:
# Outgoing emails configuration (see examples above)
+ # email_delivery:
+ # delivery_method: :smtp
+ # smtp_settings:
+ # address: smtp.example.net
@nshenry03
nshenry03 / mines.pl
Created April 17, 2014 14:18
The code for the 'mines.pl' t-shirt was 'designed' by one of CSM's many awesome teachers, Mike Colagrosso.
#!/usr/bin/perl -w
use strict;
 
  my$song="helluva";                                my$drink="whisky";
  my$g="Golden";my$csm                            ="Tech";my$w="wreck"
  ;my$demeanor="honest";                        my$conscience="clear";
  my$a="rambling";my$enemy                     ="engineer,";my$f="ll";
       my$sp=chr(32);my$line                 ="A";for(1..4){$line
       .=$sp.$song.","}$line.=             $sp.$song.$sp.$enemy;;
       for(1..2){print$line,"\n"         ;}$enemy=~tr/,/\./;print
[
Detailed description of the problem. If this format doesn't make sense
(for example, for a defect based on a logged/emailed error/warning
instead of witnessed behavior) just something like "We received the
following error X times. Can something be fixed so we don't get these?"
before just pasting the text of the error email.
]
h2. Steps To Reproduce
# Step One
#!/bin/bash -
#===============================================================================
#
# FILE: mysql2sqlite.sh
#
# USAGE: ./mysql2sqlite.sh [options] [db_name [tbl_name ...]] | \
# sqlite3 database.db
#
# EXAMPLE: ./mysql2sqlite.sh --no-data -u root -pMySecretPassWord \
# myDbase | sqlite3 database.db
@nshenry03
nshenry03 / Thorfile
Last active December 30, 2015 02:09 — forked from jtimberman/Thorfile
# encoding: utf-8
require 'bundler'
require 'bundler/setup'
require 'thor/foodcritic'
require 'berkshelf/thor'
begin
require 'kitchen/thor_tasks'
Kitchen::ThorTasks.new
@nshenry03
nshenry03 / jcagent.log
Created October 30, 2013 23:35
jcagent doesn't start initially... It does start after restarting manually via init script...
2013-10-30T20:01:03.860Z - info: Connecting to agent.jumpcloud.com:443
2013-10-30T20:01:04.756Z - info: disconnected from agent.jumpcloud.com:443
2013-10-30T20:01:04.758Z - info: Connecting to agent.jumpcloud.com:443
2013-10-30T20:01:05.346Z - info: Starting SecurityAgent
2013-10-30T20:01:05.346Z - info: Loading os plugin: agent-ubuntu
2013-10-30T20:01:05.373Z - info: SecurityAgent started
2013-10-30T20:01:05.374Z - info: Starting User Mgmt
2013-10-30T20:01:05.574Z - info: Heartbeat response received: [{"cmd":"check_patches"}]
2013-10-30T20:01:05.609Z - info: Starting UserMgmt services
2013-10-30T20:01:05.609Z - info: LDAP server already stopped
name 'multipleRecipeRoleExample'
description 'Example multiple recipe role'
run_list 'role[base]',
'recipe[mysql::server]',
'recipe[java]',
'recipe[ant]',
'recipe[jboss]',
'recipe[jboss::mysql]'
default_attributes(
'java' => {
colordiff -rqw cf-wordpress/htdocs cf-ex-worpress/htdocs
colordiff -w cf-wordpress/htdocs/wp-config-sample.php cf-ex-worpress/htdocs/wp-config.php