Skip to content

Instantly share code, notes, and snippets.

@ArloL
ArloL / change-multiple-repositories.sh
Last active February 6, 2025 12:02
Script to change multiple repos at once
#!/bin/bash -l
set -o errexit
set -o nounset
set -o xtrace
set -- \
repo-one \
repo-two \
repo-three
@ArloL
ArloL / Dockerfile
Last active August 10, 2024 20:48
a gradle dockerfile containing multiple best practices
ARG DOCKER_REGISTRY=index.docker.io
FROM $DOCKER_REGISTRY/library/gradle:8.9.0-jdk21-alpine AS base
RUN mkdir -p /root/.gradle
RUN echo "org.gradle.daemon=false" >> /root/.gradle/gradle.properties
RUN echo "org.gradle.caching=true" >> /root/.gradle/gradle.properties
RUN echo "org.gradle.configuration-cache=true" >> /root/.gradle/gradle.properties
WORKDIR /app
@ArloL
ArloL / kaniko-build.sh
Created December 21, 2023 20:27
kaniko build
#!/bin/sh
set -o errexit
set -o nounset
set -o xtrace
cd "$(dirname "$0")/.." || exit 1
. ./scripts/setup-shell.sh
@ArloL
ArloL / Dockerfile
Created December 21, 2023 20:18
Dockerfile that installs docker in ubuntu
ARG DOCKER_REGISTRY=registry.hub.docker.com
FROM $DOCKER_REGISTRY/library/ubuntu:22.04 AS base
# install docker
RUN \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get update \
&& apt-get --yes install \
ca-certificates \
gnupg \
curl \
@ArloL
ArloL / docker-exec.sh
Last active November 2, 2023 16:40
docker eclipse temurin gradle build debugging
#!/bin/sh
set -o errexit
set -o nounset
set -o xtrace
cd "$(dirname "$0")/.." || exit 1
docker exec \
--interactive \

11. General Interference with Organizations and Production

(a) Organizations and Conferences

  1. Insist on doing everything through "channels". Never permit short-cuts to be taken in order to expedite decisions.
  2. Make "speeches". Talk as frequently as possible and at great length. Illustrate your "points” by long anecdotes and accounts of personal experiences. Never hesitate to make a few appropriate "patriotic” comments.
  3. When possible, refer all matters to committees, for "further study and consideration". Attempt to make the committees as large as possible — never less than five.
  4. Bring up irrelevant issues as frequently as possible.
  5. Haggle over precise wordings of communications, minutes, resolutions.
  6. Refer back to matters decided upon at the last meeting and attempt to re-open the question of the advisability of that decision.
@ArloL
ArloL / docker-copy.sh
Created July 21, 2023 07:19
docker copy
#!/bin/sh
set -o errexit
set -o nounset
set -o xtrace
CONTAINER_ID_FILE=$(mktemp -u)
cleanup() {
currentExitCode=$?
@ArloL
ArloL / Questions.markdown
Created December 20, 2016 19:27
Effortful Retrieval Questions for Allison Kaptur - Effective Learning for Programmers

Effective Learning for Programmers

https://www.youtube.com/watch?v=Mcc6JEhDSpo

  1. What are the two mindsets towards intelligence?
  2. What is the problem with praise for being smart?
  3. What are the responses to confusion with the two mindsets?
  4. What mindset does the concept of a 10x engineer typically follow?
  5. How do you identify a fixed mindset?
  6. How do you change a fixed mindset?
@ArloL
ArloL / DemoApplication.java
Last active November 24, 2015 13:57
Demonstrate how to pass parameters to Spring Boot Application via Servlet Context Parameters
package com.example;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
@ArloL
ArloL / Questions.markdown
Created October 25, 2015 20:06
Effortful Retrieval Questions on The CAP FAQ

The CAP FAQ

https://github.com/henryr/cap-faq

  • What's the relationship between CAP and performance?
  • What does CAP mean to me as an engineer?
  • What's the relationship between CAP and ACID?
  • What does CAP stand for?
  • What does Availability in CAP stand for?
  • What does Consistency in CAP stand for?