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
document.querySelectorAll(".coupon-action.button-blue").forEach((f, i) => { | |
setTimeout(() => { | |
f.click() | |
}, 1500 * i) | |
}) |
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
initialDeploy: false" namespace=some-service rollout=some-service | |
time="2023-11-13T13:24:00Z" level=error msg="roCtx.reconcile err Operation cannot be fulfilled on replicasets.apps \"some-service-c94d4464d\": the object has been modified; please apply your changes to the latest version and try again" generation=149 namespace=some-service resourceVersion=2336947719 rollout=some-service | |
time="2023-11-13T13:24:00Z" level=info msg="Reconciliation completed" generation=149 namespace=some-service resourceVersion=2336947719 rollout=some-service time_ms=40.583420000000004 | |
time="2023-11-13T13:24:00Z" level=error msg="rollout syncHandler error: Operation cannot be fulfilled on replicasets.apps \"some-service-c94d4464d\": the object has been modified; please apply your changes to the latest version and try again" namespace=some-service rollout=some-service | |
time="2023-11-13T13:24:00Z" level=info msg="rollout syncHandler queue retries: 147 : key \"some-service/some-service\"" namespace=some-service rollout=some-service | |
t |
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: backstage.io/v1alpha1 | |
kind: Component | |
metadata: | |
name: dice-roller | |
description: It rolls dice | |
tags: | |
- go | |
annotations: | |
"backstage.io/kubernetes": dice-roller | |
spec: |
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
kubectl get pods --sort-by='.status.containerStatuses[0].restartCount' |
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
kubectl get secrets --all-namespaces -o=json | jq -r '.items[] | select(.type=="kubernetes.io/service-account-token") | "kubectl delete secret \(.metadata.name) -n \(.metadata.namespace)"' > refresh-api-tokens.sh |
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
#!/usr/bin/env bash | |
kubectl get po -l app=$1 -o=json | jq -r '.items[].metadata.name' | while read object; do | |
echo "rebooting $object" | |
kubectl delete po "$object" | |
sleep 180 | |
done |
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 java.util.Arrays; | |
public class LCS { | |
public static void main(String[] args) { | |
String str1 = "FAGGTAB"; | |
String str2 = "FGXTXAYB"; | |
int[][] matrix = buildMatrix(str1, str2); |
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
#!/usr/bin/env bash | |
kubectl get po -l app=$1 -o=json | jq -r '.items[].metadata.name' | while read object; do | |
kubectl delete po "$object" | |
sleep 180 | |
done |
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
aws ec2 describe-security-groups | jq -r '.SecurityGroups[] | select(.Description | contains("ingress")) | .GroupId' |xargs -I % aws ec2 delete-security-group --group-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
curl -s https://circleci.com/api/v1.1/project/github/user/repo?circle-token=<token> | jq '[.[] | select(.status=="success" or .status=="fixed")] | max_by(.build_num).build_num' |
NewerOlder