Skip to content

Instantly share code, notes, and snippets.

View yisonPylkita's full-sized avatar
👻
Just a normal, beautiful day

Wojciech Bartnik yisonPylkita

👻
Just a normal, beautiful day
  • Warsaw, Poland
View GitHub Profile
@Maxzor
Maxzor / remove-all-from-docker-oneliner.sh
Last active January 13, 2026 15:16 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
echo "Removing containers :" && if [ -n "$(docker container ls -aq)" ]; then docker container stop $(docker container ls -aq); docker container rm $(docker container ls -aq); fi; echo "Removing images :" && if [ -n "$(docker images -aq)" ]; then docker rmi -f $(docker images -aq); fi; echo "Removing volumes :" && if [ -n "$(docker volume ls -q)" ]; then docker volume rm $(docker volume ls -q); fi; echo "Removing networks :" && if [ -n "$(docker network ls | awk '{print $1" "$2}' | grep -v 'ID\|bridge\|host\|none' | awk '{print $1}')" ]; then docker network rm $(docker network ls | awk '{print $1" "$2}' | grep -v 'ID\|bridge\|host\|none' | awk '{print $1}'); fi;
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active March 11, 2026 11:29
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like [Unreal](https:

@robin-a-meade
robin-a-meade / unofficial-bash-strict-mode.md
Last active March 11, 2026 18:58
Unofficial bash strict mode

Unofficial Bash Strict Mode

Sometimes a programming language has a "strict mode" to restrict unsafe constructs. E.g., Perl has use strict, Javascript has "use strict", and Visual Basic has Option Strict. But what about bash? Well, bash doesn't have a strict mode as such, but it does have an unofficial strict mode:

set -euo pipefail

set -e

@ayufan
ayufan / pinebookpro-power-usage.txt
Last active December 24, 2022 19:09
Pinebook Pro Power Usage
100% brightness - 7W
40% brightness - 4.8W
0% brightness - 3.5W
0% brightness, all cores - 8.5W
100% brightness, all cores - 12.2W
40% brightness, youtube 480p, vp9 - 7.3W
40% brightness, youtube 720p, drop frames, vp9 - 10W
40% brightness, youtube 1080p, choppy, vp9 - 10W
40% brightness, youtube 480p, avc1 - 6.7W
40% brightness, youtube 720p, avc1 - 7W
@yisonPylkita
yisonPylkita / byte_converter.hpp
Created October 18, 2018 17:41
Loading uint16_6 and uint32_t from little/big endian memory
#pragma once
#include <cstdint>
#if !defined(__ORDER_LITTLE_ENDIAN__)
#error "Only little endian systems are supported"
#endif
// All of these functions are constexpr (c++11 compatibile and above)
// Generated code - https://godbolt.org/z/Tz7Wvg
namespace byte_converter {
@mjuric
mjuric / kafka-useful-commands.md
Last active May 24, 2024 14:06
Useful Kafka wrangling commands

Utilities you'll care about

All these are already installed on epyc.

  • kafkacat (conda install -c conda-forge kafkacat)

  • kt (grab it from https://github.com/fgeller/kt/releases)

  • kafka-* (come with kafka, if you yum install if from Confluent's repo, or via Docker if you're so inclined). Warning -- JVM based and dreadfully slow.

  • jq (conda install -c conda-forge jq or use your favorite package manager)

@alfredkrohmer
alfredkrohmer / xbox-one-wireless-protocol.md
Created November 23, 2016 21:52
XBox One Wireless Controller Protocol

Physical layer

The dongle itself is sending out data using 802.11a (5 GHz WiFi) with OFDM and 6 Mbit/s data rate:

Radiotap Header v0, Length 38
    Header revision: 0
    Header pad: 0
    Header length: 38
    Present flags
@kylemanna
kylemanna / README-python-service-on-systemd-activated-socket.md
Last active January 10, 2026 01:29 — forked from drmalex07/README-python-service-on-systemd-activated-socket.md
An example network service with systemd-activated socket in Python. #systemd #python #socket #socket-activation

README

The example below creates a TCP server listening on a stream (i.e. SOCK_STREAM) socket. A similar approach can be followed to create a UDP server on a datagram (i.e. SOCK_DGRAM) socket. See man systemd.socket for details.

An example server

Create an simple echo server at ~/tmp/foo/serve.py.

@jonsuh
jonsuh / .bash_profile
Last active January 11, 2026 18:46
Bash echo in color
# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
@evanscottgray
evanscottgray / docker_kill.sh
Last active November 7, 2023 03:40
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt