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 | |
# Turn off SWAP | |
sysctl vm.swappiness=0 | |
echo 'vm.swappiness = 0' >> /etc/sysctl.conf |
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 | |
# Given a Prometheus block name, prints timerange | |
# for the metrics stored inside. | |
# | |
# Usage example: | |
# for b in `cat block_names.txt`; do ./get_block_time.sh $b; done | |
TIMEZONE="EEST" | |
BLOCK_DIR="/srv/prometheus_data/$1" |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
A script to scrape data and stats about Formula 1 teams from Wikipedia pages. | |
Results are exported into a CSV file. | |
""" | |
import logging | |
from datetime import datetime |
OlderNewer