Skip to content

Instantly share code, notes, and snippets.

View Kahnix's full-sized avatar

Kacper Daniel Kahnix

  • Rocketmakers
  • Bath, UK
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kahnix on github.
  • I am kahnix (https://keybase.io/kahnix) on keybase.
  • I have a public key ASBC_f_Z7XG_IM7cqv0r0z-CJoXCFm1isnXxvS-60lpbGQo

To claim this, I am signing this object:

@Kahnix
Kahnix / How to Glitch Art.md
Last active October 23, 2020 03:01
A short guide on how to make your first glitch art, including advanced databending techniques through the use of GIMP and Audacity.

Advanced Glitches

Programs I use:

GIMP - Because its free, available to anyone and has a very useful features for glitching

Audacity - Software I use for the actual glitching process, also free and cross platform

Process:

@Kahnix
Kahnix / Proton Mounting script
Last active March 31, 2019 10:00
Used to mount the proton setup for a game to be used for other programs through wine64. Takes GAMEID as arguement
#! /bin/bash
# Proton Mounting Script -Beta-
#Export Mounting
export WPATH="~/.steam/steam/steamapps/common/Proton 3.7/dist"
export WINEVERPATH=$WPATH
export PATH=$W/bin:$PATH
export WINESERVER=$WPATH/bin/wineserver
export WINELOADER=$WPATH/bin/wine
export WINEDLLPATH=$WPATH/lib/wine/fakedlls
@Kahnix
Kahnix / HiDPI for TTY
Created March 7, 2019 05:16
Fixes HIDPI readability issues on my laptop when using a tty, theres probably a better way to do this but it works if I slap it into my bashrc.
#!/bin/bash
#Requires terminus-fonts
if [[ "$(tty)" == /dev/tty[0-9] ]]; #Determine if the user is using a tty
then setfont ter-132n; #Set font to one thats friendlier with a tty
fi
def read_file():
employee_data = {}
try:
with open('salesdata.csv') as csv_file:
csv_reader = csv.reader(csv_file,skipinitialspace=True)
for row in csv_reader:
employee_data[row[0]]=row[1]
return(employee_data)
@Kahnix
Kahnix / main.py
Last active March 15, 2018 16:11
Theatre Booking System
#!/usr/bin/env python3.6
import csv
def read_file(file):
"""Reads the CSV into an array"""
datatest = {}
with open(f"{file}",'r') as file_object:
filereader = csv.reader(file_object, delimiter=',', skipinitialspace=True)
for row in filereader: