Skip to content

Instantly share code, notes, and snippets.

View noahcampbell's full-sized avatar

Noah Campbell noahcampbell

View GitHub Profile
@agnivade
agnivade / commit-msg
Last active October 19, 2021 08:33
Bash file to check commit message structure
#!/bin/bash
#http://chris.beams.io/posts/git-commit/#seven-rules
cnt=0
while IFS='' read -r line || [[ -n "$line" ]]; do
cnt=$((cnt+1))
length=${#line}
if [ $cnt -eq 1 ]; then
# Checking if subject exceeds 50 characters
if [ $length -gt 50 ]; then
echo "Your subject line exceeds 50 characters."
@noahcampbell
noahcampbell / Installing Haskell and Cabal on CentOS 5.4.md
Created March 31, 2011 18:25
How to install Haskel and Cabal on CentOS 5.4 given the versions of glibc and the version of linux.

Adopted from this post

Install libedit

sudo yum install libtermcap-devel
export LIBEDIT_VERSION=0.3
curl -LOk http://jaist.dl.sourceforge.net/sourceforge/libedit/libedit-$LIBEDIT_VERSION.tar.gz
tar -zxf libedit-0.3.tar.gz
cd libedit

CFLAGS='-g -O2 -fPIC' ./configure --prefix=/usr

a = Noah::Application.create :name => 'run_deck_test_application'
(1..6000).each {|x| a.watch! :endpoint => "http://localhost:1234/#{x}" }
# This part took almost 5 minutes to run but that was okay in this case. One time setup.
a.save # This triggers the callbacks to start firing

#resources

Example Usage:

Matching Nodes

$ resources 

Returns the current localhost.

Resources

Resource Security

Assumptions

Based on the yaml format

Resources are stored within a project and can be organized within subdirectories. I.e.

@mtigas
mtigas / 0001.markdown
Last active February 15, 2018 17:04
Command-line s3 uploader that uses the MultiPart (chunked) S3 upload functionality to parallelize and speed up large file uploads.
@noahcampbell
noahcampbell / aclpolicymain.md
Created October 26, 2010 04:27
Aclpolicy File Documentation

Aclpolicy Files

Overview

With [ControlTier 3.6][1], a new mechansim for controlling access to Jobs in the CtlCenter and Modules in ctl-exec was introduced to provide additional flexibility and maintainability when securing ControlTier.

Instead of using a strict xml schema, a markup language is used so new tags can be introduced in subsequent releases while preserving backwards compatibility.

Another benefit is that multiple aclpolicy files can be stored in the same directory, helping the management of each set of rules. This reduces the complexity of each file. The default path is $CTL_BASE/etc

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.