Skip to content

Instantly share code, notes, and snippets.

@gamersalpha
gamersalpha / gist:f43bd02eaa0a9502a2f32f6588bd2094
Created November 20, 2024 07:47
Docker compose - Searx for ollama search
services:
swag:
image: searxng/searxng
container_name: searxng
environment:
- PUID=1000
- PGID=1000
- BASE_URL=https://searx.domanie.fr
- INSTANCE_NAME=DomaineSearch
- TZ=Europe/Paris
[i] No changes detected
node:internal/fs/utils:356
throw err;
^
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (node:fs:744:3)
at tryReadSync (node:fs:444:20)
at Object.readFileSync (node:fs:490:19)
at loadConfig (/home/perplexica/dist/config.js:11:60)
at getPort (/home/perplexica/dist/config.js:12:23)
@gamersalpha
gamersalpha / gist:65f4b0d116c9fb58a2b822c836abb154
Created November 2, 2024 10:30
Docker local AI - OLLAMA - WEBOPENAI - and many stuff
volumes:
n8n_storage:
postgres_storage:
ollama_storage:
qdrant_storage:
open-webui:
networks:
net_ai:
@gamersalpha
gamersalpha / gist:786c408ab86cf4b0887be16f462d7f43
Created October 21, 2024 07:30
Information recall WIndows
# Obtenir la version de Windows
$windowsVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ReleaseId
$windowsBuild = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").CurrentBuild
# Afficher la version et le build
Write-Host "Version de Windows : $windowsVersion"
Write-Host "Build de Windows : $windowsBuild"
# Vérifier si la fonctionnalité "Recall" est activée
$RecallEnabled = Dism /online /Get-FeatureInfo /FeatureName:Recall | findstr /B /C:"State"
@gamersalpha
gamersalpha / gist:a7c7a5ac1857e13c7fde4928aab616d2
Created October 13, 2024 18:06
Résumé Information matériel en PowerShell
# Informations sur le CPU
$cpuInfo = Get-WmiObject -Class Win32_Processor | Select-Object Name
# Informations sur le GPU
$gpuInfo = Get-WmiObject -Class Win32_VideoController | Select-Object Name
# Informations sur la RAM et sa vitesse
$ramInfo = Get-WmiObject -Class Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum | Select-Object @{Name="Total RAM (Go)";Expression={$_.Sum / 1GB}},@{Name="Vitesse RAM (MHz)";Expression={(Get-WmiObject -Class Win32_PhysicalMemory | Select-Object -First 1).Speed}}
# Informations sur la carte mère et le BIOS
@gamersalpha
gamersalpha / gist:fb1a884814abed3be191646fdea3539a
Created October 9, 2024 17:21
Swag - Nginx config for searx
## Version 2024/10/09
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name searx.*;
include /config/nginx/ssl.conf;
services:
swag:
image: searxng/searxng
container_name: searx-ng
environment:
- PUID=1000
- PGID=1000
- BASE_URL=https://searx.domaine.fr
- INSTANCE_NAME=DomaineSearch
- TZ=Europe/Paris
@gamersalpha
gamersalpha / gist:0d04ebd8f3f5e68413428cb08bef841d
Created October 8, 2024 17:05
Docker - Portainer - Stack - ollamaWeb
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
volumes:
- /volume1/docker/ollama-web/ollama:/root/.ollama
#pull_policy: always
#tty: true
#ports:
# -11434:11434
@gamersalpha
gamersalpha / gist:4fd1bce02f0f1826cdfd7c11b38b624e
Created October 8, 2024 16:39
Fichier Swag pour l'application linkwarden
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name linkwarden.domaine.fr
include /config/nginx/ssl.conf;
@gamersalpha
gamersalpha / gist:96d0c7cf6079e55089d44d35f04b9604
Created October 8, 2024 16:30
Docker Stack Portainer --> Linkwarden
services:
db:
image: postgres:16
container_name: Linkwarden-DB
hostname: linkwarden-db
mem_limit: 1g
cpu_shares: 768
security_opt:
- no-new-privileges:true
healthcheck: