Skip to content

Instantly share code, notes, and snippets.

View okurka12's full-sized avatar
♥️

Vít Pavlík okurka12

♥️
View GitHub Profile
@okurka12
okurka12 / test-tcp-stream.py
Created April 13, 2025 13:49
test for IPK25chat client TCP stream
#
# IPK25chat client TCP stream test
# author: vita v22.0
# date: 13. 4. 2025
# python 3.13.0
#
import socket
ADDRESS = "127.0.0.1"
PORT = 4567

🕵️‍♂️ Spy Mission Using FITstagram (UX Research)

Hi, I'm from Brno University of Technology in the Czech republic and I’d like to ask for your help with my UX research:

Scenario

You work for a secret agency and need to send highly classified materials — photos — to your colleagues. You’ll use FITstagram for this, as it allows you to restrict access to posts to specific users. As a cover, you’ll also upload a public post.

Context

FITstagram is a platform created last semester as a project for the course Information Systems (IIS). It allows users to share photos.

@okurka12
okurka12 / glpk.m
Created April 1, 2025 12:38
GNU Octave - solve linear minimization/maximization problem using glpk
################################################################################
# solve linear minimization/maximization problem using glpk
#
# based on example from:
# https://octave.sourceforge.io/octave/function/glpk.html
################################################################################
# objective function coefficients
c = [12000,9000]';

🕵️‍♂️ Špionážní akce s využitím FITstagramu (UX research)

Ahoj, jsem z FIT VUT a chtěl bych vás poprosit o pomoc s mým UX výzkumem:

Scénář

Pracujete pro tajnou službu a potřebujete vašim kolegům zaslat přísně tajné materiály — fotografie. Využijete pro to FITstagram, který umožňuje omezit přístup k příspěvkům pouze pro konkrétní uživatele. Jako záminku nahrajete i veřejný příspěvek.

Kontext

FITstagram je platforma vznikuvší minulý semestr jako projekt do předmětu informační systémy (IIS). Umožňuje sdílet fotografie.

@okurka12
okurka12 / zadani.txt
Created March 3, 2025 19:40
IJC DU1 zadani
Jazyk C DU1 25.2.2025
----------------------------------------------------------------
Domácí úkol č.1
Termín odevzdání: 25.3.2025
Hodnocení celkem max. 15 bodů
Čtěte pokyny na konci tohoto textu
@okurka12
okurka12 / logging.h
Created February 26, 2025 17:04
Logging macros for ISO C
/*****************
** Vit Pavlik **
** xpavli0a **
** 251301 **
*****************/
/**
* Logging macros
*/
@okurka12
okurka12 / index.html
Created January 26, 2025 15:20
HTML boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<!-- boilerplate -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- site title -->
@okurka12
okurka12 / double-integral.py
Last active December 13, 2024 05:38
calculate a dobule integral using naive approach
#
# calculate a dobule integral using naive approach
# python 3.13.0
#
# analytical solution of the example below is -7
# step 0.0100: -6.9976327434199135 (44 ms)
# step 0.0010: -7.000145573771798 (2.7 s)
# step 0.0001: -7.000002405139909 (4 m 49 s)
#
# possible improvements
@okurka12
okurka12 / suppress-openssl-leaks.md
Created October 22, 2024 04:12
Suppress OpenSSL leaks in valgrind

Suppress leaks from OpenSSL in Valgrind

  1. create a supressions file openssl.supp

  2. run valgrind with the suppressions file valgrind --suppressions=openssl.supp

Suppressions file

{
#!/bin/bash
#
# originally from ima2-sbirka repo
#
# brief:
# ------
#
# A script to convert a single svg file to pdf
# Usage: ./svg2pdf SVGFILE