Skip to content

Instantly share code, notes, and snippets.

@tomasruud
tomasruud / ttox.js
Last active February 6, 2024 16:36
black = "#3E3635";
red = "#BD4E36";
green = "#617934";
yellow = "#896D35";
blue = "#4C6EBF";
magenta = "#9856B1";
cyan = "#4C6EBF";
white = "#D6D4D4";
lightBlack = "#655E5C";
lightRed = "#F4AB9B";
jQuery(".collapse").show()
(function($) {
$(document).ready(function() {
$(".collapse").show();
window.loaded = true;
})
})(jQuery)
.collapse {
display: block !important;
}
body, html, p, span, div {
background-color: hotpink !important;
}
@tomasruud
tomasruud / benq-pd2725u-flicker-fix.md
Created January 28, 2022 13:02
Benq PD2725u monitor flickering/interlacing fix

Benq PD2725u monitor was causing flickering/interlacing artifacts on MacBook Air M1. Suggested fix from Benq support.

What you can try against the error that you experience is the following:

  1. Go to the Apple menu > System Preferences.
  2. Select "Displays"
  3. Select the "Night Shift" tab
  4. Turn off the "Schedule" option by selecting "Off" from the drop-down menu and unchecking "Manual: Turn on until tomorrow".
  5. Wait for 20-30 minutes until the flicker disappears.
@tomasruud
tomasruud / go-private.md
Last active November 19, 2021 14:10 — forked from MicahParks/go get private GitLab with group and subgroup (Golang modules).md
go get private GitLab with group and subgroup (Golang modules)

Problem

The go command line tool needs to be able to fetch dependencies from your private GitLab, but authenticaiton is required.

This assumes your private GitLab is hosted at gitlab.com/my-organization, and that you are using GO version >=1.17.

Environment variables

The following environment variables are recommended:

export GOPRIVATE=gitlab.com/my-organization
@tomasruud
tomasruud / spotify-fullscreen-fix.md
Last active July 5, 2023 15:26
Fixing Spotify stuck in full screen on Linux

For apt version:

sed -i '/app.window/d' $HOME/.config/spotify/prefs

For Snap version:

sed -i '/app.window/d' $HOME/snap/spotify/current/.config/spotify/prefs
@tomasruud
tomasruud / spotify-snap-ubuntu-18-stuck-fullscreen-fix.md
Created February 20, 2020 14:57
Snap installed Spotify on Ubuntu 18.04 stuck in full screen mode fix
  1. Open the file ~/snap/spotify/current/.config/spotify/prefs in a text editor.
  2. Remove all lines starting with app.window.position.
  3. Restart Spotify
@tomasruud
tomasruud / garmin-iq-sdk-ubuntu-18.04.md
Created January 22, 2020 12:04 — forked from mysiar/garmin-iq-sdk-ubuntu-18.04.md
Garmin IQ SDK on Ubuntu 18.04
@tomasruud
tomasruud / clear-node_modules-folders.md
Last active August 7, 2019 07:29
Clear all node_modules folders recursively