Skip to content

Instantly share code, notes, and snippets.

View douglasparker's full-sized avatar

Douglas Parker douglasparker

  • Washington
  • 20:32 (UTC -07:00)
View GitHub Profile
@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.
@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 / 1-homelab.sh
Created April 3, 2024 21:40
Benchmark results
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
# Yet-Another-Bench-Script #
# v2024-03-05 #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
Wed Apr 3 09:26:21 PM UTC 2024
Basic System Information:
---------------------------------
@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 / README.md
Last active May 9, 2024 10:22
Disable & Enable MPO via the Windows Registry

Disable & Enable MPO via the Windows Registry

There is a well known issue where GPU drivers are crashing with multi-monitor setups due to an interaction with Windows MPO and both Nvidia and AMD GPUs.

Until this bug is fixed, the only solution is to disable MPO via the Windows Registry.

Disable MPO

To apply the fix, simply run mpo_disable.reg and reboot your computer.

@douglasparker
douglasparker / README.md
Last active December 9, 2022 23:56
BYOND Export is a PHP Function that creates a socket, connects to a remote DreamDaemon Instance, and sends a message that can be received via world.Import().

BYOND Export

BYOND Export is a PHP Function that creates a socket, connects to a remote DreamDaemon Instance, and sends a message that can be received via world.Import().

Dependencies

  • PHP Versions: 4.1, 5.0, 7.0

Contributors

A special thanks to Mobius Evalon and Crispy for their contributions to the structuring of packet data.

server {
listen 80;
server_name overseerr.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name overseerr.example.com;