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 / 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
@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 / 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
@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)
@Brottweiler
Brottweiler / colors.sh
Created February 22, 2017 22:22
Print tmux colors
for i in {0..255}; do
printf "\x1b[38;5;${i}mcolour${i}\x1b[0m\n"
done
@Brottweiler
Brottweiler / stop_using_kali.md
Last active December 9, 2018 18:48
Whats wrong with Kali Linux?

Whats wrong with Kali Linux?

Basically, it's an expression of my frustration with the hordes of newcomes to Linux who've seen Mr. Robot and think they too can become super hackers by downloading an ISO off of the internet. Kali is a great system, but it's a great system for people who know what they're doing. It breaks numerous rules and praxes which, for a normal desktop user, is devastating.

First of all, it is NOT meant for installation onto a hard drive. It's made for booting as a live USB, doing what you need to, and then shutting down to reset to a clean environment. By default, Kali doesn't do 99% of the things a normal desktop user expects.

Secondly, Kali runs as a single-user root. That means that all programs run with Kali have full system access. It's great for people who know what they're doing (and are booting from a USB, so that any changes don't matter anyway) and need quick access to everything, but it's catastrophic for desktop use. Almost all of the security benefits of Linux go out the

@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.

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.