Skip to content

Instantly share code, notes, and snippets.

View justrau's full-sized avatar

Justas Raudonius justrau

View GitHub Profile
@justrau
justrau / laravel-wokrtree-docker.md
Created April 7, 2026 18:01
laravel-worktree-docker-skill
name laravel-wokrtree-docker
description Start a Docker instance for local development

Start a Docker development instance using make docker.

Finding ID and Title:

  1. First check if arguments were provided directly: ID=$1, Title=$2
@justrau
justrau / Dockerfile
Created April 7, 2026 17:58
laravel-worktree-docker
# syntax=docker/dockerfile:1
FROM php:7.4-fpm
# Install system dependencies (with apt cache)
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && apt-get install -y --no-install-recommends \
nginx \
supervisor \
curl \
@justrau
justrau / auto-solver-for-the-invert-grid-game.js
Created March 21, 2025 16:19
Auto-solver for the invert grid game
// Invert Puzzle Solver
// This script solves the "Invert" puzzle by finding cells to click
// that will turn all cells green
// Function to find all grid cells
function getCells() {
// First, try the exact selector from the provided markup
const cells = document.querySelectorAll('.grid > .cell');
if (cells.length > 0) {
@justrau
justrau / gist:f5c7c217aacbf2da2cbee58fe7734676
Created July 2, 2022 15:59 — forked from flexchar/gist:24d824d63c4e3027ea742112e3547dd9
Lietuviškų žodžių linksniavimas PHP Trait
<?php
namespace path\to\this;
/**
* Lietuviškų vardų linksniai.
*/
trait Linksniai {
/**
* Vardų transformacija