Skip to content

Instantly share code, notes, and snippets.

View pkubik's full-sized avatar

Paweł Kubik pkubik

  • Warsaw University of Technology
  • Warsaw
View GitHub Profile
@pkubik
pkubik / README.md
Created April 28, 2023 10:42
An entrypoint that sets umask before running user script

Entrypoint for docker with host dir mountpoint

The idea is to use this along with -v $PWD:/app option.

Whenever you use this workflow all files created in your working directory will be created by the docker user (e.g. root) requiring you to use sudo for clean-up...

... random sudo rm -rf something is just what you need in your life.

@munrocket
munrocket / wgsl_noise.md
Last active September 10, 2025 07:57
WGSL Noise Algorithms

WGSL Noise Algorithms

Good and fast integer hash

// https://www.pcg-random.org/
fn pcg(n: u32) -> u32 {
    var h = n * 747796405u + 2891336453u;
    h = ((h >> ((h >> 28u) + 4u)) ^ h) * 277803737u;
    return (h >> 22u) ^ h;
}
@rezamt
rezamt / gcloud-fiters.sh
Created December 2, 2018 00:53
GCloud Filter Examples
List all Google Compute Engine instance resources:
$ gcloud compute instances list
List Compute Engine instance resources that have machineType f1-micro:
$ gcloud compute instances list --filter="machineType:f1-micro"
List Compute Engine instance resources with zone prefix us and not
MachineType f1-micro:
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active December 11, 2025 07:53
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux