Download: https://grafana.com/grafana/download?platform=arm
wget https://dl.grafana.com/oss/release/grafana_6.4.1_arm64.deb sudo dpkg -i grafana_6.4.1_arm64.deb sudo service grafana-server start should be up and running on :3000 now
#The MIT License (MIT) | |
# | |
#Copyright (c) 2015 Andre Queiroz | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy | |
#of this software and associated documentation files (the "Software"), to deal | |
#in the Software without restriction, including without limitation the rights | |
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
#copies of the Software, and to permit persons to whom the Software is | |
#furnished to do so, subject to the following conditions: |
#/usr/bin/python | |
import requests as r | |
import datetime as dt | |
def nxtime2datetime(nix_time): | |
return dt.datetime.fromtimestamp(nix_time) | |
#get time of server | |
url = 'https://api.kraken.com/0/public/Time' |
# Eat up some memory until 30% of system total | |
import psutil, os | |
nb_process_id = os.getpid() | |
p = psutil.Process(nb_process_id) | |
from multiprocessing import Pool | |
import string | |
import random |
Download: https://grafana.com/grafana/download?platform=arm
wget https://dl.grafana.com/oss/release/grafana_6.4.1_arm64.deb sudo dpkg -i grafana_6.4.1_arm64.deb sudo service grafana-server start should be up and running on :3000 now
##Run install_syncthing.sh
mkdir -p /opt/syncthing
cd /opt/syncthing
wget https://github.com/syncthing/syncthing/releases/download/v1.3.1-rc.1/syncthing-linux-arm64-v1.3.1-rc.1.tar.gz
tar -xzvf *.tar.gz
mv syncthing*/* . && rm *.tar.gz && rm -r syncthing*/
ln -s /opt/syncthing/syncthing /usr/bin/syncthing
cd /etc/init.d/
#!/bin/bash | |
source='/srv/dev-disk-by-label-' | |
target='/srv/dev-disk-by-label-' | |
days=30 | |
# delete | |
find ${target} -mtime +$days -type f -exec rm "{}" \; | |
find ${source} -mtime -$days -type f -exec cp -a "{}" ${target} \; |
#!/bin/bash | |
source='/srv/dev-disk-by-label-' | |
target='/srv/dev-disk-by-label-' | |
days=30 | |
# delete | |
find ${target} -mtime +$days -type f -exec rm "{}" \; | |
# copy and link | |
find ${source} -mtime -$days -type f -exec cp -la "{}" ${target} \; |
trigger: | |
- master | |
variables: | |
# Azure Resource Manager connection created during pipeline creation | |
azureSubscription: 'conn' | |
# Function app name | |
functionAppName: 'functestnewtry' |
#!/bin/sh | |
set -euo pipefail | |
# Very simple script to extract all files from a list of archives | |
# The inlcude files is used to recursively only extract from paths specified in this file | |
# The include.txt has the following format | |
# R /path/to/include |