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 / install-postgres.md
Created May 7, 2025 09:20
Instructions for installing and running PostgreSQL locally

How to install + setup PostgreSQL (on Debian Linux)

Following steps are for starting a PostgreSQL database locally on your machine and accessing it as a postgres user.

Install the package

sudo apt install postgresql

  • note down the version with psql --version
@okurka12
okurka12 / video-to-gif.sh
Created May 6, 2025 08:38
convert mp4 video to gif and optionally remove green background
#!/bin/bash
#
# convert mp4 video to gif and optionally remove green background
#
# created: early 2025
# ffmpeg version 5.1.6-0+deb12u1
# ImageMagick 6.9.11-60
@okurka12
okurka12 / generate-gpg-keypair.sh
Created April 29, 2025 10:37
a small wrapper around gpg --full-generate-key
#!/bin/bash
#
# Generate a key-pair of PGP keys using gpg
# -----------------------------------------
# ...a small wrapper around gpg
# ...date of creation: April 2025
# ...author: okurka12
#
#
# How it works
@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 -->