Skip to content

Instantly share code, notes, and snippets.

View K4CZP3R's full-sized avatar

Kacper Serewiś K4CZP3R

View GitHub Profile
1. Update to 3.60 (DNS: 212.47.229.76)
2. Go to http://henkaku.xyz/
3. Download: https://github.com/TheOfficialFloW/NoNpDrm/releases/download/v1.2/nonpdrm.skprx
4. Download: https://github.com/mmozeiko/pkgi/releases/download/v0.05/pkgi-v0.05.vpk
@K4CZP3R
K4CZP3R / pygame_3dcube.py
Created May 14, 2018 12:50
Project for school
#https://imgur.com/a/AU4mXIt
import pygame, math
def main(w,h,fps):
pygame.init()
pygame.font.init()
pygame.display.set_caption('X-as=UP/DOWN Y-as=LEFT/RIGHT Z-as=O/K')
myfont = pygame.font.SysFont('Arial',16)
screen = pygame.display.set_mode((w,h))
@K4CZP3R
K4CZP3R / Witcher
Last active September 29, 2021 12:32
OstZyc-przesluchane
MieczPrz-przesluchane
KrewElf-przesluchane
[ostzyc,mieczprz,wiekrew,wieczasp,wiechrzest,wiesezonburz]
[x] [-,-,-,-,-,-]Droga, z której się nie wraca
[x] [2,-,-,-,-,-]Ziarno prawdy
[x] [3,-,-,-,-,-]Mniejsze zło
[x] [5,-,-,-,-,-]Kraniec świata
[x] [6,-,-,-,-,-]Ostatnie życzenie
[] [-,-,-,-,-,17]Sezon burz
@K4CZP3R
K4CZP3R / main.ino
Created September 4, 2019 07:57
fontys_tech_challenge_5_1_1.ino
int count = 0;
void setup(){
Serial.begin(9600);
}
void loop(){
count += 1;
Serial.println(count);
delay(1000);

Keybase proof

I hereby claim:

  • I am k4czp3r on github.
  • I am kserewis (https://keybase.io/kserewis) on keybase.
  • I have a public key ASCeZRaAk1Kj0QPcu3ePgrCpmQXvnbCCXc4QDAeHueP6TQo

To claim this, I am signing this object:

#!/bin/bash
NODE_EXPORTER_VERSION="1.6.1"
NODE_EXPORTER_USER="node_exporter"
BIN_DIRECTORY="/usr/local/bin"
# Create user if not exists
id -u ${NODE_EXPORTER_USER} &>/dev/null || useradd --no-create-home --shell /bin/false ${NODE_EXPORTER_USER}
# Check if successful
<?xml version="1.0" encoding="UTF-8"?>
<Response></Response>
@K4CZP3R
K4CZP3R / hass-widget.js
Created October 24, 2023 21:17
Scriptable Home Assistant widget which shows entity state
// Scriptable HomeAssistant Widget
const hassUrl = "https://.....com";
const hassToken =
"eyJhbGciOi....";
const sensors = {
"sensor.ewelink_th01_woonkamer_temperature_2": "Woonkamer",
"sensor.ewelink_th01_kacper_temperature_2": "Kacper",
};
@K4CZP3R
K4CZP3R / ns_factuur_extract.py
Created November 13, 2023 22:14
This script converts pdf "factuur" from https://www.ns.nl/mijnns#/betaaloverzicht to JSON array with date, transporter, discount, from, to and price. Hacky, but it works. Station parsing needs to be done better.
import pytesseract # type: ignore
from PIL import Image # type: ignore
from time import sleep
import re
import fitz # type: ignore
import json
import glob
for p in glob.glob("*.pdf"):
pdf_file = fitz.open(p)
@K4CZP3R
K4CZP3R / timeular-widget.js
Created November 18, 2023 23:23
Scriptable widget which shows how much you will get on your payday using Timeular.
const CONFIG = {
url: "https://api.timeular.com/api/v3/",
token: "",
loanPerHour: 69,
ignoreActivities: ["817556"], // Like Break activity
plannedActivities: ["1463431"], // Like personal activity used for planning (not visible by employer)
};
const units = {
year: 24 * 60 * 60 * 1000 * 365,
month: (24 * 60 * 60 * 1000 * 365) / 12,