Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull request Della #2721

Open
wants to merge 25 commits into
base: license
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8838407
Murder -> Murders
Jun 20, 2016
9cdf060
Add TravisCI integration
Jun 20, 2016
fb7e6d9
Adds instructions to step9 to avoid extra spaces
Sep 20, 2016
7008ea6
Merge pull request #259 from makersacademy/final-step-instructions
Sep 20, 2016
11c5ccf
Update README.md
anitacanita Dec 12, 2016
8cfad87
Update step9
soph-g Aug 13, 2018
86564f9
Update step9
soph-g Aug 13, 2018
0346a48
Update getting_started.md
dbugsy Oct 8, 2018
c13cf10
Update getting_started.md
dbugsy Oct 8, 2018
4a1da39
adds more detailed instructions on PRs
Feb 22, 2019
97ac4b9
Merge pull request #1323 from makersacademy/precourse-refresh
soph-g Mar 4, 2019
1ccf877
Correct typo/broken url
ruthmoog May 6, 2019
d656e58
Merge pull request #1420 from ruthmoog/edit_typo
May 8, 2019
1ab13e7
Added reference to Teachable
tommyoswinwilliams Mar 24, 2021
c45a3ec
Removed outdated material, linked to Teachable.
tommyoswinwilliams Mar 24, 2021
c84fd6e
Style update
tommyoswinwilliams Mar 24, 2021
d08f530
Added suggesting opening two Terminals
tommyoswinwilliams Mar 24, 2021
9a04e7e
Added head
tommyoswinwilliams Mar 24, 2021
e2c0952
Updated clue
tommyoswinwilliams Mar 24, 2021
9c1034c
Removed head
tommyoswinwilliams Mar 24, 2021
0cc271e
Remove confusion of line finding in step3
tommyoswinwilliams Mar 24, 2021
a33099f
Delete hint2
tommyoswinwilliams Mar 24, 2021
284a673
Updated master to main and Vim link, added merge.
tommyoswinwilliams Mar 24, 2021
fc2b9eb
Updated PR GitHub guide and typos
tommyoswinwilliams Mar 24, 2021
7e1dadb
we don't use teachable anymore
EdwardAndress Apr 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
script:
- find ./ -name "jail.txt" | xargs less | $(command -v md5 || command -v md5sum) | grep -qif /dev/stdin encoded
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The Command Line Murders
The Command Line Murder
========================

.OOOOOOOOOOOOOOO @@ @@ OOOOOOOOOOOOOOOO.
Expand Down Expand Up @@ -27,7 +27,7 @@ The Command Line Murders

There's been a murder in Terminal City, and TCPD needs your help.

