Skip to content

Instantly share code, notes, and snippets.

View douglasparker's full-sized avatar

Douglas Parker douglasparker

  • Washington
  • 06:29 (UTC -07:00)
View GitHub Profile
@douglasparker
douglasparker / Final Fantasy: XIV - Sanctuary Farm.ahk
Created March 27, 2023 03:43
[AHK] Final Fantasy: XIV - Sanctuary Farm: An AutoHotkey script for farming your Island Sanctuary.
#SingleInstance Force
#InstallKeybdHook
SendMode Input
DetectHiddenWindows, On
SetKeyDelay , 50, 30, ; 50ms is the default delay between presses, 30ms is the press length
if !A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%"
ExitApp
@douglasparker
douglasparker / gist:042fd88f7181f2c642aae50356328b94
Created June 5, 2024 07:01
Extend GitLab Personal Access Tokens

Extend GitLab Personal Access Tokens

Due to GitLab being bastards-

docker exec -it gitlab gitlab-rails console

PersonalAccessToken.active.where(user_id: (User.find_by_username "douglasparker")).update_all(expires_at:100.years.from_now)
@douglasparker
douglasparker / gist:90324b2e142a4b5d51112868f80da454
Created June 5, 2024 07:01
Replace Git Author Information

Replace Git Author Information

This gist makes it extremely easy to replace git author information by rewriting your git commit history.

Note

We make use of the git-filter-repo dependency because git filter-branch has a plethora of pitfalls.

Warning

  • Every commit made by $GIT_OLD_NAME will be replaced with $GIT_NEW_NAME.
  • Every commit made by $GIT_OLD_EMAIL will be replaced with $GIT_NEW_EMAIL.