Skip to content

Instantly share code, notes, and snippets.

View abame's full-sized avatar

Albion Bame abame

View GitHub Profile
@abame
abame / words.json
Last active February 3, 2025 15:40
German words with their articles
{
"easy": [
{
"translation": "Time",
"article": "Die",
"word": "Zeit",
"audio": "https://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&tl=de&q=Zeit"
},
{
"translation": "Man",
@abame
abame / kubescape-scan.txt
Created December 4, 2022 08:51
Kubescape scan of local minikube cluster
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
################################################################################
ApiVersion: v1
Kind: Event
Name: minikube.172d88316a819c18
Namespace: default
Controls: 1 (Failed: 1, Excluded: 0)
@abame
abame / aws-sam-lambda-load-balancer-gitlab-ci.yml
Created September 10, 2022 08:27
Configuration of Gitlab CI for deploying AWS Lambda function with load balancer
deploy-with-load-balancer:
image: node:16.11-alpine3.14
stage: deploy
when: manual
artifacts:
when: always
paths:
- dist
before_script:
- apk add py3-pip python3-dev gcc build-base
@abame
abame / .gitlab-ci-megalinter.yml
Last active September 10, 2022 08:01
Megalinter GitLab CI configuration example
megalinter:
stage: test
# You can override MegaLinter flavor used to have faster performances
# More info at https://megalinter.github.io/flavors/
image: registry.gitlab.thinksurance.de/developers/javascript/megalinter:latest
script: ['true']
variables:
# All available variables are described in documentation
# https://megalinter.github.io/configuration/
DEFAULT_WORKSPACE: $CI_PROJECT_DIR
# Configuration file for MegaLinter
# See all available variables at https://oxsecurity.github.io/megalinter/latest/configuration/ and in linters documentation
APPLY_FIXES: all # all, none, or list of linter keys
DEFAULT_BRANCH: master # Usually master or main
# ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default
# ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be disabled by default
#DISABLE:
# - COPYPASTE # Uncomment to disable checks of excessive copy-pastes
# - SPELL # Uncomment to disable checks of spelling mistakes
@abame
abame / .prettierrc
Created September 3, 2022 14:05
Prettier configuration example - https://prettier.io/
{
"singleQuote": true,
"trailingComma": "all",
"semi": false
}
@abame
abame / .jscpd.json
Created September 3, 2022 14:03
Copy/Paste detector configuration - https://github.com/kucherenko/jscpd
{
"threshold": 0,
"reporters": ["html", "markdown"],
"ignore": [
"**/node_modules/**",
"**/.git/**",
"**/.rbenv/**",
"**/.venv'/**",
"**/*cache*/**",
"**/.github/**",
@abame
abame / .dockerfilelintrc
Last active September 3, 2022 14:03
DockerFileLint configuration example - https://github.com/hadolint/hadolint
rules:
# All commands in a Dockerfile require at least 1 argument
required_params: on
# For clarity and readability, all instructions in
# a Dockerfile should be uppercase
uppercase_commands: on
# The first instruction in a Dockerfile must specify
# the base image using a FROM
@abame
abame / .cspell.json
Last active September 3, 2022 14:04
Code Spell configuration Example - https://cspell.org/
{
"version": "0.1",
"language": "en",
"ignorePaths": [
"**/node_modules/**",
"**/vscode-extension/**",
"**/.git/**",
".vscode",
"yarn.lock",
"**/dist/*",
@abame
abame / .eslintrc.js
Last active September 3, 2022 14:04
EsLint configuration example - https://eslint.org/
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module'
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',