Skip to content

Instantly share code, notes, and snippets.

View jakubigla's full-sized avatar

Jakub Igła jakubigla

View GitHub Profile
@jakubigla
jakubigla / Dockerfile
Created December 10, 2018 14:36
Dockerfile for multistage build of spring boot application using maven with SonarQube and proxy support
ARG BUILD_IMAGE=maven:3.5-jdk-11
ARG RUNTIME_IMAGE=openjdk:11-jdk-slim
#############################################################################################
### Stage where Docker is pulling all maven dependencies ###
#############################################################################################
FROM ${BUILD_IMAGE} as dependencies
ARG PROXY_SET=false
ARG PROXY_HOST=

Keybase proof

I hereby claim:

  • I am jakubigla on github.
  • I am jakubigla (https://keybase.io/jakubigla) on keybase.
  • I have a public key ASCQES6SM8ZNegv0QfuJkrWB84g8FXvFZztlbmnqq4mMjQo

To claim this, I am signing this object:

@jakubigla
jakubigla / ec2-ops.sh
Last active October 14, 2021 07:15
Start and Stop AWS EC2 instances based on tags
#!/bin/sh
set -e
function usage() {
echo "$0 [-r <region> -t <TAG_KEY=value ...>] (start|stop|status)"
}
while getopts "t:r:" o; do
case "${o}" in
#!/usr/bin/env bash
CURRENT=`basename "$0"`
FILES=$(ls -p | grep -v /)
for FILE in $FILES; do
if [ $FILE != $CURRENT ]; then
aws glacier upload-archive --account-id - --vault-name Hangar --body "$FILE" --region eu-central-1
fi
done
@jakubigla
jakubigla / aws-glacier-tar-and-upload.sh
Last active January 3, 2017 14:43
Tar directories and upload to AWS Glacier
#!/usr/bin/env bash
DIRS=$(ls -d *);
for DIRR in $DIRS; do
echo $DIRR
tar -zcvf "$DIRR.tar.gz" "$DIRR"
aws glacier upload-archive --account-id - --vault-name Hangar --body "$DIRR.tar.gz" --region eu-central-1
done
@jakubigla
jakubigla / download-jessie-config
Created July 16, 2015 20:00
Download configuration scripts for Jessie
apt-get install git && git clone https://github.com/jakubigla/debian-jessie-configuration.git