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
[Unit]
Description=Empty trash older than 30 days
[Service]
Type=oneshot
ExecStart=/usr/bin/trash-empty 30
@Brottweiler
Brottweiler / screen-tearing.md
Last active November 28, 2021 11:34
Screen tearing in Linux

Screen Tearing in Linux

The purpose of this gist is to document my experiences with screen tearing in Linux.

Information

  • Archlinux
  • i5-4460 (4) @ 3.4GHz
  • GeForce GTX 750 Ti

When you've used Windows your whole life, Linux feels like the first time you went in for a kiss with a girl. Your heart is beating but you're trying to remain calm. You're not sure what it will be like, you're nervous. A part of you wants to run, but your legs have stopped working. Your knee is shaking, and then you're kissing. It suddenly isn't as wonderful as you thought, nor is it any bad at all. It just is. But then you want more, and more, and a month later you're hugging and kissing and touching and thinking but you're not going all the way. Then you leave her for another girl who puts out in the ways you want.

[Desktop Entry]
Name=Simple Terminal
GenericName=Terminal
Comment=Suckless terminal emulator for X
Exec=st -t "Simple Terminal"
Terminal=false
Type=Application
Encoding=UTF-8
Icon=utilities-terminal
Categories=System;TerminalEmulator;
GIMP Palette
Name: Minecraft Chat Colors
Columns: 16
#
0 0 0 Black
0 0 170 Dark Blue
0 170 0 Dark Green
0 170 170 Dark Aqua
170 0 0 Dark Red
170 0 170 Dark Purple
@Brottweiler
Brottweiler / packs.md
Created December 11, 2020 16:27
List of resource packs optimized for PvP (from Overcast)
@Brottweiler
Brottweiler / terminals.md
Last active May 23, 2020 19:32
Open a terminal with a selection box

Requirements

  • Your terminal emulator of choice
  • slop

Termite

termite --geometry=$(slop)
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<!-- Change the string in the family tag to whatever font -->
<family>serif</family>
<prefer><family>Noto Serif</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
@Brottweiler
Brottweiler / preset.md
Last active May 21, 2019 18:20
Minecraft Beta Customized Terrain Generator Preset "Neo-Beta"

Presets

Neo-Beta Preset

{"coordinateScale":684.412,"heightScale":684.412,"lowerLimitScale":512.000,"upperLimitScale":512.000,"depthNoiseScaleX":200.000,"depthNoiseScaleZ":200.000,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"baseSize":8.5,"stretchY":12.0,"biomeDepthWeight":0.0,"biomeDepthOffset":0.370,"biomeScaleWeight":0.0,"biomeScaleOffset":0.5,"seaLevel":64,"useCaves":true,"useDungeons":true,"dungeonChance":8,"useStrongholds":false,"useVillages":false,"useMineShafts":false,"useTemples":false,"useRavines":false,"useWaterLakes":true,"waterLakeChance":4,"useLavaLakes":true,"lavaLakeChance":80,"useLavaOceans":false,"fixedBiome":-1,"biomeSize":2,"riverSize":5,"dirtSize":33,"dirtCount":20,"dirtMinHeight":0,"dirtMaxHeight":128,"gravelSize":33,"gravelCount":10,"gravelMinHeight":0,"gravelMaxHeight":128,"graniteSize":33,"graniteCount":10,"graniteMinHeight":0,"graniteMaxHeight":80,"dioriteSize":33,"dioriteCount":10,"dioriteMinHeight":0,"dioriteMaxHe
@Brottweiler
Brottweiler / st.txt
Created March 26, 2019 18:30
st crash error
erresc: unknown private set/reset mode 1005
X Error of failed request: BadLength (poly request too large or internal Xlib length error)
Major opcode of failed request: 139 (RENDER)
Minor opcode of failed request: 20 (RenderAddGlyphs)
Serial number of failed request: 30165
Current serial number in output stream: 31491