-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "✨ feat: allow internal project links (#157)"
This reverts commit 5a2161f.
- Loading branch information
Showing
42 changed files
with
49 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.