open-index/open-npm huggingface dataset:
npm package: @suhay/evernode-cli
Description: The CLI you never asked for, nor probably need, for your Evernote Netbooks. Unless, like me, you require a distraction free environment to do any kind of planning or writing, in which case, an old Chromebook running Arch Linux. If that is you, then this i
Author: Matt Suhay
Latest version: 0.1.3

# Evernode CLI

The CLI you never asked for, nor probably need, for your Evernote Netbooks. Unless, like me, you require a distraction free environment to do any kind of planning or writing, in which case, an old Chromebook running Arch Linux. If that is you, then this is perfect.

## Setup

First you need a production API Key / Secret pair, or a production Access Token. Logging in is on you, we want no part of it. You'll need to make one with `Full Access`.

API KEY: https://dev.evernote.com/doc/  
Token: https://dev.evernote.com/get-token/  
Evernote FAQ: https://dev.evernote.com/support/faq.php

## Go

```bash
$ yarn add @suhay/evernode-cli
$ mkdir ~/notebook
$ cd ~/notebook

$ evernode          # asks for and saves your API keys
$ evernode --init   # initializes the current directory as your notebook root
```

| Flag      | Description |
| :-------- | :---------- |
| `-l, --list`  | If within the notebook `root`, it will list all locally cached notebook names. If within a `notebook`, it will list all locally cached note names. |
| `-o, --open <name>` | If within the notebook `root`, it will open the named notebook locally and create a directory for it. If within a `notebook`, it will open the named note and copy the content into the markdown file. |
| `-n, --new <name>` | If within the notebook `root`, it will create a notebook, both remotely and locally, with the given name. If within a `notebook`, it will create a note, both locally and remotely, with the given name. |
| `-s, --sync [note]` | If within the notebook `root`, it will refresh the local cache of notebook names. If within a `notebook`, it will refresh the local cache of note names. If a note's name is provided, it will sync the file contents either from Evernote or locally depending on which version is more recent. |
npm package: @suhendra/adonis-inspect
Description: Inspect AdonisJS 4.1 requests
Author: Samuel Adam Suhendra
Latest version: 1.0.3

# Adonis Inspect
Inspect requests for Adonis v4, a very lighter and minimalist version of Laravel's Telescope.

Contributions are welcomed.

# License

[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![NPM](https://badge.fury.io/js/@suhendra%2Fadonis-inspect.svg)](https://www.npmjs.com/package/@suhendra/adonis-inspect)

![image](/assets/preview-list.png)
![image](/assets/preview-show.png)

### Installation
```
npm install @suhendra/adonis-inspect
```

### Configure

Register it in `start/app.js`:

```javascript
const providers = [
  ...
  '@suhendra/adonis-inspect/providers/InspectProvider'
];
```

### Usage

Visit `<app_url>/_inspect` to view the lists of requests, e.g: `http://localhost:3333/_inspect`.

If on dev, prevent reload everytime new json file created by ignoring the used directory, e.g: `adonis serve --dev --ignore=storage`.

#### Collectors

Disable / enable collectors by config in `config/inspect.js`.

Currently supported collectors:

- Query
- Response

#### Cleaning Up

Run ace command `adonis ins
npm package: @suhendra/s3-zip
Description: Command to archive s3 files
Author: Samuel Adam Suhendra
Latest version: 1.0.1

# s3-archiver
Archive files in Amazon S3 to zip in parallel

# License

[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

### Sample Command
```
ACCESS_KEY=<s3-access-key>
SECRET_KEY=<s3-secret>
REGION=<s3-region>
MANIFEST_BUCKET=<s3-bucket>
FILE_BUCKET=<s3-bucket>
MANIFEST="$PWD/manifest.json"
PATTERNS='["requests/2021/07/31"]' 
node script.js
```

### What This Script Does

1. Download remote AWS S3's `manifest.json` file, or use local's based on env variable `USE_LOCAL_MANIFEST`
2. Download the child manifest files locally, or use local's based on env variable `USE_LOCAL_MANIFEST`
3. Iterate through all manifest files to look for matches according to the patterns in env variable `PATTERNS`
4. Iterate through patterns, then through it's matches
5. Download the matches locally then pipe it to zip file
6. Upload the zip file to S3
7. Remove the archived keys in S3, then remove the locally downloaded files

### Env Variables

| Variable | Description |
| --- | --- |
| `ACCESS_KEY` | AWS S3 access key |
| `SECRET_KEY` | AWS S3 secret key |
| `REGION` | AWS S3 region |
| `MANIFEST_BUCKET` | AWS S3 bucket of the manifest files |
| `FILE_BUCKET` | AWS S3 bucket of the files that will be archived  |
| `MANIFEST` | Manifest file name to be downloaded, or looked up locally  |
| `USE_LOCAL_MANIFEST` | If `true`, then will use local manifest file without downloading. Default to `false`  |
| `PATTERNS` | Regex patterns to match the files that will be archived, use JSON syntax, e.g `["a", "b"]`  |