Skip to content

Instantly share code, notes, and snippets.

@GrumpyChunks
GrumpyChunks / ArchInstallation.md
Last active May 16, 2024 19:17
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 / 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\]"
@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

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 / 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