Skip to content

Instantly share code, notes, and snippets.

""" Game fix for FFXIV
"""
#pylint: disable=C0103
from protonfixes import util
import os
from subprocess import call
import sys
def main():
#!/bin/bash
export CURDIR="$(cd $(dirname $0); pwd -P)"
export PROTON_VER=Proton-6.21-GE-2
export WINE="$CURDIR/$PROTON_VER/files/bin/wine"
export WINEPREFIX="$CURDIR/prefix"
export WINEARCH=win64
export PATH="$CURDIR/$PROTON_VER/files/bin:$PATH"
export XL_WINEONLINUX=true
export DXVK_FRAME_RATE=0
@Centzilius
Centzilius / mm-gitlab-ldap-auth.py
Created October 19, 2021 01:03
Mattermost Auth Token extractor for MM + GitLab + LDAP
from requests import session
import re
username = ""
password = ""
gitlab_url = "https://gitlab.example.com"
mattermost_url = "https://mattermost.example.com"
sess = session()
@Centzilius
Centzilius / cheats.md
Created May 21, 2018 22:32
Personal Cheatsheet

VIM

let skip_defaults_vim=1
syntax on
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab

ZSHRC

GRML

All Users

Keybase proof

I hereby claim:

  • I am centzilius on github.
  • I am centzilius (https://keybase.io/centzilius) on keybase.
  • I have a public key ASAepKyG9dfjKQIhDRYIR2PgKScGk8TAAnqpxe-i-MTKsgo

To claim this, I am signing this object:

while not (0.1 + 0.2 == 0.3):
pass
# -*- coding: cp1252 -*-
# http://fishis.de/wiki/index.php/Verschl%C3%BCsselte_Pickle-Datei
import pickle
import base64
def objekt_speichern(objekt, dateiname="pickle.txt"):
datei = file(dateiname, "w")
text = pickle.dumps(objekt)
chiffre = base64.b64encode(text)
#!/usr/bin/env python3
from subprocess import call
from os import listdir
class File:
def __init__(self, path, start, end):
self.path = path
self.start = start
self.end = end
@Centzilius
Centzilius / isbn.py
Created September 2, 2014 17:21
ISBN Checknumber Calculator
# -*- coding: UTF-8 -*-
import sys
class InvalidInput(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return self.error
try:
function aurinstall {
curl https://aur.archlinux.org/packages/${1:0:2}/${1}/${1}.tar.gz | tar xz
cd ${1}
makepkg -scfi
}