- Add this to your
~/.bash_profile
or~/.zshrc
. - Then regardles if the project is setup with
maven
orgradle
when you executekf
the right task is going to be executed
This file contains hidden or 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 | |
#RANCHER_SERVER_NAME=$(docker ps -a --format "{{.Image}} {{.Names}}" | grep -i "rancher/rancher" | cut -d' ' -f2) | |
RANCHER_SERVER_NAME=rancher-server | |
TODAY_DATE=$(date +%Y%m%d) | |
RANCHER_COPY_NAME=rancher-data-${TODAY_DATE} | |
CREDENTIALS_PATH=~/secrets | |
BACKUP_PATH=~/backup | |
RANCHER_BACKUP_FILE_BASE=rancher-data-backup | |
RANCHER_BACKUP_FILE=${RANCHER_BACKUP_FILE_BASE}-${TODAY_DATE}.tar.gz | |
USE_GDRIVE=0 |
This file contains hidden or 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
--- | |
acme: | |
challengeType: "dns-01" | |
dnsProvider: | |
cloudflare: | |
CLOUDFLARE_API_KEY: <CF_API_KEY> | |
CLOUDFLARE_EMAIL: EMAIL | |
name: "cloudflare" | |
email: EMAIL | |
enabled: "true" |
This file contains hidden or 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
openapi: 3.0.1 | |
info: | |
title: BG PSD2 API | |
version: "1.2" | |
description: | | |
# Summary | |
The **NextGenPSD2** *Framework Version 1.2* offers a modern, open, harmonised and interoperable set of | |
Application Programming Interfaces (APIs) as the safest and most efficient way to provide data securely. | |
The NextGenPSD2 Framework reduces XS2A complexity and costs, addresses the problem of multiple competing standards | |
in Europe and, aligned with the goals of the Euro Retail Payments Board, |
This file contains hidden or 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 openjdk:8-alpine | |
VOLUME /tmp | |
RUN apk add --update curl && \ | |
rm -rf /var/cache/apk/* | |
VOLUME /tmp | |
ENV SERVER_PORT=8761 | |
EXPOSE 8761 | |
ADD *.jar app.jar | |
RUN sh -c 'touch /app.jar' | |
ENV DEFAULT_OPTIONS="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1" |
I hereby claim:
- I am Panthro on github.
- I am panthro (https://keybase.io/panthro) on keybase.
- I have a public key whose fingerprint is 21C9 894F ABF4 85BB 6CF0 403A BF9B 8DB7 6559 788C
To claim this, I am signing this object:
This file contains hidden or 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
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Max-Age' 1728000; | |
add_header 'Content-Type' 'text/plain charset=UTF-8'; | |
add_header 'Content-Length' 0; | |
return 204; | |
} | |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; | |
# |
This file contains hidden or 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
#Move all content from the root angular app to admin folder | |
mv src/main/webapp/ src/main/webapp_admin | |
mkdir -p src/main/webapp/ | |
mv src/main/webapp_admin/ src/main/webapp/admin | |
#find and replace webapp | |
#couldnt build a sed command for now, so here's the list of files to change | |
# modified: .bowerrc | |
# modified: .gitignore | |
# modified: Gruntfile.js |
This file contains hidden or 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
apt-get -y update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y autoremove |
This file contains hidden or 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
#Allocate the file | |
fallocate -l 4G /swapfile | |
#Give right permissions | |
chmod 600 /swapfile | |
#make it a swap file | |
mkswap /swapfile | |
#turn swap on | |
swapon /swapfile | |
#mount it at every boot | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab |