requires
jqCLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'
| #!/usr/bin/env bash | |
| # install docker | |
| # https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
| # install docker-compose | |
| # https://docs.docker.com/compose/install/ | |
| # install letsencrypt | |
| # https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 |
| # Add this snippet to the top of your playbook. | |
| # It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
| # [email protected] | |
| - hosts: all | |
| gather_facts: False | |
| tasks: | |
| - name: install python 2 | |
| raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
| { | |
| "AWSEBDockerrunVersion": "1", | |
| "Image": { | |
| "Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
| "Update": "true" | |
| }, | |
| "Ports": [ | |
| { | |
| "ContainerPort": "443" | |
| } |
| --- | |
| hosts: all | |
| tasks: | |
| - name: add github ssh key | |
| copy: > | |
| src=files/id_rsa.github | |
| dest=/root/.ssh/id_rsa.github | |
| owner=root | |
| group=root |
requires
jqCLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'
Watch a table for changes and push a notification with a payload describing the change.
In the Postgres shell:
-- Create the functions
| /** | |
| * Validate a Human Name | |
| * | |
| * @param $name | |
| * A name as a string. | |
| * @return | |
| * TRUE or FALSE if name is a valid human name. | |
| */ | |
| function valid_human_name($name) { | |
| # Matches names like "Ítalo", "Édith" |
| <?php | |
| /** | |
| * Drupal 7 | |
| */ | |
| $fid = 1; | |
| $uri = file_load($fid)->uri; // or fetched via the uri property of a field | |
| $image_url = image_style_url('thumbnail', $uri); | |
| $image = theme_image(array( | |
| 'path' => $image_url, |
| import Html exposing (..) | |
| import Html.Events exposing (..) | |
| import StartApp | |
| import Effects exposing (Never) | |
| import Task | |
| import Keyboard | |
| import Char | |
| import String | |
| import Time | |
| import Signal.Time exposing (settledAfter) |
| # Copyright 2018 Simon Davy | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in |