Skip to content

Instantly share code, notes, and snippets.

View photosunthesis's full-sized avatar

Sun Envidiado photosunthesis

View GitHub Profile
@photosunthesis
photosunthesis / linux_style.json
Last active October 11, 2025 08:16
Hyprland-like config stuff for my macOS environment
{
"title": "Linux-style keybindings (Ctrl<->Cmd swap, preserve Cmd+Tab)",
"rules": [
{
"description": "Alt+Space for Spotlight",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "spacebar",
@photosunthesis
photosunthesis / config.jsonc
Last active October 12, 2025 15:50
Waybar configuration
{
"reload_style_on_change": true,
"layer": "top",
"position": "top",
"spacing": 0,
"height": 26,
"modules-left": [
"hyprland/workspaces"
],
"modules-right": [
@photosunthesis
photosunthesis / docker-compose.yaml
Created February 18, 2025 00:30
Minecraft Server Docker Compose Template
# Minecraft Server Docker Compose Template
# This compose file sets up a vanilla Minecraft server environment using Docker
#
# Usage:
# 1. Create a .env file with required variables (see below)
# 2. Run with: docker-compose -f docker-compose.yaml up -d
# 3. Server will be available on port 25565 by default
#
# Integration with PlayIt.GG:
# - Can be used with PlayIt.GG for port forwarding
@photosunthesis
photosunthesis / git_reset_to_branch_base.sh
Created December 11, 2023 00:52
Dynamic Git Reset to Branch Base
# This gist provides a terminal function for dynamically resetting the current Git branch to the merge base with another branch
function grb() {
if [[ -z "$1" ]]; then
echo "Error: Please provide a branch name as an argument."
return 1
fi
current_branch=$(git rev-parse --abbrev-ref HEAD)
merge_base=$(git merge-base "$1" "$current_branch")
@photosunthesis
photosunthesis / delete_git_branches_except_for_main.sh
Created December 11, 2023 00:49
Clean up local branches, keeping only main/master
# Run this script to delete all local branches except your main development branch (main or master)
git branch | grep -v "master" | grep -v "main" | xargs git branch -D