Skip to content

Instantly share code, notes, and snippets.

View CommanderCRM's full-sized avatar

Ilya Krivoshein CommanderCRM

View GitHub Profile
@CommanderCRM
CommanderCRM / docker-compose.yaml
Created October 21, 2025 11:24
Docker Compose for n8n+redis+postgresql+ollama (gemma3 270M - may run on CPU)
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: n8n_postgres
restart: unless-stopped
environment:
POSTGRES_DB: n8n
POSTGRES_USER: n8n
@CommanderCRM
CommanderCRM / rename-branch.sh
Created February 25, 2025 10:06
Rename git branch locally and on the remote
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <old_name> <new_name>"
exit 1
fi
old_name=$1
new_name=$2
remote=origin
@CommanderCRM
CommanderCRM / remove-all-files.sh
Created February 25, 2025 10:06
Remove all possible files and folders inside current directory
#!/bin/bash
find . -name . -o -prune -exec rm -rf -- {} +
@CommanderCRM
CommanderCRM / git-clean.sh
Created February 25, 2025 10:05
Remove all files not related to current git repository
#!/bin/bash
git clean -d -f -x
@CommanderCRM
CommanderCRM / empty-commit.sh
Created February 25, 2025 10:04
Create empty git commit
#!/bin/bash
git commit --allow-empty -m "Empty-Commit"
@CommanderCRM
CommanderCRM / delete-all-local-branches.sh
Created February 25, 2025 10:03
Delete all local git branches except the main ones
#!/bin/bash
git branch | grep -v "develop" | grep -v "master" | grep -v "main" | xargs git branch -D
@CommanderCRM
CommanderCRM / cmake-cache-deletion.sh
Created February 25, 2025 10:02
CMake local cache deletion
#!/bin/bash
find . -name "CMakeCache.txt" -type f -exec rm -f {} +
find . -name "CMakeFiles" -type d -exec rm -rf {} +