- Install Oh My Zsh
- Add the theme file
martinbuberl.zsh-theme
to~/.oh-my-zsh/themes
- Open the configuration file
~/.zshrc
(via Terminal$ ls -al
and$ subl .zshrc
)- Set theme to
ZSH_THEME=martinbuberl
- Set plugins to
plugins=(bower brew git npm nyan sublime)
- Set theme to
- Add the theme file
- Import/Use with Terminal profile
martinbuberl.terminal
- Type
upgrade_oh_my_zsh
to update Oh My Zsh - Type
touch .hushlogin
to remove the "Last login" message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Install Java | |
RUN apt update | |
ENV JAVA_HOME=/opt/java/openjdk | |
COPY --from=eclipse-temurin:11 $JAVA_HOME $JAVA_HOME #New Docker feature, we are copying the SDK from another Docker Image | |
ENV PATH="${JAVA_HOME}/bin:${PATH}" | |
# Install Scala | |
RUN apt remove scala-library scala | |
RUN wget --no-verbose -O http://scala-lang.org/files/archive/scala-2.13.1.deb | |
RUN dpkg -i scala-2.13.1.deb |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!groovy | |
pipeline { | |
agent any | |
options { | |
timeout(time: 5, unit: 'MINUTES') // timeout all agents on pipeline if not complete in 5 minutes or less. | |
} | |
parameters { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.pool.impl.GenericObjectPool.Config; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.data.redis.connection.lettuce.DefaultLettucePool; | |
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; | |
import org.springframework.data.redis.core.StringRedisTemplate; | |
import org.springframework.stereotype.Component; | |
@Component | |
public class LettuceRedisClientConnectionPooling { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.13 | |
CMD ["/bin/sh"] | |
ENV LANG=C.UTF-8 | |
RUN { echo '#!/bin/sh'; echo 'set -e'; echo; echo 'dirname "$(dirname "$(readlink -f "$(which javac || which java)")")"'; } > /usr/local/bin/docker-java-home && chmod +x /usr/local/bin/docker-java-home | |
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk | |
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin | |
ENV JAVA_VERSION=8u282 | |
ENV JAVA_ALPINE_VERSION=8.282.08-r0 | |
RUN set -x && apk add --no-cache openjdk8 && [ "$JAVA_HOME" = "$(docker-java-home)" ] | |
RUN apk update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom PATH to avoid every utility prepending more duplicate entries to it: | |
export PATH="$HOME/bin:$HOME/.rbenv/shims:$HOME/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a simple example of how to run a basic service inside a container with Podman | |
# Podman | |
## Pull the Docker image | |
podman pull docker.io/redis | |
## Run the container as you would do with Docker | |
podman run -d --name redis_server -p 6379:6379 redis | |
# But Podman facilitate some extra ways: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop all containers | |
docker stop $(docker ps -a -q) | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi -f $(docker images -q) |
NewerOlder