Skip to content

Instantly share code, notes, and snippets.

View aamaanaa's full-sized avatar
😍
Echinda from Re-Zero

Aamaanaa aamaanaa

😍
Echinda from Re-Zero
View GitHub Profile
@aamaanaa
aamaanaa / gist:7396a81be39d4549567e1484b82faef3
Last active March 5, 2026 22:36
How to Install Goland on Linux

Taken from: https://aamaanaa.com/


Goland, the Go IDE by JetBrains, can be installed manually on any Linux distribution using the official tarball. This approach ensures you always get the untampered, official binary without relying on Flatpak or third-party repositories.

This guide provides a ready-to-use bash script for automatic installation and also shows how to run the installation manually. This should work on any Linux distro.

If there is enough interest, future guides may cover multiple JetBrains products.

@aamaanaa
aamaanaa / NOTES.md
Last active February 20, 2026 15:12
Fedora notes

Fedora notes

These are my personal notes. It does not mean it is for you. I will update this from time to time.

Installing spotify

Install spotify:

sudo dnf install lpf-spotify-client -y

Add our user to pkg build group:

@craimasjien
craimasjien / bleeding-edge-mesa-fedora.md
Last active March 10, 2026 13:24
Installing bleeding-edge mesa on Fedora

Building Bleeding-Edge Mesa RPMs on Fedora

This guide walks you through building and installing the latest development version of Mesa on Fedora using mock to generate proper RPM packages. I've been using this method since December 2025 and have perfected it along the way. I'm very satisfied with the results. Make sure to put the script itself and the .spec file in a folder and run the script.

MAKE SURE YOU READ AND UNDERSTAND THE SCRIPT, NEVER RUN SOMETHING OFF THE INTERNET WITHOUT UNDERSTANDING THE CONTENT. I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR SYSTEM

Who is this guide for? This guide is written for all experience levels, including beginners. Each step includes explanations of what and why, so you can learn as you go.


@yuuahp
yuuahp / compose.yml
Created May 4, 2025 10:53
Simple Immich + Nginx configuration with self-signed HTTPS access
name: immich
services:
nginx:
image: nginx:latest
container_name: reverse_proxy
ports:
- 3001:3001
- 3000:3000
volumes:
@jenaye
jenaye / Install ollama + web gui (open-webui)
Last active November 6, 2025 00:13
Install ollama + web gui (open-webui)
# install docker
```
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
@mnabila
mnabila / JetBrains trial reset.md
Created February 28, 2024 08:17
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@bertmelis
bertmelis / Immich behind nginx proxy with Letsencrypt certificates.md
Last active February 26, 2026 18:27
Immich behind nginx proxy with Letsencrypt certificates
  • !! underscore _ in filename == slash /
  • I'm using podman instead of Docker. Systemd files were generated by podman (not quadlet).
  • certbot image has to be pulled manually
  • before first start, a certificate has to be requested. Nginx won't start if it's not there. You can request one using certbot in standalone mode: podman run -it --rm -p 80:80 -v ~/nginx/data/letsencrypt:/etc/letsencrypt:z -v ~/nginx/log:/var/log:z certbot/certbot certonly --standalone --staging --dry-run --key-type ecdsa --rsa-key-size 4096 -d immich.domain.tld
  • ports forwarded and opened: 80/TCP, 443/UDP and 443/TCP

directory structure has to look like this. directories and logfiles may have to be created manually. check startup errors.

$ home - nginx
@alexedwards
alexedwards / cache.go
Last active May 1, 2025 00:58
Generic in-memory cache implementation in Go
package cache
import (
"sync"
"time"
)
// Cache is a basic in-memory key-value cache implementation.
type Cache[K comparable, V any] struct {
items map[K]V // The map storing key-value pairs.
@thiagozs
thiagozs / file-opening-flags-go.md
Created September 18, 2023 12:26
File-opening flags in Go

File-opening flags in Go (By Adebayo Adams)

Go provides file-opening flags represented by constants defined in the os package. These flags determine the behavior of file operations, such as opening, creating, and truncating files. The following is a list of the flags and what they do.

  1. os.O_RDONLY: Opens the file as read-only. The file must exist.

  2. os.O_WRONLY: Opens the file as write-only. If the file exists, its contents are truncated. If it doesn't exist, a new file is created.

  3. os.O_RDWR: Opens the file for reading and writing. If the file exists, its contents are truncated. If it doesn't exist, a new file is created.