Skip to content

Instantly share code, notes, and snippets.

@shannonbradshaw
shannonbradshaw / task-security.rst
Last active July 31, 2016 19:27
Task: Security
  1. Launch a MongoDB Instance
  2. Create a user that can administer users in any database in our MongoDB instance. You may use the following credentials: username: securityofficer password: doughnuts
  3. Restart the MongoDB server such that only authenticated users may connect.
  4. Connect to the MongoDB server from the mongo shell authenticating as user securityofficer
  5. Do a find() on the system.users collection.
@shannonbradshaw
shannonbradshaw / SelectionSort.java
Created October 8, 2012 19:19
SelectionSort.java for CSCI 230, Drew University
import structure5.*;
public class SelectionSort
{
public static void main(String args[])
{
ReadStream r = new ReadStream();
int n = r.readInt();
int data[] = new int[n];
int i;