To replace the whole file content by clipboard in VIM
:%d
cmd+v
:w
| def show-me-git-change-logs [ | |
| from_branch: string | |
| to_branch: string = "master" | |
| ] { | |
| print $"\nChangelogs for ($from_branch)...($to_branch):\n" | |
| # Recent subjects on the target branch (fetched once instead of per-commit) | |
| let recent = git log -n 100 --no-merges --pretty=format:%s $to_branch | lines | |
| let changelogs = ( |
| Privacy Policy for YouTube Listen Mode | |
| Effective Date: 2025 Dec | |
| 1. Introduction | |
| Thank you for using my extension. We are committed to protecting your privacy. This Privacy Policy explains that we do not collect, store, or share any of your personal information or usage data. | |
| 2. Data Collection and Use | |
| We do not collect any user data. | |
| No Personal Information: We do not collect names, email addresses, or any other personally identifiable information. |
| // | |
| // GridTable.swift | |
| // | |
| // Created by Vuong Bui on 6/28/25. | |
| // | |
| import SwiftUI | |
| // MARK: - Data Models | |
| struct TableCell: Identifiable { | |
| let id = UUID() |
| # To use it: | |
| # show_me_git_change_logs release-v2.38.0 | |
| # show_me_git_change_logs release-v2.38.0 another_branch | |
| function show_me_git_change_logs() { | |
| fromBranch=${1} | |
| toBranch=${2:-master} | |
| echo "Here are the changelogs for origin/${fromBranch}...origin/${toBranch}\n" | |
| # Sort and add bullet for each item as well | |
| git log --oneline --no-merges --pretty=format:%s origin/${fromBranch}...origin/${toBranch} | sort | sed 's/^/- /' | |
| } |
To replace the whole file content by clipboard in VIM
:%d
cmd+v
:w
| #!/bin/bash | |
| RED='\e[1;31m' | |
| BOLD='\e[0;1m' | |
| NC='\e[0m' | |
| MESSAGE=$(cat $1) | |
| COMMIT_FORMAT="^(?i:build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|breaking change)\(.*\)?:?\ .*$" | |
| if ! grep -E "$COMMIT_FORMAT" <<< "$MESSAGE"; then |
| #!/usr/local/bin/php | |
| <?php | |
| // Inspired from https://gist.github.com/Epskampie/427c512722b8e6c4cbf5f1340b87986b | |
| // To use this script: | |
| // - Change #!/usr/local/bin/php to your PHP binary path | |
| // - chmod +x php-cs-fixer-std.php | |
| // - Make symlink: ln -s ~/Downloads/php-cs-fixer-std.php /usr/local/bin/php-cs-fixer-std | |
| // - Use: php-cs-fixer-std fix --rules=@Symfony src/PhpFile.php | |
| // - This supports only one file and --debug flag to see the file content before and after the fix |
brew install fishcurl -L https://get.oh-my.fish | fish
To not have "data" as root level but just pure array of data.