Skip to content

Instantly share code, notes, and snippets.

View noahcampbell's full-sized avatar

Noah Campbell noahcampbell

View GitHub Profile
#!/usr/bin/perl
use strict;
use warnings;
my $branch = shift;
my $head = `git rev-list --date-order --max-count=1 $branch`;
my $svnrev = `git svn find-rev $head`;
my $diff = `git diff --find-copies-harder --no-prefix $branch`;
my $space = " ";
chomp $svnrev;
504 git fetch
505 git fetch upstream
506 git checkout upstream-master
507 git merge upstream-master upstream/master
508 git checkout -b gschueler-fix-unescaped-messages upstream-master
509 git pull http://github.com/gschueler/rundeck.git fix-unescaped-messages
510 git checkout upstream-master
511 git merge gschueler-fix-unescaped-messages
512 git log
513 git log --pretty=oneline
695 git fetch
696 git merge master
697 git merge origin/master
698 git checkout -b gschueler-fix-unescaped-messages master
699 git pull http://github.com/gschueler/rundeck.git fix-unescaped-messages
700 git checkout master
701 git merge gschueler-fix-unescaped-messages
702 git log
703 git help push
704 git push --dry-run origin master
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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

@noahcampbell
noahcampbell / ex1.js
Created October 26, 2010 18:02
Example Javascript of options
[ {name: 'foobar', value: 'foobar-value'},
{name: 'barbaz', value: 'barbaz-value'},
{name: 'bazfoo', value: 'bazfoo-value'}, ]
@noahcampbell
noahcampbell / cmdline.css
Created October 28, 2010 17:51
Command Line Example
.command {
width: 1024px;
height: 42px;
margin: 25px 33px;
}
.command input[type=submit] {
height: 46px;
width: 44px;
background-color: #EEE;
@noahcampbell
noahcampbell / introduction.md
Created October 31, 2010 19:03
Introduction to commandline concept.

Goal

Capture the essence of a running job via rundeck. This functionality is the beachhead for new users and power users alike. I tried to emphasize the complete sequence from going to a Rundeck instance, to typing a command and seeing output.

User Interaction Notes

Monotony

Base Directory: /Users/noahcampbell/Projects/Rundeck/rundeck/rundeckapp
Resolving dependencies...
Dependencies resolved in 1843ms.
Running script /Users/noahcampbell/Projects/ControlTier/Project/local/grails-1.2.0/scripts/InstallPlugin.groovy
Environment set to development
Reading remote plugin list ...
Reading remote plugin list ...
Plugin 'jetty' was not found in repository. If it is not stored in a configured repository you will need to install it manually. Type 'grails list-plugins' to find out what plugins are available.
failed to install jetty plugin
DIST = ../dist
.SUFFIXES: .1.gz .1
manpages: dispatch.1.gz job-v20.1.gz rd-jobs.1.gz rd-options.1.gz rd-setup.1.gz rdq.1.gz resource-v10.1.gz run.1 rundeck.1.gz
%.1.gz: %.1
gzip $<
%.1: