Skip to content

Instantly share code, notes, and snippets.

@marcopeg
marcopeg / copilot-instructions.md
Created May 2, 2025 13:59
GitHub Copilot Instructions for Backstage

Tone Of Voice

Minimalist and concise. It's a conversation among senior software architects. I'll explicitly ask for deep explanations.

Tech Stack

  • This is a Spotify's Backstage instance (v1.38.0)
  • Monorepo managed with Yarn Workspaces
@marcopeg
marcopeg / pgmate.sh
Last active December 11, 2024 15:43
PGMate CLI Runner
#!/bin/bash
# Default values
POSTGRES_PORT=13378
PGMATE_PORT=1337
VERSION="latest"
SECRET="pgmate"
PGSTRING="postgres://postgres:[email protected]:${POSTGRES_PORT}/postgres"
# Function to display usage
@marcopeg
marcopeg / native-docker-on-mac.sh
Last active March 5, 2024 14:36
Native Docker on Mac
# Install Docker & Container runtime
brew install docker-credential-helper docker
brew install colima
docker -v
# Install Docker-Compose
brew install docker-compose
mkdir -p ~/.docker/cli-plugins
ln -sfn /opt/homebrew/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
docker compose -v
@marcopeg
marcopeg / card-deck.data.sql
Last active October 26, 2022 06:24
Card deck db schema for PostgreSQL
INSERT INTO "ranks" VALUES
('A'), ('K'), ('Q'), ('J'), ('1'), ('2'), ('3'), ('4'), ('5'), ('6'), ('7'), ('8'), ('9'), ('10');
INSERT INTO "suits" VALUES
('♥️'), ('♠️'), ('♣️'), ('♦️');
INSERT INTO "brands" VALUES
('b1'), ('b2');

Keybase proof

I hereby claim:

  • I am marcopeg on github.
  • I am marcopeg (https://keybase.io/marcopeg) on keybase.
  • I have a public key ASD5CuWpREPWnZmMgwTu0eusZg0cyIlXDlS5JdMlQy2vZwo

To claim this, I am signing this object:

@marcopeg
marcopeg / MACBOOK-SETUP.md
Last active March 5, 2024 10:36
Notes on setting up my Mac
#/bin/bash
# OSX
# bash <(curl -fsSL https://gist.github.com/marcopeg/cc0fab6c1be1fafb7fd7c4fd87f08ff9/raw)
#
# Linux
# wget -O - https://gist.github.com/marcopeg/cc0fab6c1be1fafb7fd7c4fd87f08ff9/raw | bash -s
#
// This is no elegant code but it works and now I go for a beer :-)
let timeLeft = 0;
function beep(freq, time, callback) {
var ll = require("NRF52LL");
// set up D0 and D1 as outputs
digitalWrite(D0,0);
digitalWrite(D1,0);
// create two 'toggle' tasks, one for each pin
// Customize your badge
const line1 = 'Marco';
const line2 = '@thepeg marcopeg.com';
// Conf program
const schedule = [
{
start: new Date(2017, 10, 6, 14, 0),
End of line ...................................... Alt + 4
Beginning of line ................................ 0 (Zero)
Beginning of the file ............................ g + g
Next word ........................................ e
Previous word .................................... b
Append ........................................... a
Append (end of line) ............................. Shift + a
New line under the current one ................... o
http://www.viemu.com/vi-vim-cheat-sheet.gif