Skip to content

Instantly share code, notes, and snippets.

View aamaanaa's full-sized avatar
πŸ’»
πš†πšŠπšπšŒπš‘πš’πš—πš πšŠπš—πš’πš–πšŽ

Aamaanaa aamaanaa

πŸ’»
πš†πšŠπšπšŒπš‘πš’πš—πš πšŠπš—πš’πš–πšŽ
View GitHub Profile
@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 February 23, 2026 13:31
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.


@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

@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.
@aamaanaa
aamaanaa / gist:20a55dcf98b094583196c662b03f7bbe
Created October 27, 2022 12:03
Linux write access to /var/www/html/project
You will need to add you user to the 'apache' group first. Log out afhter you have done that.
$ sudo mkdir /var/www/html/project
$ sudo chown -R $USER:apache /var/www/html/project
$ sudo chmod -R 775 /var/www/html/project
@vwbusguy
vwbusguy / auto_profile
Last active November 26, 2025 11:55
Auto Update for power-profiles-daemon
#!/bin/bash
dbus-monitor --system "type='signal',path='/org/freedesktop/UPower/devices/battery_BAT0',member='PropertiesChanged'" | while read LINE; do
echo ${LINE} | grep battery_BAT0 | grep -q PropertiesChanged
if [ $? -eq 0 ]; then
BATT_STAT=$(dbus-send --print-reply=literal --system --dest=org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT0 org.freedesktop.DBus.Properties.Get string:org.freedesktop.UPower.Device string:State | awk '{ print $3; }')
if [ $BATT_STAT -eq 1 ] || [ $BATT_STAT -eq 4 ]; then
LEVEL=$(tuned-adm list | grep -q throughput-performance && echo "throughput-performance" || echo "balanced")
elif [ $BATT_STAT -eq 5 ]; then
LEVEL="balanced"
@JuneKelly
JuneKelly / BaselineTest.txt
Created December 12, 2017 13:45
Full text of the Baseline Test from Blade Runner 2049
A blood black nothingness began to spin.
Began to spin.
Let's move on to system.
System.
Feel that in your body.
@elico
elico / client.go
Created July 26, 2016 00:21
golang tcp client connection alive check
package main
import (
"fmt"
"io"
"net"
"time"
)
func main() {