Skip to content

Instantly share code, notes, and snippets.

View daniel-cortez-stevenson's full-sized avatar
🦊
I'm around

Daniel daniel-cortez-stevenson

🦊
I'm around
View GitHub Profile
@niespodd
niespodd / limit_chromium_fps.patch
Last active May 13, 2024 18:48
Chromium patch to reduce CPU load on Swiftshader no-headless
/**
ref: https://cs.chromium.org/chromium/src/components/viz/common/frame_sinks/begin_frame_args.h?q=60hz&dr=C&l=11
The original 16666 corresponds to 60 Hz/FPS: (1 / 60) * 10^6 = 16666μs
**/
diff --git a/components/viz/common/frame_sinks/begin_frame_args.h b/components/viz/common/frame_sinks/begin_frame_args.h
index c4d0e29c7d65..a39ede9849c6 100644
--- a/components/viz/common/frame_sinks/begin_frame_args.h
+++ b/components/viz/common/frame_sinks/begin_frame_args.h
@@ -91,7 +91,8 @@ struct VIZ_COMMON_EXPORT BeginFrameArgs {
@daniel-cortez-stevenson
daniel-cortez-stevenson / snowball_stemmer.py
Last active December 15, 2023 09:49
Wrapping Scala with Python for PySpark Example (org.apache.spark.mllib.feature.Stemmer)
"""An example of wrapping a Scala UDF with Python code.
Copyright 2020 Daniel Cortez Stevenson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
@daniel-cortez-stevenson
daniel-cortez-stevenson / elasticsearch-service-template.yaml
Last active December 15, 2023 09:50
AWS ElasticSearch Domain with VPC and Bastion Cloudformation Template
# Copyright 2020 Daniel Cortez Stevenson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,

Using GPG with sbtenv on MacOS

Issue

I rececently downloaded sbtenv to better manage my Scala SBT environmnets per project. When I tried to install any version of SBT using the sbtenv command - it would fail. Checking the stdout I found the message gpg: Can't check signature: No public key at the end of the output.

Steps to reproduce

Install sbtenv

@mjf
mjf / Postgres.md
Last active May 8, 2025 15:20
Postgres

⚠️ WARNING
The ordering of listed projects or documents is random and has no connection to relevance or maturity levels!

Postgres

Extensions

Extension Description
pgaudit Postgres auditing extension