Skip to content

Instantly share code, notes, and snippets.

View Brottweiler's full-sized avatar
🐧
Big up

Christoffer Tibell Brottweiler

🐧
Big up
View GitHub Profile
@Brottweiler
Brottweiler / etckeeper.md
Last active February 24, 2024 21:41
My way of using etckeeper

I have my dotfiles in a directory called ~/dotfiles in my home directory that is the repository. I move my files there, and remove the dot. Then I have a script to symlink them out. But etckeeper works differently...

With etckeeper, you would initialize the repo inside /etc, not a sub directory. This should be fine, but it creates complications because your gitignore needs to be a whitelist instead of a blacklist.

Using etckeeper

Pushing

The first thing that you should do, is create /etc/.gitignore. Etckeeper does this automatically, with some defaults, but you want a whitelist, not a blacklist, so add a single * in the file. This should prevent etckeeper from doing git add for all your files.

@Brottweiler
Brottweiler / syyu.md
Created February 22, 2019 21:58
pacman -Syyu vs. pacman -Syu

pacman -Syu

  • User: Hey server do you have any new packages or updates or changes at all
  • Server: no
  • User: Ok bye

pacman -Syyu

  • User: hey server do you have any new packages or updates at all
  • Server: no
@Brottweiler
Brottweiler / minecraftwiki.user.js
Last active November 17, 2023 21:05 — forked from andre-paulo98/minecraftwiki.user.js
Redirect automatically from the old Minecraft Wiki (Fandom) to the new Wiki https://greasyfork.org/en/scripts/476065-redirect-to-new-minecraft-wiki
// ==UserScript==
// @name simple minecraft.wiki redirect
// @namespace https://gist.github.com/7f4704f8f189c4f08307a6eccc9be621
// @match https://minecraft.fandom.com/wiki/*
// @match https://minecraft-archive.fandom.com/wiki/*
// @icon https://minecraft.wiki/favicon.ico
// @grant none
// @version 0.1
// @description Simple redirect script to the new wiki.
// ==/UserScript==
@Brottweiler
Brottweiler / README.md
Last active September 23, 2023 20:22 — forked from pwign/ImageMagick Minecraft Skin
For converting 64x32 Minecraft skin to 64x64 format using ImageMagick

ImageMagic Mineraft Skin Converter

Usage

chmod +x skin-convert.sh
./skin-convert.sh skin.png
Width Height Standard Divisible by 8
128 72 Yes
256 144 Yes
384 216 Yes
512 288 Yes
640 360 Yes
768 432 Yes
896 504 Yes
1024 576 Yes
@Brottweiler
Brottweiler / README.md
Last active January 24, 2023 05:20
Full block chest model using Enhanced Block Entities mod for Fabric

Full block chests

There are a few resourcepacks out there trying to reimplement the alpha and beta Minecraft full block chest. Usually this is done using Custom Entity Models, either using Optifine or Fabric, but it's still an entity model.

Block model

Instead, we can use a mod called Enhanced Block Entities which turns chests (and other entities) into block models. This by itself makes the chests lag less since they are rendered as a block and not an entity, but we can now easily turn those 14x14 block models into 16x16, and disable the opening animation, to get that alpha/beta feel.

Note: Also works with FastChest since v0.4. FastChest only provides functionality for chests and no other blocks. EBE is still recommended over FastChest

@Brottweiler
Brottweiler / discord.css
Last active August 23, 2022 20:03
Darker discord theme
.theme-dark {
--background-primary: #000;
--background-secondary: #000;
--background-secondary-alt: #000;
--background-tertiary: #000;
--background-floating: #000;
--status-warning-text: #000;
--scrollbar-thin-thumb: #111;
--scrollbar-auto-thumb: #111;
--scrollbar-auto-scrollbar-color-thumb: #111;
@Brottweiler
Brottweiler / launch-options.md
Last active April 23, 2022 12:54
CSGO launch options

Launch settings

Setting Type Description
-novid Option disable intro video
-nojoy Option disable joystick
-softparticlesdefaultoff Option render particles without feathering
-limitvsconst Option limits vertex shaders to 256
-nohltv Option disables Source TV features
+mat_disable_fancy_blending 1 Command disables fancy blending
[Unit]
Description=Empty trash older than 30 days
[Service]
Type=oneshot
ExecStart=/usr/bin/trash-empty 30