Skip to content

Instantly share code, notes, and snippets.

@philipbankier
philipbankier / get-historic-data.py
Created May 23, 2024 18:07
covalent get historic data
from covalent import CovalentClient
import csv
from datetime import datetime, timedelta
# Constants
API_KEY = 'ckey_1bc79adaaaf24ab59fd0d566f25' # Replace this with your actual API key
CHAIN_ID = 'eth-mainnet'
CONTRACT_ADDRESS = '0xd417144312dbf50465b1c641d016962017ef6240' # Covalent Token address
TODAY = datetime.now()
TWO_MONTHS_AGO = TODAY - timedelta(days=60)
#!/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}"
apiVersion: apps/v1
kind: Deployment
metadata:
name: cluster-autoscaler
namespace: kube-system
labels:
app: cluster-autoscaler
spec:
replicas: 1
selector:
@philipbankier
philipbankier / docker-compose.yml
Created October 21, 2019 18:45
Quick-start local Elasticsearch and kibana
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
translateFilters(allData): void {
this.contentCheck = this.newFilters.some(check => check !== '');
}
updateCurrentFilters(): void {
this.newFilters.filter(selectedFilter => {
return this.currentFilters.some(currentCheck => currentCheck === selectedFilter);
});
}