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 prompty | |
from prompty.core import Prompty, ModelSettings, PropertySettings, TemplateSettings, FilePath | |
from prompty.tracer import Tracer, PromptyTracer, console_tracer | |
import prompty.openai | |
import ldclient | |
from ldclient import Context | |
from ldclient.config import Config | |
from ldai.client import LDAIClient | |
ldclient.set_config(Config("CHANGE_ME")) |
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
TASK [Validating Project: dano-test-project] *********************************** | |
fatal: [localhost]: FAILED! => changed=false | |
validated: false | |
validation: | |
- failures: | |
- Need at least one tag | |
key: test-bool | |
- failures: | |
- Need at least one tag | |
key: test-flag |
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
- fail: | |
msg: cannot set included_actions and excluded_actions | |
when: included_actions is defined and excluded_actions is defined |
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
# Root logger option | |
log4j.rootLogger=INFO, stdout | |
# Direct log messages to stdout | |
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | |
log4j.appender.stdout.Target=System.out | |
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | |
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1} - %m%n |
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
# Creates a Boolean flag | |
{ | |
"ANSIBLE_MODULE_ARGS": { | |
"api_key": "change_me", | |
"type": "bool", | |
"state": "present", | |
"key": "example_fabbbnafewfzq", | |
"tags": ["yellow", "green"], | |
"name": "ansible-random-new-name", | |
"description": "This is an awesome feature that will be implemented." |
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
@NonCPS | |
def call(String repository, String credentials) { | |
//withCredentials([usernamePassword(credentialsId: credentials, | |
// usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { | |
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: credentials.toString(), passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME']]) { | |
println env.USERNAME | |
println env.PASSWORD | |
sh 'echo $USERNAME and $PASSWORD' | |
def authString = "${env.USERNAME}:${env.PASSWORD}".encodeBase64().toString(); | |
URLConnection conn = new URL("https://api.${githubUrl}.com/repos/${repository}/releases/latest").openConnection(); |
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
Command Line: '"/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64" -listen 0.0.0.0 -port 12000' | |
Starting up... | |
Startup Phase 1 complete | |
Fatal error encountered! | |
Backtrace: | |
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x653068] | |
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x653aa0] | |
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x6534f2] | |
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x5f0ac8] | |
/SC2/3.16.1/StarCraftII/Versions/Base55958/SC2_x64[0x19348d5] |
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 ubuntu:16.04 | |
MAINTAINER [email protected] | |
# Update the image with required build packages | |
RUN \ | |
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \ | |
apt-get update && \ | |
apt-get -y upgrade && \ | |
apt-get install -y \ | |
net-tools \ |
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
[race: Random | |
options { | |
raw: true | |
score: true | |
} | |
server_ports { | |
game_port: 15198 | |
base_port: 19504 | |
} | |
client_ports { |
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
def _docker(self, run_config): | |
def poll(self): | |
return True if self.status == "running" else False | |
def running(self): | |
pass | |
client = docker.from_env() | |
container = client.containers.run("s2client-game", ports={'12000': self._port}, detach=True, | |
healthcheck={"test": "netstat -anpt | grep 12000 || exit 1"}) |
NewerOlder