Skip to content

Instantly share code, notes, and snippets.

View dominique-mueller's full-sized avatar
🤓
Working hard or hardly working

Dominique Müller dominique-mueller

🤓
Working hard or hardly working
View GitHub Profile
@dominique-mueller
dominique-mueller / windows-gaming-performance.md
Last active January 19, 2021 22:11
A short todo list for improving gaming performance on Windows systems.
  • Force "maximum performance" mode in NVIDIA control panel
  • Disable Xbox Game Bar & Capture in Windows Settings
  • Disable NVIDIA Highlights (and overlay, if not used)
  • Exclude game & game save folders in Windows Defender
@dominique-mueller
dominique-mueller / migrate-git-master-to-main.md
Last active April 13, 2021 16:45
Make the switch from master to main, quick and easy.

Migration of remote

In your cloned repository:

  1. Switch to "master" branch:
    git checkout master
  2. Rename the "master" branch to "main" by running:
    git branch -m master main
  3. Push new "main" branch to remote by running:
    git push -u origin main
  4. If "master" was the default branch (often develop acts as the default branch): In the GitHub project settings, change the default branch from "master" to "main"
  5. Cleanup old "master" branch by running:
    git push origin --delete master
@dominique-mueller
dominique-mueller / android-tv-remote-install-apk.md
Last active November 12, 2023 10:01
Remote install apps on Android TV. Useful for apps that do not exist in your country, e.g. Hulu or HBO Max in Germany.

Instructions

  1. Download and install adb from here: https://androidmtk.com/download-minimal-adb-and-fastboot-tool
  2. Add installation folder to environment variables
  3. Run adb connect <IP> (confirm on TV when first time connecting)
  4. Uninstall existing apk (if applicable) via Android UI
  5. Run adb install <path to apk file> (wait until "Success")

Apps

@dominique-mueller
dominique-mueller / npm-update.bat
Last active January 19, 2021 22:12
Update npm using npm is bugged on Windows, this little scripts helps out instead.
rem see https://github.com/coreybutler/nvm-windows/issues/300
@echo off
SETLOCAL EnableDelayedExpansion
if [%1] == [] (
echo Pass in the version you would like to install, or "latest" to install the latest npm version.
) else (
set wanted_version=%1
@dominique-mueller
dominique-mueller / linux-switch-timezone.sh
Last active January 19, 2021 22:13
Switch timezone on linux systems. Very helpful when running tests on a CI and verifying that timezone logic works properly.
# Switch the timezone on a linux system
#
# I use this to run unit tests on the CI for multiple times with different timezones (at least 2)
# Tested on a node alpine docker container on GitLab CI
# Timezone values: "UTC", "Europe/Berlin", ...
# Fetch timezone data
- apk add tzdata
# Log out number of timeszones (debug)
Put the following into you ".gitconfig" file (in your home folder).
Taken from <http://stackoverflow.com/questions/1838873/visualizing-branch-topology-in-git/34467298#34467298>
[alias]
lg = !"git lg3"
lg1 = !"git lg1-specific --all"
lg2 = !"git lg2-specific --all"
lg3 = !"git lg3-specific --all"
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'