Skip to content

Commit

Permalink
Forgot to stage a few files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbn committed Dec 6, 2024
1 parent fef0ca4 commit fc693be
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 7 deletions.
8 changes: 8 additions & 0 deletions database/sharding_and_partitioning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Sharding and Partitioning

TODO make diagrams

## Resources and References

- [PlanetScale blobpost: "Sharding vs. partitioning: What’s the difference?"](https://planetscale.com/blog/sharding-vs-partitioning-whats-the-difference)

39 changes: 39 additions & 0 deletions git/compare_two_brances_and_get_a_list_of_files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Compare Two Branches and Get a List of Files

Comparing two branches (or even commits) might give your a lot of output, but you can tell Git to just give you a list of the files.

- `--name-only` gives your only filenames
- `--name-status` gives you filenames and status

Compare current branch with master and get filenames and statuses:

```shell
git diff --name-status master
A git/compare_two_branches_and_get_a_list_of_files.md
```

Or comparing current branch with master and get only filenames:

```shell
git diff --name-only master
git/compare_two_branches_and_get_a_list_of_files.md
```

Compare two branches and get filenames and statuses:

```shell
git diff --name-status master another_branch
A go/use_mage_build_tool.md
```

Compare two branches and get only filenames:

```shell
╰─ git diff --name-only master another_branch
go/use_mage_build_tool.md
```

## Resources and References

- [StackOverflow: "How can I see the differences between two branches?"](https://stackoverflow.com/questions/9834689/how-can-i-see-the-differences-between-two-branches)
- [StackOverflow: "Showing which files have changed between two revisions"](https://stackoverflow.com/questions/822811/showing-which-files-have-changed-between-two-revisions)
4 changes: 2 additions & 2 deletions git/compare_two_branches_and_get_a_list_of_files.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Comparing two branches (or even commits) might give your a lot of output, but yo
- `--name-only` gives your only filenames
- `--name-status` gives you filenames and status

Compare current branch with master and get filenames and statusses:
Compare current branch with master and get filenames and statuses:

```shell
git diff --name-status master
Expand All @@ -19,7 +19,7 @@ git diff --name-only master
git/compare_two_branches_and_get_a_list_of_files.md
```

Compare two branches and get filenames and statusses:
Compare two branches and get filenames and statuses:

```shell
git diff --name-status master another_branch
Expand Down
7 changes: 5 additions & 2 deletions go/use_mage_build_tool.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Use Mage Build Tool

## Resources and References
Mage is a Go build tool, an equivalent of Make for C.

TODO more to come

- https://magefile.org/howitworks/
## Resources and References

- [magefile.org website](https://magefile.org/howitworks/)
4 changes: 4 additions & 0 deletions httpie/use_httpie.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ Source used in example: http://jsonplaceholder.typicode.com/
NB: Remember to quote URLs including `&` (ampersand) in the path.

You can with luck install `httpie` via [Homebrew](http://brew.sh/) on your Mac.

Additionally I can recommend a basic cheat sheet.

- [devhints.io: httpie cheat sheet](https://devhints.io/httpie)
2 changes: 1 addition & 1 deletion php/comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Comments in PHP are different.

PHP suports:
PHP supports:

- `#`
- `//`
Expand Down
2 changes: 1 addition & 1 deletion php/sprintf.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sprintf

Like many other languages PHP has a `sprintf`, the reason for this til was that rececently I came across two sections at about 18 lines of code, that could be written as single lines using `sprintf`.
Like many other languages PHP has a `sprintf`, the reason for this til was that recently I came across two sections at about 18 lines of code, that could be written as single lines using `sprintf`.
So I dug into the PHP documentation to find out whether there was a reason not to.

## Zero-padding
Expand Down
2 changes: 1 addition & 1 deletion ubuntu/missing_signed-by_in_the_sources.list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Missing Signed-Bu in the sources.list(5)

I came accross this error on a DigitalOcean droplet running Ubuntu the other day, when running:
I came across this error on a DigitalOcean droplet running Ubuntu the other day, when running:

`sudo apt update`

Expand Down

0 comments on commit fc693be

Please sign in to comment.