Before you start, skim through the required materials in [Command Line chapter](https://github.com/makersacademy/pre_course/blob/master/command_line.md) and [Version Control Chapter](https://github.com/makersacademy/pre_course/blob/master/version_control.md). Use it as a reference while working through the case.
Before you start, skim through the required materials in the Command Line and Version Control sections of the PreCourse on Teachable. Use it as a reference while working through the case.

Now with your Terminal at hand you're ready to start. A couple of ground rules first:

Expand All @@ -46,11 +46,8 @@ Next you need to download those files to your machine so that you can edit them.

## Step 2: Investigate

Each step of your investigation will contain a reference to the **Detective Handbook** at the top. Each page of the Detective Handbook contains the description of the commands you will need to complete that particular step. You can view them in the Terminal:
Each step of your investigation will contain a reference to the **Detective Handbook** at the top. Each page of the Detective Handbook contains the description of the commands you will need to complete that particular step.

```bash
Reference: ./detective_handbook/getting_started.md
```
Open a Terminal, go to the location of the files (using the `cd` command), and start by reading the file 'step0'.

One way you can do this is with following command:
Expand Down
2 changes: 1 addition & 1 deletion detective_handbook/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Before we dive into using the command line, it's important to discuss the distinction between using a UNIX-based computer (Mac, any Linux including Ubuntu, etc.) or a PC running Windows. In these lessons, we're assuming you're using a Mac as it's the most common platform among web developers. With the technologies we cover at Makers – a Mac is the tool of choice. If absolutely required, you can use Ubuntu, but you may encounter minor problems along the way that we won't usually cover at Makers. This does not imply that Mac is somehow superior to Linux when it comes to web development. It is simply different, so the instructions provided for a Mac may not always work on a different system.

If you don't have access to either a Mac or Linux machine you may find it easier to work with a cloud hosted solution such as [Nitrous](https://www.nitrous.io/). This might run a little slower, but the Nitrous terminal is a good substitute and can be used from PCs and even Chromebooks.
If you don't have access to either a Mac or Linux machine you may find it easier to work with a cloud hosted solution such as [C9](https://aws.amazon.com/cloud9/?origin=c9io). This might run a little slower, but the C9 terminal is a good substitute and can be used from PCs and even Chromebooks.

## What is the command line?

Expand Down
649 changes: 2 additions & 647 deletions detective_handbook/git.md

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions detective_handbook/step5.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# `git branch`

Branches in Git allow you to work on several different versions of your working directory at the same time. When you create a new branch and start tracking your changes they'll be saved only in this new branch. At any moment you can switch back to your original (e.g. "master") branch and all your files will be in the same state you left them before "branching out" regardless of the work you've done in the new branch.
Branches in Git allow you to work on several different versions of your working directory at the same time. When you create a new branch and start tracking your changes they'll be saved only in this new branch. At any moment you can switch back to your original (e.g. "main") branch and all your files will be in the same state you left them before "branching out" regardless of the work you've done in the new branch.

The `git branch` command allows you to see branches you have locally. To see all branches including remote ones type `git branch -a`.
The `git branch` command allows you to see which branches you have locally. To see all branches including remote ones type `git branch -a`.

# `git checkout`

Use `git checkout BRANCH_NAME` to switch "active" or "current" branch. You can checkout to a new branch even if it's stored in the remote repository. When you do this the branch will be copied to your machine and will be set as "current" branch.
Use `git checkout BRANCH_NAME` to switch "active" or "current" branch. You can checkout to a new branch even if it's stored in the remote repository. When you do this, the branch will be copied to your machine and will be set as "current" branch.

# `git merge`

`git merge` allows you to merge two branches together. E.g. if your current branch is "main" and you type `git merge more-cats` all the changes in the `more-cats` branch will be applied to the "main" branch and a new commit (merge commit) will be created.

`git merge` will open your default command line text editor for you to confirm the merge commit message. Your default editor is likley to be Vim (you can check it by typing `echo $EDITOR`) see the PreCourse [section on Vim](https://makersacademy.teachable.com/courses/256825/lectures/3989204).
6 changes: 3 additions & 3 deletions detective_handbook/step6.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Use `man grep` to learn more about `grep` flags.

# Making a pull request on Github
# Making a pull request on GitHub

You forked a repo, cloned it to your computer, made some changes committed and pushed them back to Github. Now if you want to submit those changes back to the original repo you would need to make a Pull Request. The maintainers of the original repo can review your changes and decide if they want to merge them.
You forked a repo, cloned it to your computer, made some changes committed and pushed them back to GitHub. Now if you want to submit those changes back to the original repo you would need to make a pull request (PR). The maintainers of the original repo can review your changes and decide if they want to merge them.

Refer to the [Github guide](https://help.github.com/articles/creating-a-pull-request/) to learn how to make a pull request.
Refer to the [GitHub guide](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) to learn how to make a pull request.
1 change: 0 additions & 1 deletion hint2

This file was deleted.

2 changes: 1 addition & 1 deletion step0
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ Reference: ./detective_handbook/step0.md

There's been a murder in Terminal City, and TCPD needs your help.

All the materials needed to figure out who did it are in the 'mystery' subdirectory. Using the commands from the Detective Handbook take a look around to see what files are in the 'mystery' subdirectory.
All the materials needed to figure out who did it are in the 'mystery' subdirectory. Perhaps consider opening another Terminal window (Cmd + N) to keep the various step instructions in one and navigating around and your commands in the other. Using the commands from the Detective Handbook take a look around to see what files are in the 'mystery' subdirectory.

Once you answered the questions above, read the 'step1' file via your terminal to start collecting the clues.
8 changes: 3 additions & 5 deletions step3
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ You found 4 matches for the name 'Annabel'. Only 2 of them are women so you can

############ Challenge ###############

See if you can find files matching street names for two remaining women named 'Annabel'. Use the combinations of commands from the Detective Handbook (section step3) to do this.
See if you can find files matching street names for the two remaining women named 'Annabel'. Use the combinations of commands from the Detective Handbook (section step3) to do this.

######################################


Take a look inside the files you've found. REMEMBER: among the information available in 'possible_witnesses.txt', you have references to line numbers. See if you can use that line number to discover something useful about the lady called 'Annabel'.
Take a look inside the files you've found, they're big files, aren't they. REMEMBER: among the information available in 'possible_witnesses.txt', you have references to line numbers.

If you get stuck check out hint2.

Move on to step4.
Move on to step4 to find the line we're looking for.
4 changes: 3 additions & 1 deletion step6
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Now you need to search for multiple keywords in one file. How can you combine `g

Save the list of suspects into a new file called 'suspects.txt', commit and push to Github.

You're very happy with the progress of your investigation - you feel like you are close to identifying the culprit. Make a pull request to the original 'clmystery' repository to report your progress to The Chief.
Make a pull request to the original 'makersacademy/clmystery' repository to report your progress to The Chief. Find out more about opening a pull request here: https://help.github.com/en/articles/creating-a-pull-request-from-a-fork

You're very happy with the progress of your investigation - you feel like you are close to identifying the culprit.

Move on to step 7.
2 changes: 2 additions & 0 deletions step9
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ To close the investigation and let the courts do their work, save his name in a

Change permissions on the file so that you are the only one able to edit it (everyone else can read the contents). There was a case last summer where a convict was switched out for an innocent man on the way to jail - and we don't want that happening again!

Make sure that 'jail.txt' contains only the name of the convict with no extra spaces! Don't copy-and-paste the name, type it in manually. This way our jailkeeper robot can check if you've caught the right guy.

Add & commit 'jail.txt' and push to Github. You can now relax and wait for that promotion, Detective!


Expand Down