Skip to content

Instantly share code, notes, and snippets.

@GrumpyChunks
GrumpyChunks / fixpopclock.sh
Last active April 15, 2023 12:24
Fix for Pop_OS not correctly using the 24 hour clock when the locale is set to a timezone that should default to a 24 hours clock
#!/bin/bash
sudo sed -i "/\[org\/gnome\/desktop\/interface\]/a\clock-format=\'24h\'" /etc/gdm3/greeter.dconf-defaults
gsettings set org.gtk.Settings.FileChooser clock-format 24h
gsettings set org.gnome.desktop.interface clock-format 24h
@GrumpyChunks
GrumpyChunks / bootfont.sh
Last active July 23, 2020 13:35
Command to fix pop!_os bad font during boot
sudo dpkg-reconfigure console-setup
@GrumpyChunks
GrumpyChunks / Windows RDP Client Fix.md
Last active September 15, 2023 05:58
Fix to stop Windows RDP clients from suppressing the remote system when the session is minimised.

Summary

This command will create the required registry entry to prevent RDP clients from suppressing the remote system when the client is minimised.

Why is this needed?

Say for example that you are running caffeine on the remote system to prevent the screen locking, if you then minimise the RDP session, then RDP suppression would normally kick in, which then prevents caffeine from keeping the system unlocked. Similar issues may exist for other software running on the system.

Usage

@GrumpyChunks
GrumpyChunks / Ore Excavation.md
Last active July 15, 2024 13:41
Configuration for the Ore Excavation with an otherwise Vanilla Minecraft set of mods

The following configuration is used in the OreExcavation mod to support the vanilla Minecraft Ores. Note, there are different format files, depending on the verison.

#Common settings for 1.15
[common]
	#How many blocks per tick can be excavated
	#Range: > 1
	Speed = 64
	#Use alternate check for tool validity (e.g. swords on webs)
	"Alt Tools" = false
@GrumpyChunks
GrumpyChunks / Configure Samba.md
Last active July 27, 2020 19:08
How to configure samba on Linux

If not already installed, you need to install samba server. The example below is for Debian (and derivatives)

sudo apt install samba

Ensure samba isn't running before continuing.

sudo systemctl stop samba

Make a backup of the configuration file

Execute the following commands to mount a network drive mapped to Z: in WSL

sudo mkdir /mnt/z
sudo mount -t drvfs Z: /mnt/z
@GrumpyChunks
GrumpyChunks / Win 10 No Internet.md
Created August 3, 2020 22:44
Win 10 Incorrectly Reports no Internet

When Win 10 reports no internet connection, but it is connected, run the following command as an administrator

netsh winsock reset catalog
@GrumpyChunks
GrumpyChunks / .bashrc
Last active September 28, 2020 09:21
This line should be added to .bashrc to give a nice colour bash prompt with three distinct sections. Each section uses a different background colour, and when used with the 'Hack Nerd Regular' font (sudo apt install fonts-hack-ttf), there are nice transitions between the background colours.
PS1="\[\033[0;37m\]\[\033[44m\] \u \[\033[0;34m\]\[\033[43m\]\[\033[1;30m\] \h \[\033[0;33m\]\[\033[42m\]\[\033[0;37m\]\[\033[42m\] \w \[\033[0m\]\[\033[0;32m\] \[\033[0m\]"
@GrumpyChunks
GrumpyChunks / Resolution Switching.md
Created November 13, 2020 16:57
xrandr commands to switch resolutions

The following command switches to 1440x900, scaled at 100%

xrandr --output eDP --auto --mode "1440x900"

The following command switches to 2880x1800, scaled at 200%

xrandr --output eDP --auto --mode "2880x1800"
@GrumpyChunks
GrumpyChunks / gdlauncher.desktop
Created November 22, 2020 10:51
.desktop file for using the GDLauncher on a Linux system
[Desktop Entry]
Version=1.0
Name=GD Launcher
GenericName=GD Launcher
Comment=Minecraft Launcher
Exec=/opt/GDLauncher/GDLauncher-linux-setup.AppImage
StartupNotify=false
Terminal=false
Icon=/usr/share/icons/Papirus-Dark/128x128/apps/minecraft-launcher.svg
Type=Application