Skip to content

Instantly share code, notes, and snippets.

View bartekus's full-sized avatar

Bartek Kus bartekus

View GitHub Profile
@bartekus
bartekus / rfc5646-language-tags.js
Created February 20, 2025 03:18 — forked from msikma/rfc5646-language-tags.js
RFC 5646 Language Tags
// List of language tags according to RFC 5646.
// See <http://tools.ietf.org/html/rfc5646> for info on how to parse
// these language tags. Some duplicates have been removed.
var RFC5646_LANGUAGE_TAGS = {
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',
@bartekus
bartekus / A_UUID_v7_for_Postgres.sql
Created February 20, 2025 03:18 — forked from kjmph/A_UUID_v7_for_Postgres.sql
Postgres PL/pgSQL function for UUID v7 and a bonus custom UUID v8 to support microsecond precision as well. Read more here: https://datatracker.ietf.org/doc/rfc9562/
-- Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/
create or replace function uuid_generate_v7()
returns uuid
as $$
begin
-- use random v4 uuid as starting point (which has the same variant we need)
-- then overlay timestamp
-- then set version 7 by flipping the 2 and 1 bit in the version 4 string
return encode(
@bartekus
bartekus / meta-tags.md
Created February 20, 2025 03:17 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags
@bartekus
bartekus / README.md
Created February 20, 2025 02:58 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@bartekus
bartekus / WebGL-WebGPU-frameworks-libraries.md
Created February 20, 2025 02:57 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@bartekus
bartekus / README.md
Created February 20, 2025 02:56 — forked from dims/README.md
Kubernetes Resources
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Bartlomiej Kus",
"label": "Principal Software Engineer",
"image": "https://lh3.googleusercontent.com/a/ACg8ocIyhl74j_fb8JT7o6_NkLM7uP6QHujJtohrnsLROKCtcTwYCZUM=s83-c-mo",
"url": "https://bartekus.com",
"summary": "A pragmatic full-stack software engineer with over 10 years of experience at startups, mid-sized, and large organizations. Extensive expertise in building scalable backend services, engineering DevOps CI/CD pipelines, and crafting user-centric frontend interfaces. Adept at architecting Decentralized Identity & Self-Sovereign Identity platforms, API gateways, and AI-powered agents and workflows.",
import crypto from "crypto";
import { renderToStaticMarkup } from "react-dom/server";
import createMailgun from "mailgun-js";
import type { ActionFunction, LoaderFunction, Session } from "remix";
import { createCookieSessionStorage, json, redirect } from "remix";
/*******************************************************************************
* Before we can do anything, we need to make sure the environment has
* everything we need. If anything is missing, we just prevent the app from
* starting up.
@bartekus
bartekus / cloudflare-ddns-update.sh
Created January 30, 2024 02:02 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
@bartekus
bartekus / build.js
Last active April 3, 2020 22:32
Browser Extension ready react-scripts
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';