https://gov.gitcoin.co/t/an-evolutionary-lens-on-web3-open-source-software/10293
View helm-upgrade-deprecated-apis.sh
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
#!/bin/bash | |
# This script fixes helmcharts secrets that was deployed with API objects paths, that was deprecated. | |
# More info here https://github.com/helm/helm/issues/7219 | |
# Use it own risks! | |
# After executing you need to redeploy | |
NamespaceName=$1 | |
echo "${NamespaceName}" |
View kubernetes-autoscaling-example.yaml
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: cluster-autoscaler | |
namespace: kube-system | |
labels: | |
app: cluster-autoscaler | |
spec: | |
replicas: 1 | |
selector: |
View docker-compose.yml
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: '2' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0 | |
environment: | |
- discovery.type=single-node | |
ports: | |
- 127.0.0.1:9200:9200 | |
kibana: | |
image: docker.elastic.co/kibana/kibana:7.1.0 |
View TypeScriptTwoArrayCheck
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
translateFilters(allData): void { | |
this.contentCheck = this.newFilters.some(check => check !== ''); | |
} | |
updateCurrentFilters(): void { | |
this.newFilters.filter(selectedFilter => { | |
return this.currentFilters.some(currentCheck => currentCheck === selectedFilter); | |
}); | |
} |