Skip to content

Instantly share code, notes, and snippets.

View Silthus's full-sized avatar

Michael Reichenbach Silthus

View GitHub Profile
@Silthus
Silthus / IPseudoRandomGenerator.java
Created January 9, 2021 18:06
Pseudo Random Generator Comparison
public interface IPseudoRandomGenerator {
/**
* The iteration count is increased on every failure and reset on a success.
* <p>You can reset it manually by calling {@link #reset()}.
*
* @return the current iteration count
*/
int iteration();
float chance();
@Silthus
Silthus / Dockerfile
Last active February 3, 2023 07:59
Backstage Secured Production Dockerfile
# Stage 1 - Create yarn install skeleton layer
FROM base/alpine-npm:alpine-3.17 AS packages
USER root
WORKDIR /app
COPY package.json yarn.lock ./
COPY packages packages
# Comment this out if you don't have any internal plugins
@Silthus
Silthus / .releaserc
Last active February 9, 2023 19:10
Solito Expo EAS Deployment
{
"branches": [
{
"name": "main",
"channel": "development",
"prerelease": "dev"
},
{
"name": "preview",
"channel": "preview",
@Silthus
Silthus / auto-merge-dependabot.yaml
Created April 3, 2023 19:20
Github Workflow for auto merging dependabot PRs
name: Dependabot auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest