Skip to content

Instantly share code, notes, and snippets.

View Kqzz's full-sized avatar
⌨️
cd ~

Kqzz Kqzz

⌨️
cd ~
  • United States
  • 07:22 (UTC -04:00)
View GitHub Profile
@Kqzz
Kqzz / .tmux.conf
Created April 24, 2022 04:00
My personal tmux configuration, made for use with alacritty
# Change prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Change split commands to be more intuitive
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

Keybase proof

I hereby claim:

  • I am kqzz on github.
  • I am kqzz (https://keybase.io/kqzz) on keybase.
  • I have a public key ASDuWvcEWysinHJX9aMFHiKzDpvqQ3GaF14b2_LqmXFVHQo

To claim this, I am signing this object:

@Kqzz
Kqzz / msa.go
Created July 19, 2021 11:04
Minecraft Microsoft oauth2.0 implemented in go, doesn't work as is, you'll have to modify it to not be a method of the MCaccount struct.
// READ DESCRIPTION
package main
import (
"bytes"
"context"
"crypto/tls"
"encoding/json"
"errors"
"fmt"
@Kqzz
Kqzz / ask_option.py
Created August 6, 2020 21:49
A very simple python function to ask which option to select from a given list of options
# For this to work you need to run "pip install readchar" for this script to work.
# Also, if you are using this in a project add readchar to your requirements.txt file
import readchar
def ask_option(options):
i = 1
# loop through options and print
for option in options:
print(f"{i}). {option}")
<email>:<pswd>:q1:q2:q3