environment=env-0x3135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: maintenance-page | |
data: | |
maintenance.html: |- | |
<!--HTML GOES HERE--> | |
<!doctype html> | |
<title>Site Maintenance</title> | |
<link rel="stylesheet" href="maintenance.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: kafka-ui-deployment | |
labels: | |
app: kafka-ui | |
# namespace: mstore | |
spec: | |
replicas: 1 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@kafka-a-01 /]# /opt/kafka_current/bin/kafka-console-consumer.sh | |
The console consumer is a tool that reads data from Kafka and outputs it to standard output. | |
Option Description | |
------ ----------- | |
--blacklist <blacklist> Blacklist of topics to exclude from | |
consumption. | |
--bootstrap-server <server to connect REQUIRED (unless old consumer is | |
to> used): The server to connect to. | |
--consumer-property <consumer_prop> A mechanism to pass user-defined | |
properties in the form key=value to |
This will automatically use CUID2 for all id
fields when creating elements in Prisma.
You'll need to add the following libraries to make this work
npm install --save @paralleldrive/cuid2 immer
yarn add @paralleldrive/cuid2 immer
pnpm add @paralleldrive/cuid2 immer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useRef, useState } from "react"; | |
interface MeasureResult<T extends Element> { | |
ref: React.RefObject<T>; | |
bounds: DOMRectReadOnly; | |
} | |
const useMeasure = <T extends Element = Element>(): MeasureResult<T> => { | |
const ref = useRef<T>(null); | |
const [bounds, setBounds] = useState<DOMRectReadOnly>(new DOMRectReadOnly()); |
- 2011 - A trip through the Graphics Pipeline 2011
- 2015 - Life of a triangle - NVIDIA's logical pipeline
- 2015 - Render Hell 2.0
- 2016 - How bad are small triangles on GPU and why?
- 2017 - GPU Performance for Game Artists
- 2019 - Understanding the anatomy of GPUs using Pokémon
- 2020 - GPU ARCHITECTURE RESOURCES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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( |
This script will update Info.plist of a target in XCode with the following
CFBundleVersion
to the git commit countGitDate
to the date of the last commitGitBranch
to the current branch nameGitTag
to the latest tag on current branch
Creates a .version file to track last update and appease XCode needing a non-mutable output path.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run Script Build Phase for Xcode to automatically increase the CFBundleVersion value | |
# on your target's Info.plist using a 'yymmddHHMMSS' style timestamp. | |
# Also, sets a custom key with the current git commit hash (GIT_COMMIT_HASH) | |
# | |
# This script works by modifying the target copy of your Info.plist file, so that it won't | |
# change your original Info.plist which is under version control. It does, however, use | |
# the original file to read the initial CFBundleVersion value to which the timestamp | |
# for the current date/time is appended. |
NewerOlder