This file contains hidden or 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
| pok |
This file contains hidden or 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 json | |
| import urllib, urllib2, base64 | |
| def get_config_id(title, username="admin", password="admin"): | |
| params = {"configurationType": "configuration.HttpConnection", "title":title} | |
| request = urllib2.Request("http://localhost:5516/api/v1/config/byTypeAndTitle?%s" % urllib.urlencode(params)) | |
| base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '') | |
| request.add_header("Authorization", "Basic %s" % base64string) | |
| result = urllib2.urlopen(request) | |
| return json.load(result)[0]["id"] |
This file contains hidden or 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 java.util import Date | |
| from sets import Set | |
| from com.xebialabs.xlrelease.domain import Release | |
| from com.xebialabs.xlrelease.domain.status import ReleaseStatus | |
| from com.xebialabs.xlrelease.api.v1.views import TeamView | |
| def create_blank_template(template_name): | |
| template = Release() |
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: client | |
| namespace: alcide-demo | |
| labels: | |
| app: client | |
| spec: | |
| replicas: 1 | |
| selector: |
This file contains hidden or 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
| #!/bin/bash | |
| # Extract cluster information to check compatibility with Alcide Support Matrix | |
| printf "Extracting Cluster Information...\n" | |
| # Check if kubectl is accessible | |
| if ! command -v kubectl &> /dev/null | |
| then | |
| printf "ERROR: kubectl command cannot be found. Please install kubectl for running this utility \n" | |
| exit 1 |
This file contains hidden or 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
| export TESTED_NS=tmobile | |
| export TESTED_ENV=free | |
| cat <<EOF | kubectl apply -f - && kubectl rollout status -n $TESTED_NS deployment/client --watch && kubectl logs -n $TESTED_NS deployment/client && kubectl delete -n $TESTED_NS deployment/client | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: client | |
| namespace: $TESTED_NS | |
| labels: | |
| app: client |
This file contains hidden or 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
| #com-atlassian-confluence .page-metadata-modification-info { | |
| display:none; | |
| } |
This file contains hidden or 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
| // Customize with appropriate values for your game | |
| Dictionary<string, string> userDetails = new Dictionary<string, string> | |
| { | |
| { "userId", "BestPlayerEver" }, | |
| { "userEmail", "[email protected]" }, | |
| { "userName", "Bob" } | |
| }; | |
| HelpshiftSdk.Login(userDetails); | |
| BacktraceClient BacktraceClient = GameObject.Find("Backtrace").GetComponent<BacktraceClient>(); |
This file contains hidden or 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
| Dictionary<string, string> leaderboard_position = new Dictionary<string, string>(); | |
| leaderboard_position.Add("type", "singleline"); | |
| leaderboard_position.Add("value", GameManager.Instance.GetLeaderboardPostion()); | |
| // Add to CIF (custom issue fields) key | |
| Dictionary<string, object> cifDictionary = new Dictionary<string, object>(); | |
| cifDictionary.Add("leaderboard_position", leaderboard_position); | |
| Dictionary<string, object> configMap = new Dictionary<string, object>(); | |
| configMap.Add("customIssueFields", cifDictionary); |
This file contains hidden or 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
| function deleteWholeFoodsCart() { | |
| var query = document.querySelectorAll("#sc-expanded-cart-localmarket input[value='Delete']") | |
| if (query.length) { | |
| query[0].click(); | |
| } | |
| if (query.length > 1) { | |
| setTimeout(deleteWholeFoodsCart, 500); | |
| } | |
| else { | |
| console.log('Finished'); |
OlderNewer