Skip to content

Commit

Permalink
feat(redis-commander): add redis commander and cleanup based on guide…
Browse files Browse the repository at this point in the history
…lines
  • Loading branch information
Mr0nline committed Sep 7, 2023
1 parent 80dace6 commit a3dab30
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 21 deletions.
1 change: 1 addition & 0 deletions dashcore-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ To accomplish the same manually you would:

1. Create `~/.dashcore/dash.conf` with reasonable defaults
```ini

```

Which is essentially the same as:
Expand Down
8 changes: 4 additions & 4 deletions ffmpeg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ ffmpeg -i input.m4a output.mp3
```

Important information per https://johnvansickle.com/ffmpeg/release-readme.txt

> Notes: A limitation of statically linking `glibc` is the loss of DNS resolution. Installing `nscd` through your package manager will fix this.

*This is relevant if using ffmpeg to relay to an RTMP server via domain name.*
> Notes: A limitation of statically linking `glibc` is the loss of DNS
> resolution. Installing `nscd` through your package manager will fix this.
_This is relevant if using ffmpeg to relay to an RTMP server via domain name._

```sh
# for example, this will not work without `nscd` installed.

ffmpeg -re -stream_loop -1 -i "FooBar.m4v" -c copy -f flv rtmp://stream.example.com/foo/bar
```

17 changes: 9 additions & 8 deletions nerdfont/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,23 @@ console.log(list.join('\n -'));
Note: This will _NOT_ work in Command.exe. You must get _Windows Terminal_ from
the Microsoft Store.

You can update the font in the Windows Terminal settings either for the "Defaults" profile (which applies to all profiles unless overwritten) or individually for different profiles under `Settings -> <profile_name> -> Appearance -> Font face`:
You can update the font in the Windows Terminal settings either for the
"Defaults" profile (which applies to all profiles unless overwritten) or
individually for different profiles under
`Settings -> <profile_name> -> Appearance -> Font face`:

![Windows Terminal Settings](windows-terminal-settings-01.png 'Opening Settings in Windows Terminal')
![Windows Terminal Settings](windows-terminal-settings-02.png 'Setting Nerd Font in Windows Terminal Defaults profile')
(Screenshots taken with Windows Terminal version 1.16.10262.0)

Additionally, you can update `profiles.defaults.font.face` in the Windows Terminal settings.json directly:
Additionally, you can update `profiles.defaults.font.face` in the Windows
Terminal settings.json directly:

```json
{
"profiles":
{
"defaults":
{
"font":
{
"profiles": {
"defaults": {
"font": {
"face": "DroidSansMono NF"
}
}
Expand Down
48 changes: 48 additions & 0 deletions redis-commander/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: Redis Commander
homepage: https://joeferner.github.io/redis-commander/
tagline: |
Redis-Commander is a node.js web application used to view, edit, and manage a Redis Database.
---

To update or switch versions, run `npm install -g redis-commander@latest`.

### Files

These are the files / directories that are created and/or modified with this
install:

```text
~/.config/envman/PATH.env
~/.local/opt/node/bin/redis-commander
```

If [`node`](/node) is not found, it will also be installed.

## Cheat Sheet

> Web-UI to display and edit data within multiple different Redis servers. It
> has support for the following data types to view, add, update and delete data:
- Strings
- Lists
- Sets
- Sorted Set
- Streams (Basic support based on HFXBus project from
https://github.com/exocet-engineering/hfx-bus, only view/add/delete data)
- ReJSON documents (Basic support, only for viewing values of ReJSON type keys)

List available commands:

```sh
redis-commander --help
```

Start redis commander with default settings:

```sh
redis-commander
```

This will open up web app at `http://127.0.0.1:8081` and will be connected to
local redis server at default port!
13 changes: 13 additions & 0 deletions redis-commander/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
set -e
set -u

__init_redis_commander() {
if [ -z "$(npm --version 2> /dev/null)" ]; then
"$HOME/.local/bin/webi" node
export PATH="$HOME/.local/opt/node/bin:$PATH"
fi
npm install -g redis-commander@latest
}

__init_redis_commander
15 changes: 7 additions & 8 deletions sttr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ To update or switch versions, run `webi sttr@stable` (or `@v0.2.16` etc).

> `sttr` makes it easy to perform various operations on string.

## Basic Usage

* After installation simply run `sttr` command.
- After installation simply run `sttr` command.

```sh
// For interactive menu
Expand All @@ -25,7 +24,7 @@ sttr
// Can also press UP-Down arrows select various operations.
```
* Working with help.
- Working with help.
```sh
sttr -h
Expand All @@ -35,7 +34,7 @@ sttr zeropad -h
sttr md5 -h
```
* Working with files input.
- Working with files input.
```sh
sttr {command-name} {filename}
Expand All @@ -45,22 +44,22 @@ sttr md5 file.txt
sttr md-html Readme.md
```
* Writing output to file.
- Writing output to file.
```sh
sttr yaml-json file.yaml > file-output.json
```
* Taking input from other command.
- Taking input from other command.
```sh
curl https: //jsonplaceholder.typicode.com/users | sttr json-yaml
```
* Chaining the different processor.
- Chaining the different processor.
```sh
sttr md5 hello | sttr base64-encode

echo "Hello World" | sttr base64-encode | sttr md5
```
```
1 change: 0 additions & 1 deletion zig/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = function (request) {

// Ex: aarch64-macos => ['aarch64', 'macos']
let parts = platform.split('-');
let arch = parts[0];
let os = parts[1];
if (parts.length > 2) {
console.warn(
Expand Down

0 comments on commit a3dab30

Please sign in to comment.