Skip to content

Instantly share code, notes, and snippets.

View Plaenkler's full-sized avatar
🏠
Working from home

Simon Lukas Plaenkler

🏠
Working from home
View GitHub Profile
@Plaenkler
Plaenkler / clone_all_repos.md
Last active April 16, 2024 13:51
Clone all your repositories at once

Challenge

All repositories of any user or organization should be cloned at once

Solution

  1. Install the GitHub CLI and then open a terminal
  2. Authenticate yourself at GitHub with the command "gh auth login"
  3. Write a script that clones all Repos from a given user or organisation
@Plaenkler
Plaenkler / GCC-Not-Found-Solution.md
Last active December 28, 2023 11:48
Golang - C compiler "gcc" not found

Challenge

cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

Solution

1. Install TDM-GCC http://tdm-gcc.tdragon.net/download
2. System Variables > PATH > add "C:\TDM-GCC-64\bin"
@Plaenkler
Plaenkler / Reset-Git-Repository.md
Last active December 28, 2023 11:48 — forked from heiswayi/repo-reset.md
Git - reset/delete commit history of your repository

Challenge

Delete all commits and keep the code in its current state.

Solution

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH