Skip to content

Instantly share code, notes, and snippets.

View Floberrot's full-sized avatar
🎯
Focusing

Florian Floberrot

🎯
Focusing
  • Swikly
  • Lyon
View GitHub Profile
@Floberrot
Floberrot / switch-branch.sh
Created October 16, 2025 06:34
Allow you to switch between you local branches easily and without typing or searching branch names
git fetch -p
selected=$(git branch --format="%(refname:short)" | gum choose --height 20 --header "Select a branch:")
[ -z "$selected" ] && exit 0
git switch "$selected" && gum style --foreground 46 "✅ Switched to $selected"
@Floberrot
Floberrot / delete-gone-branches.sh
Last active October 16, 2025 06:32
allow you with gum to delete all or a selection of gone branches on remote
#!/usr/bin/env bash
# This bash check all remote branches deleted to delete them locally
# You can delete them totally or select some of them.
# @author Floberrot
# @authorUrl https://github.com/Floberrot
# Fetch remote changes and prune deleted branches
git fetch --prune
@Floberrot
Floberrot / my-prs.sh
Last active October 16, 2025 06:36
Get your PR in markdown linked and with a status from one repo, for x days
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Mes dernières PR(s)
# @raycast.mode silent
# if you want to see processing because it can be long, try to change raycast.mode
# Optional parameters:
# @raycast.icon 🔄
// ==UserScript==
// @name Add review information on Github PR list
// @version 1
// @include https://github.com/*
// @grant none
// @author https://gist.github.com/mRoca
// ==/UserScript==
const hovercardSubject = document.querySelector('meta[name=hovercard-subject-tag]').getAttribute('content');
// ==UserScript==
// @name GitHub Mark File Viewed
// @version 0.1
// @description Mark file as "viewed" on GitHub PR UI when hovering and pressing 'Escape' key
// @match https://github.com/*
// @author https://gist.github.com/mRoca
// ==/UserScript==
function markFileAsViewed() {