From 0cfcb454afd566a67fee97d52221550af997c46e Mon Sep 17 00:00:00 2001 From: Trevor Sullivan Date: Fri, 20 Nov 2020 09:31:55 -0700 Subject: [PATCH 1/7] =?UTF-8?q?Adding=20Dockerfile=20=F0=9F=90=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding a basic Dockerfile for running sampler. A config must still be provided. --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..48a745d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM ubuntu:focal + +ENV Sampler=/usr/local/bin/sampler + +RUN apt-get update && apt-get upgrade --yes && apt-get install libasound-dev wget --yes \ + && wget https://github.com/sqshq/sampler/releases/download/v1.1.0/sampler-1.1.0-linux-amd64 -O $Sampler \ + && chmod +x $Sampler + +ENTRYPOINT ["sampler"] From 5768742cef62f44ae71d24809dfe48b3431d5b68 Mon Sep 17 00:00:00 2001 From: Trevor Sullivan Date: Fri, 20 Nov 2020 09:39:50 -0700 Subject: [PATCH 2/7] Add Docker instructions to README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index e11f586..6513433 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,19 @@ or [Download .exe](https://github.com/sqshq/sampler/releases/download/v1.1.0/sampler-1.1.0-windows-amd64.exe) +### Docker + +``` +# Create a configuration file +vim config.yml + +# Build the container image +docker build --tag sampler . + +# Run a container +docker run --interactive --tty --volume $(pwd)/config.yml:/root/config.yml sampler --config /root/config.yml +``` + ## Usage You specify shell commands, Sampler executes them with a required rate. The output is used for visualization. From 6bb5e8884277ad61010fb6655a943133d49a2674 Mon Sep 17 00:00:00 2001 From: Alexander Lukyanchikov Date: Mon, 4 Jan 2021 13:17:44 -0800 Subject: [PATCH 3/7] Update FUNDING.yml --- .github/FUNDING.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 3060a50..ce25d9f 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1 @@ -patreon: sampler custom: ['http://sampler.dev/sponsor'] From 97a4a0ebe396a780d62f50f112a99b27044e832b Mon Sep 17 00:00:00 2001 From: Colin <486199+c00w@users.noreply.github.com> Date: Sat, 5 Feb 2022 01:51:43 -0500 Subject: [PATCH 4/7] Fix go.mod for go 1.17 Currently, if you run go mod vendor - this command rewrites the go.mod file since it doesn't fully enumerate the dependencies. This breaks some of the infrastructure which autoamtically builds this code (i.e. nixos). --- go.mod | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index fdcd5e4..a92edee 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/sqshq/sampler +go 1.17 + require ( github.com/gizak/termui/v3 v3.0.0 github.com/hajimehoshi/go-mp3 v0.1.1 @@ -9,7 +11,16 @@ require ( github.com/lunixbochs/vtclean v1.0.0 github.com/mattn/go-runewidth v0.0.4 github.com/mbndr/figlet4go v0.0.0-20190224160619-d6cef5b186ea - github.com/mitchellh/go-homedir v1.1.0 - github.com/mitchellh/go-wordwrap v1.0.0 // indirect gopkg.in/yaml.v3 v3.0.0-20190709130402-674ba3eaed22 ) + +require ( + github.com/cjbassi/drawille-go v0.0.0-20190126131713-27dc511fe6fd // indirect + github.com/gopherjs/gopherjs v0.0.0-20180628210949-0892b62f0d9f // indirect + github.com/gopherjs/gopherwasm v0.1.1 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/go-wordwrap v1.0.0 // indirect + github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d // indirect + golang.org/x/arch v0.0.0-20181203225421-5a4828bb7045 // indirect + gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 // indirect +) From f9c00d8a005e974cf26ea7ec0254eb1fc57b0853 Mon Sep 17 00:00:00 2001 From: Herby Gillot Date: Wed, 20 Apr 2022 11:16:06 -0400 Subject: [PATCH 5/7] README: add MacPorts install instructions https://ports.macports.org/port/sampler/ --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 6513433..1afb21b 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,23 @@ If there is a way to get a metric using a shell command, then it can be visualiz ## Installation ### macOS + +[HomeBrew](https://brew.sh): ```bash brew install sampler ``` + +[MacPorts](https://www.macports.org): +```bash +sudo port install sampler +``` + or ```bash sudo curl -Lo /usr/local/bin/sampler https://github.com/sqshq/sampler/releases/download/v1.1.0/sampler-1.1.0-darwin-amd64 sudo chmod +x /usr/local/bin/sampler ``` + ### Linux ```bash sudo wget https://github.com/sqshq/sampler/releases/download/v1.1.0/sampler-1.1.0-linux-amd64 -O /usr/local/bin/sampler From a3279b571cf6984db3b3a717ee14a10e9ee76565 Mon Sep 17 00:00:00 2001 From: Doug Date: Fri, 22 Apr 2022 09:11:42 +0100 Subject: [PATCH 6/7] Update Readme with info on Arch Linux installation Added link and command to run to install on Arch Linux from the AUR package repository --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6513433..c0adb90 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ sudo chmod +x /usr/local/bin/sampler Note: `libasound2-dev` system library is required to be installed for Sampler to play a [trigger](https://github.com/sqshq/sampler#triggers) sound tone. Usually the library is in place, but if not - you can install it with your favorite package manager, e.g `apt install libasound2-dev` #### Packaging status - [Fedora](https://apps.fedoraproject.org/packages/golang-github-sqshq-sampler) `sudo dnf install golang-github-sqshq-sampler` (F31+) +- [Arch](https://aur.archlinux.org/packages/sampler) `yay -S sampler` ### Windows (experimental) Recommended to use with advanced console emulators, e.g. [Cmder](https://cmder.net/) From eb121d933eb9812012f9a341fdc9265d4e5b821f Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 13 Sep 2022 09:14:39 -0500 Subject: [PATCH 7/7] Update link to Cmder website --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb471d4..0ed55f1 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Note: `libasound2-dev` system library is required to be installed for Sampler to - [Fedora](https://apps.fedoraproject.org/packages/golang-github-sqshq-sampler) `sudo dnf install golang-github-sqshq-sampler` (F31+) - [Arch](https://aur.archlinux.org/packages/sampler) `yay -S sampler` ### Windows (experimental) -Recommended to use with advanced console emulators, e.g. [Cmder](https://cmder.net/) +Recommended to use with advanced console emulators, e.g. [Cmder](https://cmder.app/) Via [Chocolatey](https://chocolatey.org/docs) ```powershell