Skip to content

Instantly share code, notes, and snippets.

View arkq's full-sized avatar
Mr snowman look and see...

Arkadiusz Bokowy arkq

Mr snowman look and see...
View GitHub Profile
@arkq
arkq / rundom.c
Last active August 29, 2015 14:10
Run given command at random time intervals
/*
* rundom.c - Run given command at random time intervals
* Copyright (c) 2014 Arkadiusz Bokowy
*
* This projected is licensed under the terms of the MIT license.
*
* Compilation:
* gcc -Wall -Wextra -o rundom rundom.c
*
*/
@arkq
arkq / counter.c
Created December 1, 2014 21:05
Simple console countdown utility
/*
* counter.c - Simple console countdown utility
* Copyright (c) 2014 Arkadiusz Bokowy
*
* This projected is licensed under the terms of the MIT license.
*
* Compilation:
* gcc -Wall -Wextra -o counter counter.c
*
*/
@arkq
arkq / kbcheck.c
Created December 2, 2014 17:25
Check for given key event on the hardware level
/*
* kbcheck.c - Check for given key event on the hardware level
* Copyright (c) 2014 Arkadiusz Bokowy
*
* This projected is licensed under the terms of the MIT license.
*
* Compilation:
* gcc -Wall -Wextra -o kbcheck kbcheck.c
*
* Exemplary usage:
@arkq
arkq / latm-decoder
Last active October 16, 2024 11:04
ISO/IEC 14496-3
#!/usr/bin/env python
# LATM decoder - ISO/IEC 14496-3
#
# E.g.:
# latm-decoder 47 FC 00 00 B0 ...
# latm-decoder 47FC0000B09080 ...
import base64
import io
import sys
@arkq
arkq / pop-os-persistent.sh
Created March 21, 2023 09:38
Download and patch Pop!_OS ISO images to enable persistent storage
#!/bin/bash
# Download and patch Pop!_OS ISO images to enable persistent storage
set -e
IMAGES=(
"Pop!_OS 20.04 LTS"
"https://iso.pop-os.org/20.04/amd64/intel/10/pop-os_20.04_amd64_intel_10.iso"
"username=pop-os noprompt ---"
@arkq
arkq / PyGATTMatter.py
Created September 20, 2024 11:59
GATT client/server for Matter BLE
#!/usr/bin/env python3
#
# Copyright 2024 Arkadiusz Bokowy
#
# Simple GATT client/server which emulates Matter device. This application can
# be used to test Matter devices and their interaction with the BLE. E.g., to
# test the Matter commissioning process or to search for potential security
# vulnerabilities in the Matter BLE stack.
import logging