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
// copy&paste in chrome dev tools console | |
var hits = document.getElementsByClassName("mod-Treffer"); | |
var all = []; | |
for (var i = 0; i < hits.length; i++) { | |
var res = getLineFromDomHit(hits[i]); | |
console.log(res); | |
all.push(res); |
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
#!/usr/bin/env bash | |
#title : remove-loggroups.sh | |
#description : Removes cloudwatch loggroups that contain a given search string using aws-cli | |
#author : Christian-André Giehl <[email protected]> | |
#date : 20200312 | |
#version : 1.0 | |
#usage : sh remove-loggroups.sh <search-string> | |
#============================================================================== | |
# Exits in case the supplied state is != 0. State is typically supplied via $? |
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
#!/usr/bin/env sh | |
#title : bb-pipelines-builder-nodejs.sh | |
#description : For npm/yarn projects! Convenience script to build, check and pack fat artifacts. For personal and experimental use only! | |
#author : Christian-André Giehl <[email protected]> | |
#date : 20200322 | |
#version : 1.4 | |
#usage : sh ./bb-pipelines-builder-nodejs.sh <project-name> <target-zip-name> | |
#============================================================================== | |
PROJECT_NAME=${1:-$(basename "$PWD")} |
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
#!/usr/bin/env bash | |
#title : setup-cloudwatch.sh | |
#description : Creates cloudwatch log filter, metric and alarm | |
#author : Christian-André Giehl <[email protected]> | |
#date : 20190718 | |
#version : 1.1 | |
#usage : sh setup-cloudwatch.sh <keyword-list> <lambda-function-name> | |
#============================================================================== | |
# Exits in case the supplied state is != 0. State is typically supplied via $? |
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
#!/usr/bin/env sh | |
#title : bb-pipelines-builder.sh | |
#description : For npm/yarn projects! Convenience script to build, check and pack (fat) artifacts. For personal and experimental use only! | |
#author : Christian-André Giehl <[email protected]> | |
#date : 20200324 | |
#version : 1.5 | |
#usage : sh ./bb-pipelines-builder.sh <project-name> <target-zip-name> | |
#============================================================================== | |
PROJECT_NAME=${1:-$(basename "$PWD")} |
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
#!/usr/bin/env bash | |
#title : updateSonarProps.sh | |
#description : | |
# This script parses the project's name and version from its package.json and automagically | |
# updates the version and package name in the SonarQube configuration properties file. | |
# It can be used as a pre step before running the sonar-scanner command | |
# It also creates a backup of the props file with suffix *.bak | |
#prerequisites : NodeJS based project with package.json, sonar*.properties file in the cwd | |
#author : Christian-André Giehl <[email protected]> | |
#date : 20180220 |
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
# Get the version from package.json | |
PACKAGE_VERSION=$(cat package.json \ | |
| grep version \ | |
| head -1 \ | |
| awk -F: '{ print $2 }' \ | |
| sed 's/[",]//g' \ | |
| tr -d '[[:space:]]') | |
echo "Extracted version: ${PACKAGE_VERSION}" | |
# Find the swagger file |
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
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
export AWS_PROFILE=internal-user | |
alias ls='ls -GFh' |
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
#!/usr/bin/env bash | |
#title : eb-publish-gradle.sh | |
#description : For gradle projects! Convenience script to build, pack and upload code to an AWS ElasticBeanstalk environment, using the AWS CLI 'eb' command. For personal and experimental use only! | |
#prerequisites : AWS CLI with 'eb' cmd, Procfile, gradle project, .elasticbeanstalk/config.yml | |
#author : Christian-André Giehl <[email protected]> | |
#date : 20170410 | |
#version : 1.1 | |
#usage : sh eb-publish-gradle.sh | |
#============================================================================== |
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
#!/usr/bin/env bash | |
#title : lambda-publish-npm.sh | |
#description : For npm projects! Convenience script to build, pack and upload code to an AWS Lambda function, using the AWS CLI. For personal and experimental use only! | |
#author : Christian-André Giehl <[email protected]> | |
#date : 20170410 | |
#version : 1.1 | |
#usage : sh lambda-publish-npm.sh | |
#============================================================================== | |
# Exits in case the supplied state is != 0. State is typically supplied via $? |
NewerOlder