Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.
To reset and disable not used modes on Yubikey you need the ykman
program
You can install it using those commands
#!/bin/bash | |
read -r -p "Enter OTP for AWS: " TOKEN_CODE | |
# Change below for you user and account and profile | |
MFA_ARN=arn:aws:iam::xxxxxxxxxxxxx:mfa/AwsUserName | |
PROFILE=xxxxx | |
DURATION=43200 | |
TMP_FILE=/tmp/aws-creds | |
CREDENTIALS_FILE=~/.aws/credentials | |
trap "rm -fv $TMP_FILE" EXIT |
killer use cases | |
--- action | |
-> error handling | |
-> single action for all invites / acceptance | |
--- Direct Data Access | |
-> testability | |
CREATE:: --> | |
A Mutation Action that authenticated person call that then writes to company_invitation / zone_invitation (create permission view +/ log?) |
package com.example.FileUploadExample | |
import com.example.FileUploadExample.HomeHandler | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.http.MediaType | |
import org.springframework.web.reactive.function.server.HandlerFunction | |
import org.springframework.web.reactive.function.server.RequestPredicates | |
import org.springframework.web.reactive.function.server.RouterFunction | |
import org.springframework.web.reactive.function.server.RouterFunctions |
Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.
To reset and disable not used modes on Yubikey you need the ykman
program
You can install it using those commands
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: prom-k8s | |
data: | |
prometheus.yml: |+ | |
scrape_configs: | |
- job_name: 'quarkus' | |
scrape_interval: 15s | |
scrape_timeout: 10s |
"""Download sentry data. | |
usage: | |
python download_sentry_data.py <org>/<project> <api_key> | |
""" | |
import requests | |
import csv |
import org.hamcrest.Description; | |
import org.hamcrest.Factory; | |
import org.hamcrest.Matcher; | |
import org.hamcrest.TypeSafeMatcher; | |
public class CaseInsensitiveSubstringMatcher extends TypeSafeMatcher<String> { | |
private final String subString; | |
private CaseInsensitiveSubstringMatcher(final String subString) { |
realm=Sonatype Nexus Repository Manager | |
host=nexus.company.com | |
user=admin | |
password=admin123 |