Skip to content

Instantly share code, notes, and snippets.

View EscVector's full-sized avatar

EscVector EscVector

View GitHub Profile
@EscVector
EscVector / gist:da320bb712844136a76e89167185f92b
Last active July 13, 2024 09:58
Curl Fun with Google Drive - File Uploads
# Script to upload file to Google Drive using Device Authorization
# https://developers.google.com/identity/protocols/oauth2/limited-input-device
# Authorization is granted by entering the User_Code and accepting via https://google.com/device
# this is a manual step that must be completed
# Prerequisite - Google Project Device Credentials Client_id and Client_Secret and google.drive API Enabled
#!/bin/bash
# https://developers.google.com/identity/protocols/oauth2/limited-input-device
@EscVector
EscVector / gist:34430d3987cedeb609a257c5aafdb871
Created November 20, 2024 22:22
Reset Github History to a Specifc Time
### This fully erases git hub history
### Make sure to backup/copy files to a safe place before running
SET GIT_AUTHOR_DATE="2024-11-18 16:44:44"
SET GIT_COMMITTER_DATE="2024-11-18 16:44:44"
git clone https://github.com/BitKind/repo-to-reset.git
cd repo-to-reset
git checkout --orphan datafreedom
git rm -rf .
copy C:\Users\projects\original-repo-to-reset C:\Users\projects\repo-to-reset