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
! Remove empty spaces in grid | |
www.youtube.com##ytd-rich-grid-row,#contents.ytd-rich-grid-row:style(display: contents !important) | |
! Hide all videos containing the phrase "#shorts" | |
www.youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(/(^| )#Shorts?( |$)/i)) | |
www.youtube.com##ytd-rich-item-renderer:has(#video-title:has-text(/(^| )#Shorts?( |$)/i)) | |
! Hide all videos with the shorts indicator on the thumbnail | |
www.youtube.com##ytd-grid-video-renderer:has([overlay-style="SHORTS"]) | |
www.youtube.com##ytd-rich-item-renderer:has([overlay-style="SHORTS"]) |
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
gh run list --json databaseId -q '.[].databaseId' | | |
xargs -IID gh api \ | |
"repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" \ | |
-X DELETE |
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
count_over_time({namespace="ingress-nginx"} | |
| pattern `<remote_addr> - <remote_user> [<time_local>] "<request>" <status> <body_bytes_sent> "<http_referer>" "<http_user_agent>" <request_length> <request_time> [<proxy_upstream_name>] [<proxy_alternative_upstream_name>] <upstream_addr> <upstream_response_length> <upstream_response_time> <upstream_status> <req_id>` | |
| upstream_response_time > 120 | |
| __error__="" [5m]) |
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
{ | |
"HttpHeaders" : { | |
"User-Agent" : "Docker-Client/19.03.13 (darwin)" | |
}, | |
"credsStore": "osxkeychain", | |
"experimental" : "disabled", | |
"credHelpers": { | |
"748094632676.dkr.ecr.eu-west-1.amazonaws.com": "ecr-login" | |
} | |
} |
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
eksctl create iamidentitymapping --arn arn:aws:iam::<account ID>:user/<IAM user> --group system:masters --cluster <cluster-name> --username <username> |
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
defaults write net.tunnelblick.tunnelblick skipWarningAboutDnsProblems -bool yes |
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
{ | |
"series": [{ | |
"metric": "my.metric.name", | |
"points": [[1583960307, 28]], | |
"type": "gauge", | |
"tags": ["tag1:value","tag2:value","tag3:value"]} | |
] | |
} | |
# with 1583960307 being the value outputed by date +%s |
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 | |
ip a s $(ip r s | grep default | cut -f5 -d' ') | grep inet | grep -v inet6 | cut -f6 -d' ' | cut -f1 -d'/' |
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
SOURCE_IMG= | |
DEST_IMG= | |
echo "FROM $SOURCE_IMG" | docker build \ | |
--label Author="Supplystack NV <[email protected]>" \ | |
--label org.label-schema.schema-version="1.0" \ | |
--label org.label-schema.build-date="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ | |
-t "$DEST_IMG" - |
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
# Running this command will not delete anything. | |
# Redirect output to a temporary file, view contents, run. | |
kubectl get --all-namespaces rs -o json|jq -r '.items[] | select(.spec.replicas | contains(0)) | "kubectl delete rs --namespace=\(.metadata.namespace) \(.metadata.name)"' |
NewerOlder