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
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/codespaces-linux/.devcontainer/base.Dockerfile | |
FROM mcr.microsoft.com/vscode/devcontainers/universal:1-focal | |
RUN pip3 install --user ansible | |
USER root | |
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | |
&& apt-get -y install python3-pexpect | |
USER codespace |
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 | |
from flask import Flask, request, abort, jsonify | |
app = Flask(__name__) | |
@app.route('/push', methods=['POST']) | |
def handle_push(): | |
if not request.json: | |
abort(400) | |
if 'AnsibleTower' in request.headers and request.headers['AnsibleTower'] == 'xSecretx': | |
# Trigger some other external action |
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
// For compilers that support ranges in case statements | |
// remember, if a case doesn't have a break then it will fall through to the next one. | |
switch (age) { | |
case 21: | |
printf("You are old enough to drink"); | |
case 18 ... 20: | |
printf("You are old enough to vote"); | |
case 16 ... 17: | |
printf("You are old enough to drive"); |
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
version: '3.7' | |
volumes: | |
opa_data: | |
driver: local | |
networks: | |
opa: | |
driver: bridge |
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
{ | |
"mods": | |
[ | |
{ | |
"name": "base", | |
"enabled": true | |
}, | |
{ | |
"name": "space-exploration", |
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
--- | |
version: 1 | |
build_arg_defaults: | |
EE_BASE_IMAGE: 'quay.io/ansible/awx-ee:latest' | |
additional_build_steps: | |
append: | |
- ADD awx-sample-1.0.0.tar.gz /ansible-tower-sample-1.0.0.tar.gz | |
- RUN ansible-galaxy collection install /ansible-tower-sample-1.0.0.tar.gz |
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
;;; onlinego.el | |
;; Author: Matthew Jones <matburt@online-go.com> | |
(require 'request) | |
(defvar onlinego-api-base "https://online-go.com/api/v1" | |
"The base onlinego api url") | |
(defcustom onlinego-api-client-id nil | |
"onlinego api client id, see: https://online-go.com/developer" |
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
FROM registry.access.redhat.com/ubi8/python-36 | |
USER root | |
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /bin/tini | |
RUN pip3 install git+https://github.com/ansible/ansible-runner | |
RUN pip3 install git+https://github.com/ansible/ansible | |
RUN chmod +xr /bin/tini |
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
import os | |
import i3 | |
import sys | |
import pickle | |
def showHelp(): | |
print(sys.argv[0] + " <save|restore>") | |
def get_visible_workspace(): | |
for workspace in i3.get_workspaces(): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder