Skip to content

Instantly share code, notes, and snippets.

View patrykorwat's full-sized avatar

Patryk Orwat patrykorwat

View GitHub Profile
@lispyclouds
lispyclouds / commit
Last active November 27, 2022 16:11
A commit message helper supporting story numbers and Co-authored-by
#!/usr/bin/env bash
set -eo pipefail
changed=$(git status --porcelain)
is_github_repo=$(git config --get remote.origin.url; echo $?)
declare -A github_users
github_users=(
["rd"]="Rahul De <[email protected]>"
@wparad
wparad / index.js
Created November 4, 2020 20:33
Best practices for improving AWS Lambda defaults for the aws-sdk.
require('error-object-polyfill');
const Api = require('openapi-factory');
process.env.AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1;
require('http').globalAgent.keepAlive = true;
require('https').globalAgent.keepAlive = true;
const logger = require('./requestLogger');
try {
const XrayManager = require('./xrayManager');
@bmaupin
bmaupin / open-source-sso.md
Last active May 22, 2025 09:40
Comparison of some open-source SSO implementations

ⓘ This list is not meant to be exhaustive and is not guaranteed to be maintained. See the comments for updates and alternative options.

(Items in bold indicate possible concerns)

Keycloak WSO2 Identity Server Gluu CAS OpenAM Shibboleth IdP
OpenID Connect/OAuth support yes yes yes yes yes yes
Multi-factor authentication yes yes yes yes yes yes
Admin UI yes yes yes yes yes no
OpenJDK support yes yes partial² yes
@shortjared
shortjared / list.txt
Last active May 29, 2025 11:59
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active May 7, 2025 20:05
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@ziadoz
ziadoz / install.sh
Last active May 21, 2025 19:32
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@leonardofed
leonardofed / README.md
Last active May 29, 2025 08:37
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@stephanetimmermans
stephanetimmermans / MessageDaoJpa.java
Last active January 21, 2024 21:07
Hibernate Criteria with Spring Data JPA
@Repository("messageDao")
public class MessageDaoJpa implements MessageDao {
@PersistenceContext
private EntityManager entityManager;
...
public Message get(final String key, final String target) {
Criteria criteria;
@jboner
jboner / latency.txt
Last active June 2, 2025 03:01
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD