Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dabeeeenster's full-sized avatar
🏠
Working from home

Ben Rometsch dabeeeenster

🏠
Working from home
View GitHub Profile
const url = require("url")
const https = require("https")
const sizeOf = require("image-size")
const imgUrl = "https://raw.githubusercontent.com/Flagsmith/flagsmith/main/docs/static/img/self-hosted-architecture.svg"
const options = url.parse(imgUrl)
https.get(options, function (response) {
const chunks = []
{
"openapi": "3.0.3",
"info": { "title": "Edge API", "version": "1" },
"servers": [
{
"url": "https://edge.api.flagsmith.com/api/v1/",
"description": "Edge API"
}
],
"paths": {
## Request
curl -X "POST" "https://scc91964.live.dynatrace.com/api/v2/events/ingest?api-token=THE_TOKEN" \
-H 'Content-Type: application/json' \
-d $'{
"entitySelector": null,
"properties": {
"flag.name": "demo_mode",
"flag.enabled": "true",
"flag.value": "test_config"
},
/Users/ben/.asdf/shims/python2
/Users/ben/.asdf/shims/python2
2a7e9.v.fwmrm.net
trk-euwest.tidaltv.com
2356e.v.fwmrm.net
p.videologygroup.com
cdn.http.anno.channel4.com
ads-pres.channel4.com
c4ads.2cnt.net
securecdn.videologygroup.com
c5ads.ott.skymedia.co.uk
toots-a.akamaihd.net
- TASK_DEFINITION=$(aws ecs describe-task-definition --task-definition "$TASK_DEFINITION_NAME" --region "${AWS_DEFAULT_REGION}")
- NEW_CONTAINER_DEFINITION=$(echo $TASK_DEFINITION | jq --arg IMAGE "$REPOSITORY_URL:$IMAGE_TAG" '.taskDefinition.containerDefinitions[0].image = $IMAGE | .taskDefinition.containerDefinitions[0]')
- echo "Registering new container definition..."
- aws ecs register-task-definition --region "${AWS_DEFAULT_REGION}" --family "${TASK_DEFINITION_NAME}" --container-definitions "${NEW_CONTAINER_DEFINITION}" --cpu 1024 --memory 2048 --requires-compatibilities "FARGATE" --network-mode "awsvpc" --execution-role-arn "${EXECUTION_ROLE_ARN}"
custom_auth/tests/test_serializer.py .. [ 2%]
custom_auth/tests/end_to_end/test_custom_auth_integration.py ...... [ 3%]
e2etests/tests/end_to_end/test_integration_e2e_tests.py . [ 4%]
environments/identities/tests/test_helpers.py ... [ 4%]
environments/identities/tests/test_views.py ..................... [ 8%]
environments/identities/traits/tests/test_models.py .. [ 8%]
environments/identities/traits/tests/test_views.py .....................
@dabeeeenster
dabeeeenster / Installation.md
Created December 18, 2021 22:33 — forked from albertbori/Installation.md
Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac

Overview

This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.

Most the credit for these changes go to Dave Holland.

Requirements

  • Mac OSX 10+
  • Administrator privileges