Skip to content

Instantly share code, notes, and snippets.

View pixeline's full-sized avatar
😄
Heaven, I'm in heaven, And my heart beats so that I can hardly speak !

Alexandre Plennevaux pixeline

😄
Heaven, I'm in heaven, And my heart beats so that I can hardly speak !
View GitHub Profile
@pixeline
pixeline / pr.md
Last active March 6, 2026 14:54
Cursor command to create a PR . Save this file as `~/.cursor/commands/pr.md`. In Cursor, type `/pr` and follow the prompts.

Create PR (Good PR, Uses Template If Present)

Purpose: Create a high-quality Pull Request using the repo’s PR template if it exists; otherwise, generate a best-practice PR body with clear sections (Overview, Context, Changes, Tests, Screenshots, Risks, Rollback, Related Issues, Checklist). Assign reviewers, add labels, and link issues. Uses gh CLI.

Do exactly the following:

  1. Preconditions & tooling
    • Verify Git is available: git --version.
    • Verify GitHub CLI is available: gh --version.
  • Verify you’re authenticated with GitHub: gh auth status.
{
"did": "did:plc:v4zpi74gy7enfiwke7hmoxv5"
}
@pixeline
pixeline / server-logs-viewer.php
Last active January 19, 2026 09:03
This script presents the latest lines of your LAMP server log files, emulating the tail() function. Layout is nice and responsive. I chose to include inline the CSS and JS to have the ease-of-use of a single, "drop-in", file. If your site is hosted on a Gandi Simplehosting server, it should just work out of the box.
<?php
/*
@name Server Logs Viewer
@description Emulates the tail() function. View the latest lines of your LAMP server logs in your browser.
@author Alexandre Plennevaux (pixeline.be)
@team Oleg Basov (olegeech@sytkovo.su)
@date 16.12.2015
*/
@pixeline
pixeline / prompt.md
Last active December 30, 2025 22:49
Custom Cursor Command: optimized prompt

You are a senior prompt engineer for Cursor AI.

Your job: take the user’s raw instructions (anything they type after this command) and produce a single, copy/paste-ready prompt that will get the best outcome in Cursor, plus a recommendation for which Cursor mode to run (ask, plan, agent, debug) and a recommendation for which model to use (chosen from the models available to the user).

@pixeline
pixeline / agentsmd.md
Last active December 19, 2025 11:43
Cursor command that generates a useful AGENTS.md in the active project. This file should be placed in the `~/.cursor/commands` folder.

You are an experienced senior engineer joining this repository today. Your task is to create an accurate AGENTS.md file that will be used by AI coding agents working in this repo.

Goal: Produce a short, concrete, machine-oriented guide that lets an AI agent be productive in minutes without guessing.

@pixeline
pixeline / commit.md
Last active October 29, 2025 18:40
Custom Cursor command: it creates one or more git commits for the current changes using the Conventional Commits specification. Save it in `~/.cursor/commands` and Cursor will automatically pick it up when you type "/commit" in the chat box.

Commit (Conventional Commits)

Purpose: Create one or more git commits for the current changes using Conventional Commits. First analyze and group related changes, then create focused commits for each group. Keep messages as short as possible and as long as necessary to be useful.

Do exactly the following:

  1. Check repo state
@pixeline
pixeline / readme.md
Created June 1, 2019 11:52
Deploy a "docker-composed" environment on DigitalOcean

Deploy docker-compose on digitalocean

  1. create Docker droplet via digitalocean one-click-app-docker
  2. log into it
  3. generate SSH key
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa
  1. Copy it
@pixeline
pixeline / .gitignore
Last active February 8, 2025 23:26 — forked from redoPop/.gitignore
Default Wordpress .gitignore file
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@pixeline
pixeline / cardano.15s.sh
Last active February 7, 2025 20:38
xbar plugin to display the value of Cardano in EUR, USD or JPY in a macos menu bar
#!/bin/bash
# <xbar.title>Cardano Price</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Alexandre Plennevaux</xbar.author>
# <xbar.author.github>pixeline</xbar.author.github>
# <xbar.desc>Displays Cardano (ADA) current price in EUR using CoinGecko API.</xbar.desc>
# <xbar.dependencies>curl, jq</xbar.dependencies>
# <xbar.var>select(VAR_CURRENCY="eur"): Which Currency? [usd, eur, jpy]</xbar.var>
@pixeline
pixeline / mirror_remote_directory_to_local_directory
Last active May 21, 2024 19:36
Bash script using lftp to mirror remote directory to local directory, thus keeping the local directory synchronized with the remote one.
#!/bin/sh
# @author: Alexandre Plennevaux
# @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP
#
# FTP LOGIN
HOST='sftp://ftp.domain.com'
USER='ftpusername'
PASSWORD='ftppassword'
# DISTANT DIRECTORY