Skip to content

Instantly share code, notes, and snippets.

View huslage's full-sized avatar
🐈
Meow

Aaron Huslage huslage

🐈
Meow
View GitHub Profile
[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,
➜ 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 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
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",
@huslage
huslage / iframe.xml
Last active March 28, 2019 17:06
Use this snippet to embed a Sysdig dashboard into a splunk dashboard
<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>
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
@huslage
huslage / machine.py
Last active August 29, 2015 14:26 — forked from nathanleclaire/machine.py
Ansible dynamic inventory plugin for Docker Machine
#!/usr/bin/env python
"""
Example Usage:
$ ansible -i machine.py machinename -m ping
"""
import argparse
import subprocess
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}

Keybase proof

I hereby claim:

  • I am huslage on github.
  • I am huslage (https://keybase.io/huslage) on keybase.
  • I have a public key whose fingerprint is 30D4 B15B 74B2 F0E9 35D4 ABE0 2CB7 AC60 360D E590

To claim this, I am signing this object:

{
"Reservations": [
{
"OwnerId": "437775732836",
"ReservationId": "r-6106ac10",
"Groups": [],
"Instances": [
{
"Monitoring": {
"State": "disabled"