Skip to content

Instantly share code, notes, and snippets.

@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 / Questions.markdown
Last active September 9, 2023 11:24
Effortful Retrieval Questions for Writing Robust Bash Shell Scripts

Writing Robust Bash Shell Scripts

http://www.davidpashley.com/articles/writing-robust-shell-scripts/

  1. How can you tell bash to exit when a variable is unitialised?
  2. How can you tell bash to exit when a command fails?
  3. How can you execute a command that fails in that scenario?
  4. How can you tell bash to exit when a pipe command fails?
  5. How do you create a directory?
  6. How do you delete a file?
@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 / Questions.markdown
Last active July 24, 2016 17:29
Effortful Retrieval Questions for Julie Pagano's It's Dangerous to Go Alone
@ArloL
ArloL / Questions.markdown
Last active July 24, 2016 17:28
Effortful Retrieval Questions for Where Next? Building a Career as a Technologist

Where Next? Building a Career as a Technologist

http://www.infoq.com/presentations/career-ideal-job

  1. What are possible dimensions of an ideal job?
  2. What are possible dimensions of an ideal job culture?
  3. After what time does a commute influence happiness?
  4. What are different "tracks" that you can follow?
  5. What are some interesting alternatives to a "job" career?
  6. What are ways to get better?
@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;