Skip to content

Instantly share code, notes, and snippets.

View Ramo-Y's full-sized avatar
:octocat:

Ramazan Yilmaz Ramo-Y

:octocat:
View GitHub Profile
@Ramo-Y
Ramo-Y / ExtractAllZipsRecursively.ps1
Created May 14, 2024 14:59
Extract all zips recursively using PowerShell
<#
.SYNOPSIS
Extracts all zip files in a folder and subfolders
.DESCRIPTION
This script extract all zips in a folder, it's subfolders and zips within the extracted folders
.PARAMETER rootDir
Root directory where the extracting should start
#>
[CmdletBinding()]
@Ramo-Y
Ramo-Y / AppendCreationDateToFolders.ps1
Last active April 13, 2024 13:33
This script appends the creation date to a folders name in the ISO8601 format (yyyy-MM-dd) if it's not already named like this
<#
.SYNOPSIS
Append creation date to folders
.DESCRIPTION
This script appends the creation date to a folders name in the ISO8601 format (yyyy-MM-dd) if it's not already named like this
.PARAMETER rootDir
Root directory where the renaming should start
#>
[CmdletBinding()]
@Ramo-Y
Ramo-Y / delete-all-workflow-runs.md
Last active May 16, 2024 12:10
delete-all-workflow-runs
  1. Install GitHub cli (https://github.com/cli/cli?tab=readme-ov-file#windows)
  2. Navigate to your local repository via PowerShell
  3. Type following command to delete all runs:
gh run list --json databaseId -q '.[].databaseId' |
ForEach-Object {
gh api "repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/$_" -X DELETE
}

It will delete up to 20 runs at a time

@Ramo-Y
Ramo-Y / ReadMe.md
Last active October 1, 2023 08:16
3D-Design-Printing-Workshop
@Ramo-Y
Ramo-Y / GitSnippets.md
Last active August 18, 2024 11:15
GitSnippets

Show all branches ordered by last commit

for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r

Git - There are too many unreachable loose objects

How to solve the "too many dangling objects" problem?

git fsck