This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Given the permissions for @all repos, | |
# How can I restrict W access to repo foo? | |
repo @all | |
option deny-rules = 1 | |
RWCDM = nouser | |
RWC = @branch_and_taggers | |
RW = @all | |
repo foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: base-gcc-4.2.1 | |
version: 20140624 | |
origin: local/gcc421 | |
comment: GCC 4.2.1 binaries from FreeBSD base | |
arch: freebsd:10:x86:64 | |
www: n/a | |
maintainer: drue@therub.org | |
prefix: / | |
licenselogic: single | |
licenses: [BSD] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I properly indented the code. It is very important to indent correctly | |
// because it makes the code much more readable. | |
public class Palindrome | |
{ | |
private boolean s; | |
// Why is this boolean and not string? From the assignment: "The Palindrome | |
// class should define a single String field." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Palindrome | |
{ | |
private String pal; | |
public Palindrome() | |
{ | |
pal = " "; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.io.*; | |
public class Scores | |
{ | |
private final int MAX=20; | |
private int[] scores = new int[MAX]; | |
private int inUse = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Car2 | |
{ | |
private int yearModel; // The car's year model | |
private String make; // The car's make | |
private int speed; // The car's speed | |
private String license; // The car's license | |
/** | |
* Constructor that initializes the model, make and speed of the car. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script to generate a gitolite style key directory from existing | |
# authorized_keys files. Supports multiple key files. | |
# | |
# IN: /home/*/.ssh/authorized_keys files | |
# OUT: | |
# keydir/ | |
# keydir/user1 | |
# keydir/user1/1/user.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script to generate a gitolite style key directory from existing | |
# authorized_keys files. Supports multiple key files. | |
# | |
# IN: /home/*/.ssh/authorized_keys files | |
# OUT: | |
# keydir/ | |
# keydir/user1 | |
# keydir/user1/1/user.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@repogroup1 = official/apitests | |
@repogroup1 = official/atlas | |
@repogroup1 = official/automation | |
repo @repogroup1 | |
config hooks.customhook = true | |
config hooks.customhookproject = Fun Project Label | |
config hooks.mailenabled = false | |
RWCDM = nouser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gitolite perms command appears to remove any previously set description files. To recreate, | |
# * run the gitolite test suite | |
# * add wild repos using the config below | |
# * create a wild repo | |
# * set a description | |
# * set a perm | |
# * check the description | |
# Set up environment | |
$ GITOLITE_TEST=y prove t/ssh* |
OlderNewer