Skip to content

Instantly share code, notes, and snippets.

View Alekseyyy's full-sized avatar
👩‍💻
fucking irate

Aleksey Alekseyyy

👩‍💻
fucking irate
View GitHub Profile
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands
View repo-reset.md

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

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

# Add all the files:
git add -A
@borzacchiello
borzacchiello / DecompilerExporter.java
Last active February 7, 2024 09:03
Ghidra script to export C pseudo-code on multiple files, including defined types
View DecompilerExporter.java
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software