Skip to content

Instantly share code, notes, and snippets.

@jshawl
Forked from RobertAKARobin/warmupw01d02.md
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save jshawl/d249d3d1ff63ca574015 to your computer and use it in GitHub Desktop.

Select an option

Save jshawl/d249d3d1ff63ca574015 to your computer and use it in GitHub Desktop.

Revisions

  1. @RobertAKARobin RobertAKARobin revised this gist Mar 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion warmupw01d02.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ As the Impossible Missions Force's Senior Developer, you are needed to put a she
    - Delete the `NO_NUCLEAR_LAUNCH_SEQUENCES_HERE` directory and its contents
    - Create a new directory called `DR_NEFARIOUS_NEW_LAUNCH_SEQUENCE`, containing a file called `superDuperLaunchSequence.sh` that, when executed, reads aloud the following message (in a voice of your choice):

    `Doctor Nefarious: Ha ha. - Sincerely, Mot Esiurc`
    `Doctor Nefarious: Ha ha. Sincerely, Mot Esiurc`

    ## To submit:

  2. @RobertAKARobin RobertAKARobin revised this gist Mar 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion warmupw01d02.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ As the Impossible Missions Force's Senior Developer, you are needed to put a she
    - Delete the `NO_NUCLEAR_LAUNCH_SEQUENCES_HERE` directory and its contents
    - Create a new directory called `DR_NEFARIOUS_NEW_LAUNCH_SEQUENCE`, containing a file called `superDuperLaunchSequence.sh` that, when executed, reads aloud the following message (in a voice of your choice):

    > "Doctor Nefarious: Ha ha. - Sincerely, Mot Esiurc"
    `Doctor Nefarious: Ha ha. - Sincerely, Mot Esiurc`

    ## To submit:

  3. @RobertAKARobin RobertAKARobin revised this gist Mar 17, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion warmupw01d02.md
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,10 @@ As the Impossible Missions Force's Senior Developer, you are needed to put a she
    - In the nuclear codes file's old location, create a **new** file called `totallyNotNuclearCodes.txt` that contains the code `8675309`
    - Copy the cat photo to the flash drive. (We might need to capture the cat for ransom.)
    - Delete the `NO_NUCLEAR_LAUNCH_SEQUENCES_HERE` directory and its contents
    - Create a new directory called `DR_NEFARIOUS_NEW_LAUNCH_SEQUENCE`, containing a file called superDuperLaunchSequence.sh that when executed reads aloud the following message (in a voice of your choice):
    - Create a new directory called `DR_NEFARIOUS_NEW_LAUNCH_SEQUENCE`, containing a file called `superDuperLaunchSequence.sh` that, when executed, reads aloud the following message (in a voice of your choice):

    > "Doctor Nefarious: Ha ha. - Sincerely, Mot Esiurc"
    ## To submit:

    Create a new public gist at https://gist.github.com, and link to it in a comment on this page.
  4. @RobertAKARobin RobertAKARobin created this gist Mar 17, 2015.
    27 changes: 27 additions & 0 deletions warmupw01d02.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    # Mission: Impossible!

    We, the Impossible Missions Force, have become aware that Doctor Nefarious is planning on using his Nefarious Computer (a standard Macbook) to initiate a nuclear launch sequence that will destroy the entire world.

    Our sources have told us that the nuclear launch sequence is run from a shell script, and have also given us a tree showing the contents of the Doctor's computer (the flash drive has been added to show where in the structure it will appear):

    NO_NUCLEAR_LAUNCH_SEQUENCES_HERE/
    nopeNotALaunchSequence.sh
    TOP_SECRET/
    SERIOUSLY_TOP_SECRET/
    YOU_PROBABLY_SHOULDNT_BE_IN_HERE/
    totallyNotNuclearCodes.txt
    CAT_PHOTOS/
    nefariousMisterMittens.jpg
    FLASH_DRIVE/

    We're deploying Agent Tom to break into the Doctor's Evil Secret Lab to sneakily disarm the Nefarious Computer. Unfortunately, Agent Tom isn't the brightest crayon in the box, and doesn't know much about computers.

    As the Impossible Missions Force's Senior Developer, you are needed to put a shell script called `tomRunThis.sh` on Agent Tom's flash drive that will do the following:

    1. Move the nuclear codes file to the flash drive
    - In the nuclear codes file's old location, create a **new** file called `totallyNotNuclearCodes.txt` that contains the code `8675309`
    - Copy the cat photo to the flash drive. (We might need to capture the cat for ransom.)
    - Delete the `NO_NUCLEAR_LAUNCH_SEQUENCES_HERE` directory and its contents
    - Create a new directory called `DR_NEFARIOUS_NEW_LAUNCH_SEQUENCE`, containing a file called superDuperLaunchSequence.sh that when executed reads aloud the following message (in a voice of your choice):

    > "Doctor Nefarious: Ha ha. - Sincerely, Mot Esiurc"