Skip to content

Instantly share code, notes, and snippets.

@axute
axute / sshx.sh
Created September 10, 2025 08:54
ssh command forwarding with bitwarden agent for tools like intellij
#!/bin/bash
ssh-agent -k
unset SSH_AUTH_SOCK
unset SSH_AGENT_PID
# Pfad zum gewünschten SSH-Agent-Socket
export SSH_AUTH_SOCK="$HOME/.bitwarden-ssh-agent.sock"
# Alle übergebenen Argumente an ssh weiterreichen
@axute
axute / spryker-cli.sh
Last active July 10, 2025 10:02
Spryker-CLI with .env file
docker exec -it -u root emv_spryker_b2c_dev_cli_1 apk add dotenv
alias spryker-cli='docker/sdk cli dotenv run'
@axute
axute / FenrisDebug_summary_why_game_died.txt
Last active February 4, 2025 13:35
This is a summarized log file of the FenrisDebug files from the Diablo IV folder
1738669574 E 2025.01.31 18:49:34.060805 0 [Game] [19-49-34][streamline][error][tid:28976][0s:000ms:738us]file.h:94[open] File 'C:\ProgramData/NVIDIA/NGX/models/nvngx_config.txt' does not exist
1738669574 E 2025.01.31 19:44:29.038487 139179 [Game] [DataBinding] ERROR: DataStoreImpl::DeleteTemplateIfUnused Failed to delete template data from the DataStore! ErrorCode: BindingResult::kCouldNotFindData (x5)
1738669574 E 2025.01.31 19:44:51.763126 0 [Game] [20-44-51][streamline][error][tid:28820][0s:000ms:459us]file.h:94[open] File 'C:\ProgramData/NVIDIA/NGX/models/nvngx_config.txt' does not exist
1738669574 E 2025.01.31 19:54:16.535594 22650 [Game] [DataBinding] ERROR: DataStoreImpl::DeleteTemplateIfUnused Failed to delete template data from the DataStore! ErrorCode: BindingResult::kCouldNotFindData (x5)
1738669574 E 2025.01.31 19:54:38.568614 0 [Game] [20-54-38][streamline][error][tid:11476][0s:000ms:453us]file.h:94[open] File 'C:\ProgramData/NVIDIA/NGX/models/nvngx_config.txt' does not exist
1738669574 E 2025.
@axute
axute / digitalocean_fritzbox.php
Created February 26, 2022 16:59
PHP Class for update DigitialOcean DNS Entry with Fritzbox-WAN-IP (if required, via different local interfaces)
#!/usr/local/bin/php
<?php
abstract class basics {
const Logfile = __FILE__.'.log';
protected ?string $interface;
protected int $timeout = 15;
protected ?string $ip = null;
public function log(string ...$message): self
{
@axute
axute / run.with.env.sh
Created January 15, 2021 21:50
Run Bash Command with specific .env file
#!/usr/bin/env bash
# What does this script?
# it unset all environment variables from the .env-file
# than it sets all variables, except those without "="
# than it execute the argument list after the first argument
#
# example .env.dist
# 01| # this is a comment will be removed
# 02| APP_ENV=local # this comment will also be removed
# 03| MY_NEW_SECRET=somePassword
@axute
axute / branched.env.sh
Last active July 6, 2021 11:07
Exports branch-based variables to new variable without branch name
#!/usr/bin/env bash
# What does this script?
# it copies branch-named variables to non-branch-named variables
# conditions:
# - the branch name must be uppercase at the end of the variable
# - the branch "master" will be converted to "production"
#
# example:
# if the environment variable REDIS_HOST_PRODUCTION is defined
# and CIRCLE_BRANCH is "master" (will be converted to "production")
@axute
axute / keybase.md
Last active November 19, 2020 09:59

Keybase proof

I hereby claim:

  • I am axute on github.
  • I am axute (https://keybase.io/axute) on keybase.
  • I have a public key ASBbeAZnpCvk0FViPJ54lbebKj5fPdUEx117H1vZKPzjNAo

To claim this, I am signing this object: