Skip to content

Instantly share code, notes, and snippets.

View Schnitzel's full-sized avatar

Michael Schmid Schnitzel

View GitHub Profile
@Schnitzel
Schnitzel / test.php
Last active February 28, 2019 15:24
<?php
$url = "https://www.example.com";
$options = array(
CURLOPT_RETURNTRANSFER => true, // don't echo page
CURLOPT_VERBOSE =>true,
);
$cm = curl_multi_init();

1. Get environments

Request:

query getAllEnviornments {
  projectByName(name: "drupal-example") {
    id
    environments {
      id
      name
### Keybase proof
I hereby claim:
* I am schnitzel on github.
* I am schnitzel (https://keybase.io/schnitzel) on keybase.
* I have a public key ASA7QArmrZOU18pvAdP2GYgwUw_98Mk6kyWj156YzlOanwo
To claim this, I am signing this object:
@Schnitzel
Schnitzel / update-lagoon-registry-with-aws-token.sh
Created June 15, 2020 18:39
update-lagoon-registry-with-aws-token.sh
# !/bin/bash
# README
#
# This script gets an AWS ECR Registry Token and stores it as a variable within a specified Lagoon.
# This is usefull as the AWS ECR Registry Token are only valid for 12 hours and therefore need to be updated regularly.
#
# # Usage
# ```
# export AWS_ACCESS_KEY_ID=xxxx
# export AWS_SECRET_ACCESS_KEY=xxxx