Skip to content

Commit

Permalink
Merge branch 'main' into murmur3-impl
Browse files Browse the repository at this point in the history
  • Loading branch information
thushan authored Nov 21, 2023
2 parents f12c4de + c3bc034 commit 3d9c7be
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
Binary file added docs/artefacts/smash-v0.0.3-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions docs/vhs/demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
Output docs/artefacts/smash-v0.0.x-demo.gif

# Setup
Set FontSize 24
Set Width 1600
Set Height 900
Set FontSize 20
Set Width 1500
Set Height 1000
Set WindowBar Colorful
Set Theme "TokyoNight"
Set Theme "JetBrains Darcula"

# Version Check
Type "./smash --version"
Expand All @@ -24,7 +24,7 @@ Sleep 500ms
Enter

# smash Linux/drivers
Type "./smash /linux/drivers
Type "./smash ~/linux/drivers
Sleep 500ms
Enter
Sleep 60s
Sleep 10s
7 changes: 7 additions & 0 deletions docs/vhs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This directory contains the demo [vhs tapes](https://github.com/charmbracelet/vhs) for recording `smash`.

* [Themes](https://github.com/charmbracelet/vhs/blob/main/THEMES.md)

## Windows via Docker

```bash
Expand All @@ -13,3 +15,8 @@ $ MSYS_NO_PATHCONV=1 docker run --rm -v $PWD:/vhs ghcr.io/charmbracelet/vhs demo
```bash
$ vhs install.tape
```

### Flush buffers before demo
```bash
free && sync && echo 3 > /proc/sys/vm/drop_caches && free
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/spf13/cobra v1.8.0
github.com/thediveo/enumflag/v2 v2.0.5
golang.org/x/term v0.14.0
golang.org/x/tools v0.14.0
golang.org/x/tools v0.15.0
)

require (
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg=
golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down Expand Up @@ -145,8 +145,8 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc=
golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg=
golang.org/x/tools v0.15.0 h1:zdAyfUGbYmuVokhzVmghFl2ZJh5QhcfebBgmVPFYA+8=
golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
7 changes: 3 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ and computing a hash using [xxhash](https://xxhash.com/) or another algorithm. A
for its speed & efficiency over other attributes. You can learn more about [xxhash](https://xxhash.com/) on their site.

<p align="center">
<a href="https://asciinema.org/a/620513"><img src="docs/artefacts/smash-v0.0.2-demo.png" alt="smash demo"></a><br/>
<small>Find duplicates in the <a href="https://github.com/torvalds/linux">linux/drivers</a> source tree with
<code>smash</code>. Watch the <a href="https://asciinema.org/a/620513">🍿 full demo</a>
at <a href="https://asciinema.org/">asciinema</a>.</small>
<img src="https://vhs.charm.sh/vhs-1T6pqQivwvPAmudnDpwVQP.gif" alt="Made with VHS"><br/>
<small>Find duplicates in the <a href="https://github.com/torvalds/linux">linux/drivers</a> source tree with <code>smash</code>. Made with <a href="https://vhs.charm.sh">vhs</a> (see <a href="./docs/vhs/readme.md">our tapes</a>),

</p>

`smash` has a read-only view of the underlying filesystem and only reports duplicates - currently, we do not remove
Expand Down

0 comments on commit 3d9c7be

Please sign in to comment.