Skip to content

Commit

Permalink
Revert "✨ feat: allow internal project links (#157)"
Browse files Browse the repository at this point in the history
This reverts commit 5a2161f.
  • Loading branch information
welpo authored Sep 15, 2023
1 parent 5a2161f commit 21309de
Show file tree
Hide file tree
Showing 42 changed files with 49 additions and 670 deletions.
5 changes: 1 addition & 4 deletions content/projects/_index.ca.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
title = "Projectes"
sort_by = "weight"
template = "cards.html"
insert_anchor_links = "left"

[extra]
social_media_card = "img/ca_projects.jpg"
show_reading_time = false
quick_navigation_buttons = true
social_media_card = "img/social_cards/ca_projects.jpg"
+++
3 changes: 0 additions & 3 deletions content/projects/_index.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
title = "Proyectos"
sort_by = "weight"
template = "cards.html"
insert_anchor_links = "left"

[extra]
social_media_card = "img/social_cards/es_projects.jpg"
show_reading_time = false
quick_navigation_buttons = true
+++
3 changes: 0 additions & 3 deletions content/projects/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
title = "Projects"
sort_by = "weight"
template = "cards.html"
insert_anchor_links = "left"

[extra]
social_media_card = "img/social_cards/projects.jpg"
show_reading_time = false
quick_navigation_buttons = true
+++
24 changes: 2 additions & 22 deletions content/projects/chu.ca.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,9 @@
+++
title = "chu"
description = "Aplicació Flask per pujar arxius de manera segura, amb eliminació de metadades, compressió, protecció amb contrasenya i més."
description = "Aplicació Flask per a càrregues de fitxers segures, amb eliminació de metadades, compressió, protecció amb contrasenya i més."
weight = 2

[extra]
local_image = "img/chu.webp"
social_media_card = "img/social_cards/ca_projects_chu.jpg"
link_to = "https://github.com/welpo/chu"
+++

[**chu**](https://github.com/welpo/chu) és una aplicació per pujar arxius creada amb Python, Flask i uWSGI. Aquest projecte integra diverses tècniques d'optimització per fer que la pujada d'arxius sigui no només més senzilla, sinó també més intel·ligent.

#### [Veure a GitHub](https://github.com/welpo/chu) {.centered-text}

### Característiques tècniques

- **Eficiència a través de la compressió**: Utilitza [compressió Lepton JPEG](https://github.com/microsoft/lepton_jpeg_rust) i [optipng](http://optipng.sourceforge.net/) per assolir un estalvi d'espai d'fins al 22%.

- **Mesures de seguretat**: Implementa límits de grandària de pujada, controls d'extensió i autenticació amb contrasenya.

- **Facilitat d'ús**: Genera una URL per a cada arxiu pujat amb èxit, permetent noms d'arxiu aleatoris o definits per l'usuari.

- **Eliminació de metadades**: Elimina les metadades dels arxius per millorar la privacitat.

- **Grandària de pujada configurable**: Ofereix la possibilitat d'establir límits a la grandària dels arxius pujats.

- **Controls específics d'extensió**: Proporciona configuracions per restringir les pujades a extensions d'arxiu específiques.

- **Resposta d'URL directa**: Després de cada pujada exitosa, retorna una URL que apunta a l'arxiu.
22 changes: 1 addition & 21 deletions content/projects/chu.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,5 @@ weight = 2

[extra]
local_image = "img/chu.webp"
social_media_card = "img/es_projects_chu.jpg"
link_to = "https://github.com/welpo/chu"
+++

[**chu**](https://github.com/welpo/chu) es un subidor de archivos creado con Python, Flask y uWSGI. Este proyecto integra diversas técnicas de optimización para hacer que la subida de archivos sea no solo más sencilla, sino también más inteligente.

#### [Ver en GitHub](https://github.com/welpo/chu) {.centered-text}

### Características técnicas

- **Eficiencia a través de la compresión**: Utiliza [compresión Lepton JPEG](https://github.com/microsoft/lepton_jpeg_rust) y [optipng](http://optipng.sourceforge.net/) para lograr un ahorro de espacio de hasta el 22%.

- **Medidas de seguridad**: Implementa límites de tamaño de subida, controles de extensión y autenticación con contraseña.

- **Facilidad de uso**: Genera una URL para cada archivo subido con éxito, permitiendo nombres de archivo aleatorios o definidos por el usuario.

- **Eliminación de metadatos**: Elimina los metadatos de los archivos por privacidad.

- **Tamaño de subida configurable**: Ofrece la posibilidad de establecer límites al tamaño de los archivos subidos.

- **Controles específicos de extensión**: Proporciona configuraciones para restringir las subidas a extensiones de archivo específicas.

- **Respuesta de URL directa**: Tras cada subida exitosa, devuelve una URL que apunta al archivo.
25 changes: 3 additions & 22 deletions content/projects/chu.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
+++
title = "chu"
description = "Python-based file uploader using Flask and uWSGI, focused on efficiency and security."
description = "Flask app for secure file uploads, with metadata removal, compression, password protection, and more."
weight = 2


[extra]
local_image = "img/chu.webp"
social_media_card = "img/projects_chu.jpg"
link_to = "https://github.com/welpo/chu"
+++

[**chu**](https://github.com/welpo/chu) is a Python-based file uploader built using Python, Flask, and uWSGI. It integrates multiple optimization techniques to make file uploads not just simpler, but smarter.

#### [View on GitHub](https://github.com/welpo/chu) {.centered-text}

### Technical Features

- **Efficiency Through Compression**: Uses [Lepton JPEG Compression](https://github.com/microsoft/lepton_jpeg_rust) and [optipng](http://optipng.sourceforge.net/) to achieve up to 22% space savings.

- **Security Measures**: Implements upload size limits, extension controls, and password-based authentication.

- **Ease of Use**: Generates a URL for each successfully uploaded file, accommodates either random or user-defined filenames.

- **Metadata Purging**: Removes metadata from files for enhanced privacy.

- **Configurable Upload Size**: Allows users to set limits on the size of uploaded files.

- **Extension-Specific Controls**: Provides settings to restrict uploads to specific file extensions.

- **Direct URL Response**: After each successful upload, returns a URL pointing to the file.
76 changes: 2 additions & 74 deletions content/projects/nani.ca.md
Original file line number Diff line number Diff line change
@@ -1,81 +1,9 @@
+++
title = "nani"
description = "Script Bash per crear URLs públiques a partir d'arxius o text en servidors remots."
description = "Script Bash per crear URL públiques a partir de fitxers o text en servidors remots."
weight = 3

[extra]
local_image = "img/nani.webp"
social_media_card = "img/ca_projects_nani.jpg"
link_to = "https://github.com/welpo/nani"
+++

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 %}
75 changes: 2 additions & 73 deletions content/projects/nani.es.md
Original file line number Diff line number Diff line change
@@ -1,80 +1,9 @@
+++
title = "nani"
description = "Script Bash para crear URLs públicas a partir de archivos o texto en servidores remotos."
description = "Script Bash para crear URL públicas desde archivos o texto en servidores remotos."
weight = 3

[extra]
local_image = "img/nani.webp"
social_media_card = "img/es_projects_nani.jpg"
link_to = "https://github.com/welpo/nani"
+++

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 %}
72 changes: 1 addition & 71 deletions content/projects/nani.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,75 +5,5 @@ weight = 3

[extra]
local_image = "img/nani.webp"
social_media_card = "img/projects_nani.jpg"
link_to = "https://github.com/welpo/nani"
+++

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 %}
Loading

0 comments on commit 21309de

Please sign in to comment.