Skip to content

Instantly share code, notes, and snippets.

View okoye's full-sized avatar
🇳🇬
I may be slow to respond.

Chuka Okoye okoye

🇳🇬
I may be slow to respond.
View GitHub Profile
@okoye
okoye / authenticate.py
Created September 18, 2013 04:54
sample jira python oauthentication demostration. showing two ways to access the jira api using python 2.6 (dance0) and python 2.7 (dance1)
'''
sample code to demonstrate using JIRA's oauth API
'''
from rauth.session import OAuth1Session
from rauth.oauth import RsaSha1Signature
from Crypto.PublicKey import RSA
from Crypto.Hash import MD5
from Crypto import Random
from jira.client import JIRA
@okoye
okoye / configuration.txt
Created September 18, 2013 04:52
jira python oauth configuration
access_token=LaOkR40QmYiYoS1eF2GwDPk64c6ONkFM
access_token_secret=T1cfl2tPfoy7oU1whloQUgELcIsTyMlm
consumer_key=hardcoded-consumer
consumer_secret=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxZDzGUGk6rElyPm0iOua0lWg84nOlhQN1gmTFTIu5WFyQFHZF6OA4HX7xATttQZ6N21yKMakuNdRvEudyN/coUqe89r3Ae+rkEIn4tCxGpJWX205xVF3Cgsn8ICj6dLUFQPiWXouoZ7HG0sPKhCLXXOvUXmekivtyx4bxVFD9Zy4SQ7IHTx0V0pZYGc6r1gF0LqRmGVQDaQSbivigH4mlVwoAO9Tfccf+V00hYuSvntU+B1ZygMw2rAFLezJmnftTxPuehqWu9xS5NVsPsWgBL7LOi3oY8lhzOYjbMKDWM6zUtpOmWJA52cVJW6zwxCxE28/592IARxlJcq14tjwYwIDAQAB
url=https://ecomjira.wsgc.com/rest/api/2/application-properties
@okoye
okoye / base.rb
Created November 6, 2012 06:59 — forked from apsoto/base.rb
a sample base chef role
name "base"
description "Baseline configuration for all systems."
run_list(
"recipe[ohai]",
"recipe[chef-client::delete_validation]",
"recipe[chef-client]",
"recipe[zsh]",
"recipe[git]",
"recipe[users]",
@okoye
okoye / knife.rb
Created October 31, 2012 07:19 — forked from jtimberman/knife.rb
Commented knife.rb for all the things
# Knife Configuration File.
#
# This is a Ruby DSL to set configuration parameters for Knife's
# general options. The default location for this file is
# ~/.chef/knife.rb. If multiple Chef repositories are used,
# per-repository configuration files can be created. A per repository
# configuration file must be .chef/knife.rb in the base directory of
# the Chef repository. For example,
#
# ~/Development/chef-repo/.chef/knife.rb
@okoye
okoye / foo
Created February 6, 2011 05:24
source ~/projects/virtualenv/python26/bin/activate
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class TrieStructureTest
import java.util.ArrayList;
/**
* @author Chuka Okoye
*
*/
public class TrieNode
{
import java.util.ArrayList;
/**
* @author Chuka Okoye
*
*/
public class TrieStructure
{
@okoye
okoye / log
Created February 7, 2010 00:06
[root@develop binaries]# ./haoscar_configure -m primary
========================================
== HAOSCAR Installation Wizard Running
========================================
========================================
== System Sanity Checks
========================================
--> checking to make sure system environment is sane
--> yup, system is sane
--> sanity check completed, proceeding to next step
#! /usr/bin/env python
#A sample module used to test the functionality of the gathering system
import os
def open():
values = dict()
values["COMPONENT"] = "MySQL"
values["NAME"] = "Database_Monitor_Test"