Skip to content

Instantly share code, notes, and snippets.

@GrumpyChunks
GrumpyChunks / ArchInstallation.md
Last active February 2, 2024 13:37
Arch Linux Installation on a mid-2015 MacBook Pro

Install Arch Linux on a mid-2015 MacBook Pro

This is based upon the LearnLinux.tv guide and this OdinsPlasmaRifle's gist

Assumptions

  • /dev/sda1 will be our EFI partition
  • /dev/sda2 will be an encryprted LVM ext4 filesystem

Installation Steps

@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 / 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 / Ore Excavation.md
Last active May 26, 2022 21:13
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 / readme.md
Last active March 17, 2021 09:01 — forked from benstr/readme.md
Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

@GrumpyChunks
GrumpyChunks / oreexcavation.cfg
Last active December 24, 2020 09:38
This is my personal preferred OreExcavation 1.12.2 Config with vanilla and Thermal Foundation ores
# Configuration file
general {
# Allow players to use shape mining [default: true]
B:"Allow Shapes"=false
# Allows the undo command to overwrite replacables like fluids [default: true]
B:"Allow Undo Replacables"=true
# Use alternate check for tool validity (e.g. swords on webs) [default: false]
@GrumpyChunks
GrumpyChunks / backup.sh
Created November 22, 2020 10:52
Full system backup to external drive mounted on /mnt
sudo rsync -aAXv / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /mnt
@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
@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 / .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\]"