️ refactor: co-locate images (#200)

This commit is contained in:
Óscar Fernández
2023-10-07 23:27:55 +02:00
committed by GitHub
parent c0a07cb467
commit 8aabeaecc3
173 changed files with 205 additions and 205 deletions

View File

@@ -0,0 +1,82 @@
+++
title = "nani"
description = "Script Bash per crear URLs públiques a partir d'arxius o text en servidors remots."
weight = 3
[extra]
local_image = "projects/nani/nani.webp"
canonical_url = "https://osc.garden/ca/projects/tabi/"
social_media_card = "social_cards/ca_projects_nani.jpg"
+++
Si treballes en un servidor remot, saps que compartir arxius amb altres persones pot ser un procés feixuc. `nani` és un script en Bash dissenyat per simplificar aquesta tasca. Amb una sola comanda, pots convertir arxius locals o URLs en enllaços accessibles, facilitant el procés de compartir directament des del teu servidor.
#### [Veure a GitHub](https://github.com/welpo/nani) {.centered-text}
## Característiques clau
- **Tot tipus d'arxius**: gestiona directoris, arxius FLAC, arxius de text i fins i tot URLs a vídeos.
- **Personalitzable**: adapta els ajustos editant l'script o un arxiu de configuració.
- **Notificacions**: notificacions a l'escriptori i integració amb el portaretrats per a una millor experiència.
## Inici ràpid
1. Col·loca `nani` en un directori dins del teu PATH.
2. Fes que l'script sigui executable.
Per a passos d'instal·lació més detallats, [consulta la documentació completa](https://github.com/welpo/nani#install).
## Ús
```bash
nani Ruta/A/foto.png
https://example.com/nani/hjRGLZB.png
```
Compartir un directori mantenint el seu nom original:
```bash
nani -o Ruta/A/Directori
https://example.com/nani/Directori.zip
```
Pots configurar diverses opcions a través dels paràmetres. Aquí tens la sortida de `nani --help`:
{% wide_container() %}
```
Usage: nani [options] <infile>
Provides public URL from input.
Input handling:
Directory Will be stored using zip (or symbolic link)
FLAC Can be transcoded to MP3
Text (html, php...) Extension can be set to .txt
Other files New copy/hard link/symbolic link at output directory
URL to video (e.g: youtube) Downloaded using yt-dlp
Other URLs Downloaded using wget
Modify the first lines of the script to change how nani behaves: quiet mode,
enabling/disabling transcoding, length of the string, extension truncation...
Settings and options:
-a, --alias Revert the hard link setting
-c, --cleanup Remove all files on /nani/ except index.html
-h, --help Display this help and exit
-i, --insert Open nano to enter text. Saved in output directory as .txt
-k, --keep Output dir becomes /nani/k/, to set different cleanup rules
-l, --list List files in output directory /nani/
-n, --name Use custom name (e.g. nani -n DesiredName <file>)
-N, --notify Revert the notify option
-o, --original Preserve original file name
-p, --push Send push notification
-q, --quiet Revert the quiet setting
-s, --string Force a certain string length (e.g. nani -s 32 <file>)
-t, --transcode Revert the transcode setting
-x, --xclip Revert the xclip setting
-y, --symbolic Create a symbolic link for files and directories
```
{% end %}

View File

@@ -0,0 +1,81 @@
+++
title = "nani"
description = "Script Bash para crear URLs públicas a partir de archivos o texto en servidores remotos."
weight = 3
[extra]
local_image = "projects/nani/nani.webp"
canonical_url = "https://osc.garden/es/projects/tabi/"
social_media_card = "social_cards/es_projects_nani.jpg"
+++
Si trabajas en un servidor remoto, sabrás que compartir archivos con otras personas puede ser un proceso tedioso. `nani` es un script en Bash diseñado para simplificar esta tarea. Con un solo comando, puedes convertir archivos locales en enlaces públicos, facilitando el proceso de compartir directamente desde tu servidor.
#### [Ver en GitHub](https://github.com/welpo/nani) {.centered-text}
## Características clave
- **Todo tipo de archivos**: maneja directorios, archivos FLAC, archivos de texto e incluso URLs a vídeos.
- **Personalizable**: adapta los ajustes editando el script o un archivo de configuración.
- **Notificaciones**: notificaciones en el escritorio e integración con el portapapeles para una mejor experiencia.
## Inicio rápido
1. Coloca `nani` en un directorio dentro de tu PATH.
2. Haz el script ejecutable.
Para pasos de instalación más detallados, [consulta la documentación completa](https://github.com/welpo/nani#install).
## Uso
```bash
nani Ruta/A/foto.png
https://example.com/nani/hjRGLZB.png
```
Compartir un directorio manteniendo su nombre original:
```bash
nani -o Ruta/A/Directorio
https://example.com/nani/Directorio.zip
```
Puedes configurar varias opciones a través de los parámetros. Aquí tienes la salida de `nani` --help:
{% wide_container() %}
```
Usage: nani [options] <infile>
Provides public URL from input.
Input handling:
Directory Will be stored using zip (or symbolic link)
FLAC Can be transcoded to MP3
Text (html, php...) Extension can be set to .txt
Other files New copy/hard link/symbolic link at output directory
URL to video (e.g: youtube) Downloaded using yt-dlp
Other URLs Downloaded using wget
Modify the first lines of the script to change how nani behaves: quiet mode,
enabling/disabling transcoding, length of the string, extension truncation...
Settings and options:
-a, --alias Revert the hard link setting
-c, --cleanup Remove all files on /nani/ except index.html
-h, --help Display this help and exit
-i, --insert Open nano to enter text. Saved in output directory as .txt
-k, --keep Output dir becomes /nani/k/, to set different cleanup rules
-l, --list List files in output directory /nani/
-n, --name Use custom name (e.g. nani -n DesiredName <file>)
-N, --notify Revert the notify option
-o, --original Preserve original file name
-p, --push Send push notification
-q, --quiet Revert the quiet setting
-s, --string Force a certain string length (e.g. nani -s 32 <file>)
-t, --transcode Revert the transcode setting
-x, --xclip Revert the xclip setting
-y, --symbolic Create a symbolic link for files and directories
```
{% end %}

View File

@@ -0,0 +1,80 @@
+++
title = "nani"
description = "Bash script to create public URLs from files or text on remote servers."
weight = 3
[extra]
local_image = "projects/nani/nani.webp"
canonical_url = "https://osc.garden/projects/tabi/"
social_media_card = "social_cards/projects_nani.jpg"
+++
If you're working on a remote server, you know that sharing files with others can often involve multiple steps. `nani` is a Bash script designed to streamline this process. By executing a single command, you can convert local files or URLs into accessible links, allowing for easier sharing right from your server.
#### [View on GitHub](https://github.com/welpo/nani) {.centered-text}
## Key Features
- **Multiple File Types**: Handles directories, FLAC files, text files, and even URLs to videos.
- **Customisable**: Tailor settings via a config file or runtime flags.
- **Notifications**: Desktop notifications and clipboard integration for a better experience.
## Quick Start
1. Place `nani` in a directory within your PATH.
2. Make the script executable.
For detailed installation steps, [read the full documentation](https://github.com/welpo/nani#install).
## Usage
```bash
nani Path/To/picture.png
https://example.com/nani/hjRGLZB.png
```
**Share a directory keeping its original name**:
```bash
nani -o Path/To/Directory
https://example.com/nani/Directory.zip
```
Additional control is available through flags. Here's the output of `nani --help`:
{% wide_container() %}
```
Usage: nani [options] <infile>
Provides public URL from input.
Input handling:
Directory Will be stored using zip (or symbolic link)
FLAC Can be transcoded to MP3
Text (html, php...) Extension can be set to .txt
Other files New copy/hard link/symbolic link at output directory
URL to video (e.g: youtube) Downloaded using yt-dlp
Other URLs Downloaded using wget
Modify the first lines of the script to change how nani behaves: quiet mode,
enabling/disabling transcoding, length of the string, extension truncation...
Settings and options:
-a, --alias Revert the hard link setting
-c, --cleanup Remove all files on /nani/ except index.html
-h, --help Display this help and exit
-i, --insert Open nano to enter text. Saved in output directory as .txt
-k, --keep Output dir becomes /nani/k/, to set different cleanup rules
-l, --list List files in output directory /nani/
-n, --name Use custom name (e.g. nani -n DesiredName <file>)
-N, --notify Revert the notify option
-o, --original Preserve original file name
-p, --push Send push notification
-q, --quiet Revert the quiet setting
-s, --string Force a certain string length (e.g. nani -s 32 <file>)
-t, --transcode Revert the transcode setting
-x, --xclip Revert the xclip setting
-y, --symbolic Create a symbolic link for files and directories
```
{% end %}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB