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
https://sts.amazonaws.com/?Version=2011-06-15&Action=GetSessionToken&DurationSeconds=3600 | |
export AWS_VPC_ID=$(curl -sq http://169.254.169.254/latest/meta-data/network/interfaces/macs/$(curl -sq http://169.254.169.254/latest/meta-data/mac)/vpc-id) | |
export AWS_SECRET_ACCESS_KEY=$(curl -sq http://169.254.169.254/latest/meta-data/iam/security-credentials/training_ec2_deploy | jq -r .SecretAccessKey) | |
export AWS_ACCESS_KEY_ID=$(curl -sq http://169.254.169.254/latest/meta-data/iam/security-credentials/training_ec2_deploy | jq -r .AccessKeyId) | |
export AWS_SESSION_TOKEN=$(curl -sq http://169.254.169.254/latest/meta-data/iam/security-credentials/training_ec2_deploy | jq -r .Token) | |
az=$(curl -qs http://169.254.169.254/latest/meta-data/placement/availability-zone) | |
export AWS_DEFAULT_REGION=${az::-1} | |
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 python | |
""" | |
Example Usage: | |
$ ansible -i machine.py machinename -m ping | |
""" | |
import argparse | |
import subprocess |
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
MYIP=$(hostname -I | awk '{print $1}') | |
CONTROLLER=172.31.19.122 | |
sudo docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp engine-discovery -i -D --host-address ${MYIP} --controller ${CONTROLLER} | |
sudo systemctl restart docker |
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
<row> | |
<panel> | |
<title>Embedded Sysdig Dashboard</title> | |
<html> | |
<iframe width="100%" height="500" style="border:none" src="<PUBLIC SYSDIG DASHBOARD URL"></iframe> | |
</html> | |
</panel> | |
</row> |
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
Represent the following using the https://schema.org/Trip JSON schema. Use IATA codes for transport types and GDS codes for hotel chains. | |
i'll be going from rdu-sfo next monday, sfo-pdx on thursday and returning home on saturday. i will take the train from pdx-seattle on friday morning and fly home from seattle. i need hotels in downtown sf, near hawthorne in pdx and near belltown in seattle. i prefer alaska airlines and hyatt hotels. | |
{ | |
"@context": "https://schema.org", | |
"@type": "Trip", | |
"name": "My Trip", |
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
This is a desription of a travel itinerary. Tell me the dates and places in this text. Flights are the CSV format "<flight or train>: <DATE>, <departure airport IATA code> - <arrival airport IATA code>, <airline iata code>". Hotels are the format: "<DATE>,<hotel chain>, <neighborhood>". Format dates like YYYYMMDD. The current date is 20230121. | |
i'll be going from rdu-san francisco next monday, sfo-pdx on thursday and returning home on sunday. i will take the train from pdx-seattle on friday morning and fly home from seattle. i need hotels in downtown sf, near hawthorne in portland and near belltown in seattle. i prefer alaska airlines and marriott hotels. | |
Flight: 20230125, RDU - SFO, AS | |
Flight: 20230128, SFO - PDX, AS | |
Train: 20230129, PDX - SEA | |
Flight: 20230131, SEA - RDU, AS | |
Hotel: 20230125, Marriott, Downtown SF | |
Hotel: 20230128, Marriott, Hawthorne |
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
➜ comprova git:(master) ✗ docker history --no-trunc docker.whatsapp.biz/coreapp:v2.45.1 | |
IMAGE CREATED CREATED BY SIZE COMMENT | |
sha256:00c0c7a18cce68c3727d55cb9a732d707c7882d9a68b2abdff00d041e8bf21b5 8 weeks ago /bin/sh -c #(nop) CMD ["launch_within_docker.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
[2023-08-30 21:12:46.217 -04:00] [INF] [7] Jellyfin.Plugin.SSO_Auth.Api.SSOController: SSO Controller initialized | |
[2023-08-30 21:12:46.234 -04:00] [INF] [7] Jellyfin.Plugin.SSO_Auth.Api.SSOController: SAML request has relayState of | |
[2023-08-30 21:12:46.242 -04:00] [ERR] [7] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL "POST" "/sso/SAML/p/UID". | |
System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. | |
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) | |
at System.Convert.FromBase64String(String s) | |
at Jellyfin.Plugin.SSO_Auth.Api.SSOController.SamlPost(String provider, String relayState) | |
at lambda_method1221(Closure , Object , Object[] ) | |
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, |
OlderNewer