Skip to content

Instantly share code, notes, and snippets.

View saschaludwig's full-sized avatar

Sascha Ludwig saschaludwig

View GitHub Profile
@saschaludwig
saschaludwig / update_gitlab_token_expiry.md
Created August 11, 2026 08:51
Update/Unexpire expired Gitlab Access Tokens for Users and Projects

GitLab Rails Console: Unexpire Access Tokens

These commands can be used from the GitLab Rails console to extend the expiration date of access tokens.

⚠️ Warning: These commands modify token expiration dates directly in the GitLab database. Use them carefully, especially in production environments. Consider backing up your database and verifying the affected tokens before running update_all.

User Access Tokens

To extend the expiration date of all personal access tokens belonging to a specific user:

@saschaludwig
saschaludwig / hunde_haufen.gcode
Last active November 8, 2024 17:04
Anycubic I3 Mega Hunde_haufen Start-Gcode
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
M140 S60 ;start heating the bed to 60
M104 S130 T0 ;start heating T0 to 130
M117 Pre-Heating...
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z7 F600 ;move Z to 7mm
@saschaludwig
saschaludwig / index.php
Last active February 27, 2018 13:16
mediawiki to dokuwiki url redirector
<?php
// mediawiki to dokuwiki url redirector
// use .htaccess to rewrite all requests to this file:
// RewriteEngine on
// RewriteCond %{REQUEST_FILENAME} !-f
// RewriteCond %{REQUEST_FILENAME} !-d
// RewriteRule ^(.*)$ /wiki/index.php [NC,L,QSA]
$prefix = '/wiki';