Skip to content

Instantly share code, notes, and snippets.

View Nircek's full-sized avatar

Marcin Zepp Nircek

View GitHub Profile
cmake_minimum_required(VERSION 3.5.1..3.28)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(FATAL_ERROR "In-source builds are not allowed.")
endif()
project(
ProjectName

GParted 1.6.0 (2024-02-26)

Alpine Linux 3.19 package

Alpine Linux Edge package

antiX-21 package

Arch package

autoload -Uz +X compinit && compinit && autoload -Uz +X bashcompinit && bashcompinit && compgen -ac
#!/usr/bin/env python3
# pylint: disable=missing-function-docstring,invalid-name
"""
github-repos.py
Iterate through usernames and get their GitHub repos.
"""
from itertools import count
#!/usr/bin/env python3
from typing import TypedDict
from datetime import datetime, timedelta
from json import load
class Session(TypedDict):
"""One session info."""
duration: int
memusg() { /nix/store/*-time-*/bin/time -v "$@" 2> >(grep 'Maximum resident set size'); }
@Nircek
Nircek / gnss202308040230-03-accuracy.ipynb
Last active August 4, 2023 00:42
GNSS202308040230+03-accuracy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

The 20230726T154109Z key

Fingerprint

RFC 4880 OpenPGP V4 Fingerprint:
5814 E970 18DC C1E8 BFE8  B399 CB3F F184 3B2D 6C22

MD5:87:e9:94:bc:aa:b0:c4:2f:ee:22:de:c2:a2:09:63:59
SHA256:MNmPCD1FHdUxEuCUCCWB/uFHGC/YHZAWicCjMYLddRQ
@Nircek
Nircek / randomart.html
Last active July 18, 2023 06:22 — forked from malexmave/randomart.html
"Drunk Bishop" RandomArt algorithm (from SSH), implemented as Javascript. Only demo code here, but can be trivially changed to give some return value to do something with the randomart.
<!-- I was recently asked what license this code is under. Since it is fairly trivial code,
I don't really feel it "deserves" a "real" license, so I am hereby placing it in the public domain.
In countries where this is not posible, I am placing it under Creative Commons CC0
(https://creativecommons.org/publicdomain/zero/1.0/), which is basically just a more formal way of
putting it in the public domain for people who like to be sure.
If you want to credit me anyway, that is of course fine with me :) -->
<!DOCTYPE html>
<html>
<body>
<div id="renderDiv" style='font-family:"Lucida Console", Monaco, monospace' />
@Nircek
Nircek / shell.nix
Created July 16, 2023 22:36
rust wasm environment
let
moz_overlay = import (builtins.fetchTarball
"https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
in { pkgs ? nixpkgs }:
pkgs.mkShell {
name = "rust env";
buildInputs = with pkgs; [
(rust-bin.stable.latest.default.override {
# extensions = [ "rust-src" ]; # for rust-analyzer