Skip to content

Instantly share code, notes, and snippets.

@yslinear
yslinear / update_author_mailmap.py
Created February 6, 2025 00:42
A Python script for batch updating Git commit author information in repository history. This tool uses git-filter-repo to safely rewrite commit history, updating both author and committer information for all commits in the current branch. Features include interactive confirmation, comprehensive logging, error handling, and clear progress indicat…
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import subprocess
import shutil
import logging
import textwrap
from typing import Optional, Tuple
@yslinear
yslinear / generate_patches.sh
Created November 25, 2024 07:00
A shell script that backs up files modified between a specified Git commit and HEAD.
#!/bin/bash
# Check if git hash is provided
if [ $# -eq 0 ]; then
echo "Please provide a git hash"
echo "Usage: ./generate_patches.sh <git-hash>"
exit 1
fi
start_hash=$1
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
jobs:
build_and_deploy:
@yslinear
yslinear / deploy.yml
Last active November 26, 2022 19:41
Deploy Laravel to AWS Elastic Beanstalk
name: Laravel
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
deploy-aws-elastic-beanstalk: