Initial commit

This commit is contained in:
foglar 2024-09-14 19:08:00 +02:00
commit e76ab42570
7 changed files with 291 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# Github
GitHub is a cloud-based platform for hosting Git repositories, enabling version control and collaboration on software development projects. It offers tools for code management, issue tracking, pull requests, and continuous integration, making it a popular choice for both open-source and private projects. With features like GitHub Actions for automation and GitHub Pages for web hosting, it supports developers throughout the entire development lifecycle. GitHub is widely used by individuals, teams, and organizations to manage and collaborate on code in real time.
## Linking
- To link your **latest repository release** you should use this url format: **https://github.com/octo-org/octo-repo/releases/latest**
- To download **binary/application** file from latest release use https://github.com/*octo-org/octo-repo*/releases/latest/download/*octo-app.tar.gz*
## Github-CLI
- [Official webpage](https://cli.github.com/)
- Install on Arch with `sudo pacman -S github-cli`
- Install on Debian with
```bash
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
```
- [Other installation instructions](https://raw.githubusercontent.com/cli/cli/trunk/docs/install_linux.md)

View File

@ -0,0 +1,6 @@
# Git
## Add new commit
- `git add README.md` - add file to repository
- `git commit -m "first commit"` - commit file

232
Server/Gitea/Gitea.yaml Normal file
View File

@ -0,0 +1,232 @@
name: gitea
services:
gitea:
container_name: gitea
deploy:
resources:
reservations:
memory: "268435456"
limits:
memory: 8052M
environment:
- USER_GID=1000
- USER_UID=1000
image: gitea/gitea:1.22.1
labels:
icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Gitea/icon.png
ports:
- target: 3000
published: "3002"
protocol: tcp
- target: 22
published: "222"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: /DATA/AppData/gitea/data
target: /data
x-casaos:
envs:
- container: USER_UID
description:
en_us: The UID (Unix user ID) of the user that runs Gitea
zh_cn: Gitea 运行的用户的 UIDUnix 用户 ID
- container: USER_GID
description:
en_us: The GID (Unix group ID) of the user that runs Gitea
zh_cn: Gitea 运行的用户的 GIDUnix 组 ID
ports:
- container: "3000"
description:
en_us: WebUI Port
zh_cn: WebUI 端口
- container: "22"
description:
en_us: SSH Port
zh_cn: SSH 端口
volumes:
- container: /data
description:
en_us: Gitea data directory.
zh_cn: Gitea 数据目录。
devices: []
cap_add: []
command: []
network_mode: bridge
privileged: false
hostname: gitea
cpu_shares: 90
x-casaos:
architectures:
- amd64
- arm64
author: CasaOS Team
category: Developer
description:
ar_sa: Gitea هو حل استضافة الشفرة الخفيفة المدار من قبل المجتمع مكتوب بلغة Go.
de_de: Gitea ist eine von der Community verwaltete, leichte Code-Hosting-Lösung,
die in Go geschrieben ist.
en_us: >
Gitea is a painless self-hosted all-in-one software development service,
it includes Git hosting, code review, team collaboration, package registry
and CI/CD. It is similar to GitHub, Bitbucket and GitLab.
- Code Hosting
Gitea supports creating and managing repositories, browsing commit history and code files, reviewing and merging code submissions, managing collaborators, handling branches, and more. It also supports many common Git features such as tags, Cherry-pick, hooks, integrated collaboration tools, and more.
- Lightweight and Fast
One of Gitea's design goals is to be lightweight and fast in response. Unlike some large code hosting platforms, it remains lean, performing well in terms of speed, and is suitable for resource-limited server environments. Due to its lightweight design, Gitea has relatively low resource consumption and performs well in resource-constrained environments.
- Easy Deployment and Maintenance
It can be easily deployed on various servers without complex configurations or dependencies. This makes it convenient for individual developers or small teams to set up and manage their own Git services.
- Security
Gitea places a strong emphasis on security, offering features such as user permission management, access control lists, and more to ensure the security of code and data.
- Code Review
Code review supports both the Pull Request workflow and AGit workflow. Reviewers can browse code online and provide review comments or feedback. Submitters can receive review comments and respond or modify code online. Code reviews can help individuals and organizations enhance code quality.
- CI/CD
Gitea Actions supports CI/CD functionality, compatible with GitHub Actions. Users can write workflows in familiar YAML format and reuse a variety of existing Actions plugins. Actions plugins support downloading from any Git website.
- Project Management
Gitea tracks project requirements, features, and bugs through columns and issues. Issues support features like branches, tags, milestones, assignments, time tracking, due dates, dependencies, and more.
- Artifact Repository
Gitea supports over 20 different types of public or private software package management, including Cargo, Chef, Composer, Conan, Conda, Container, Helm, Maven, npm, NuGet, Pub, PyPI, RubyGems, Vagrant, and more.
- Open Source Community Support
Gitea is an open-source project based on the MIT license. It has an active open-source community that continuously develops and improves the platform. The project also actively welcomes community contributions, ensuring updates and innovation.
- Multilingual Support
Gitea provides interfaces in multiple languages, catering to users globally and promoting internationalization and localization.
es_es: Gitea es una solución de alojamiento de código ligera administrada por la
comunidad escrita en Go.
fr_fr: Gitea est une solution d'hébergement de code légère gérée par la
communauté écrite en Go.
hu_hu: A Gitea egy közösség által kezelt könnyű kódhelyezési megoldás, amelyet
Go írt.
it_it: Gitea è una soluzione di hosting di codice leggera gestita dalla comunità
scritta in Go.
pl_pl: Gitea to lekka rozwiązanie do hostingu kodu zarządzane przez społeczność
napisane w Go.
pt_br: O Gitea é uma solução de hospedagem de código leve gerenciada pela
comunidade escrita em Go.
ru_ru: Gitea - это легкое решение для размещения кода, управляемое сообществом,
написанное на Go.
sv_se: Gitea är ett communityhanterat lätthanterat kodhostningslösning skrivet i
Go.
uk_ua: Gitea - це легке рішення для розміщення коду, кероване спільнотою,
написане на Go.
zh_cn: >
Gitea 是一个轻松自托管的全方位软件开发服务,包含 Git 托管、代码评审、团队协作、包注册表和 CI/CD。它类似于
GitHub、Bitbucket 和 GitLab。
- 代码托管
Gitea 支持创建和管理仓库、浏览提交历史和代码文件、评审和合并代码提交、管理协作者、处理分支等。它还支持许多常见的 Git 功能如标签、Cherry-pick、钩子、集成协作工具等。
- 轻量且快速
Gitea 的设计目标之一是轻量且响应迅速。与一些大型代码托管平台不同它保持精简在速度方面表现良好适合资源有限的服务器环境。由于其轻量设计Gitea 的资源消耗相对较低,在资源受限的环境中表现出色。
- 易于部署和维护
Gitea 可以轻松部署在各种服务器上,无需复杂的配置或依赖项。这使得个人开发者或小团队可以方便地设置和管理自己的 Git 服务。
- 安全性
Gitea 非常重视安全性,提供了用户权限管理、访问控制列表等功能,以确保代码和数据的安全。
- 代码评审
Gitea 的代码评审支持 Pull Request 工作流和 AGit 工作流。评审者可以在线浏览代码并提供评审意见或反馈。提交者可以接收评审意见并在线回应或修改代码。代码评审有助于个人和组织提升代码质量。
- CI/CD
Gitea Actions 支持 CI/CD 功能,兼容 GitHub Actions。用户可以使用熟悉的 YAML 格式编写工作流,并重用各种现有的 Actions 插件。Actions 插件支持从任何 Git 网站下载。
- 项目管理
Gitea 通过列和问题跟踪项目需求、功能和 bug。问题支持分支、标签、里程碑、分配、时间跟踪、截止日期、依赖关系等功能。
- 工件仓库
Gitea 支持超过 20 种不同类型的公共或私有软件包管理,包括 Cargo、Chef、Composer、Conan、Conda、Container、Helm、Maven、npm、NuGet、Pub、PyPI、RubyGems、Vagrant 等。
- 开源社区支持
Gitea 是基于 MIT 许可证的开源项目。它拥有一个活跃的开源社区,持续开发和改进平台。该项目还积极欢迎社区贡献,确保更新和创新。
- 多语言支持
Gitea 提供多语言界面,满足全球用户需求,促进国际化和本地化。
developer: Gitea
icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Gitea/icon.png
index: /
is_uncontrolled: false
main: gitea
port_map: "3002"
screenshot_link:
- https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Gitea/screenshot-1.png
- https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Gitea/screenshot-2.png
- https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Gitea/screenshot-3.png
store_app_id: gitea
tagline:
ar_sa: Git مع كوب من الشاي
de_de: Git mit einem Tässchen Tee
en_us: Self-hosted software development service
es_es: Git con una taza de té
fr_fr: Git avec une tasse de thé
hu_hu: Git egy csésze tea kíséretében
it_it: Git con una tazza di tè
pl_pl: Git z filiżanką herbaty
pt_br: Git com uma xícara de chá
ru_ru: Git с чашечкой чая
sv_se: Git med en kopp te
uk_ua: Git з чашкою чаю
zh_cn: 自托管软件开发服务
thumbnail: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Gitea/thumbnail.png
tips:
before_install:
en_us: >
When the App is installed, the first account registered will become the
administrator account.
zh_cn: |
安装应用后,注册的第一个账号将成为管理员账号。
title:
en_us: Gitea
custom: ""
hostname: ""
scheme: http

19
Server/Gitea/README.md Normal file
View File

@ -0,0 +1,19 @@
# Gitea
Gitea is a lightweight, self-hosted Git service for managing repositories, code review, issue tracking, and continuous integration. It provides an open-source alternative to platforms like GitHub, allowing individuals and teams to host their own version-controlled projects with a user-friendly web interface. Gitea is easy to install, requires minimal resources, and supports a range of deployment options including Docker, making it ideal for small to medium-sized development environments.
- To install on CasaOS use [docker compose](./Gitea.yaml) file
## Custom themes
- [Catppuccin themes](https://github.com/catppuccin/gitea)
- Download themes from [latest release](https://github.com/catppuccin/gitea/releases/latest/download/catppuccin-gitea.tar.gz) `wget https://github.com/catppuccin/gitea/releases/latest/download/catppuccin-gitea.tar.gz`
- Place themes in gitea css themes directory `/DATA/AppData/gitea/data/gitea/public/assets/css` or `/DATA/AppData/gitea/data/gitea/public/css`
- Edit `app.ini` file `/DATA/AppData/gitea/data/gitea/conf/app.ini`, add this code snippet:
```yaml
[ui]
THEMES = catppuccin-latte-rosewater,catppuccin-latte-flamingo,catppuccin-latte-pink,catppuccin-latte-mauve,catppuccin-latte-red,catppuccin-latte-maroon,catppuccin-latte-peach,catppuccin-latte-yellow,catppuccin-latte-green,catppuccin-latte-teal,catppuccin-latte-sky,catppuccin-latte-sapphire,catppuccin-latte-blue,catppuccin-latte-lavender,catppuccin-frappe-rosewater,catppuccin-frappe-flamingo,catppuccin-frappe-pink,catppuccin-frappe-mauve,catppuccin-frappe-red,catppuccin-frappe-maroon,catppuccin-frappe-peach,catppuccin-frappe-yellow,catppuccin-frappe-green,catppuccin-frappe-teal,catppuccin-frappe-sky,catppuccin-frappe-sapphire,catppuccin-frappe-blue,catppuccin-frappe-lavender,catppuccin-macchiato-rosewater,catppuccin-macchiato-flamingo,catppuccin-macchiato-pink,catppuccin-macchiato-mauve,catppuccin-macchiato-red,catppuccin-macchiato-maroon,catppuccin-macchiato-peach,catppuccin-macchiato-yellow,catppuccin-macchiato-green,catppuccin-macchiato-teal,catppuccin-macchiato-sky,catppuccin-macchiato-sapphire,catppuccin-macchiato-blue,catppuccin-macchiato-lavender,catppuccin-mocha-rosewater,catppuccin-mocha-flamingo,catppuccin-mocha-pink,catppuccin-mocha-mauve,catppuccin-mocha-red,catppuccin-mocha-maroon,catppuccin-mocha-peach,catppuccin-mocha-yellow,catppuccin-mocha-green,catppuccin-mocha-teal,catppuccin-mocha-sky,catppuccin-mocha-sapphire,catppuccin-mocha-blue,catppuccin-mocha-lavender
```
- Restart gitea docker container
- Edit your theme after logging in in Gitea > Account > Settings > Appearance

View File

@ -0,0 +1,10 @@
# PhotoPrism
PhotoPrism is a self-hosted photo management platform designed to organize, browse, and share digital images. It uses AI-powered image recognition to automatically tag and categorize photos, making it easy to search through large collections. PhotoPrism supports various formats and integrates with cloud services for backup. Ideal for privacy-conscious users, it offers a user-friendly web interface to manage personal photo libraries without relying on third-party platforms.
> [!IMPORTANT]
> If using docker all commands should be prefixed like this `docker compose exec photoprism *photoprism passwd foglar*`
## Administration - User management
- Change user password `photoprism passwd [username]`

0
Tools/ffmpeg.md Normal file
View File

0
Tools/fzf.md Normal file
View File