- Updated on May 29 to accommodate etcd container not having
/bin/shavailable anymore.
curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
| set -l data_status (curl -s https://iceportal.de/api1/rs/status) | |
| set -l data_trip (curl -s https://iceportal.de/api1/rs/tripInfo/trip) | |
| # next stop | |
| echo (echo $data_trip | jq -r '([ .trip.stops[] | select(.info.passed==false) ] | |
| | first).station.name') | |
| # train number | |
| echo (echo $data_trip | jq -r '"\(.trip.trainType)-\(.trip.vzn)"') | |
| # speed | |
| echo speed (echo $data_status | jq -r '"\(.speed) km/h"') |
| import grpc | |
| import helloworld_pb2 | |
| import helloworld_pb2_grpc | |
| # you need to use secure port, | |
| # otherwise call credentials won't be transmitted | |
| def run(): | |
| with open('server.crt', 'rb') as f: | |
| trusted_certs = f.read() |
# stop active raid
mdadm --stop /dev/md[01]
# destroy partition table on hdds
dd if=/dev/zero of=/dev/sda bs=1M count=512
dd if=/dev/zero of=/dev/sdb bs=1M count=512
# create new partition table
sgdisk -og /dev/sda| #!/bin/bash | |
| ############################################################### | |
| # LiveConfig mail path lookup by Jonas Friedmann (iWelt AG) # | |
| # j@frd.mn # | |
| # http://frd.mn # | |
| # http://twitter.com/frdmn # | |
| ############################################################### | |
| STRING=${1} |
| ### General List of Reserved Words | |
| ### Stuart P. Bentley <stuart@testtrack4.com>, June 4, 2013 | |
| ## This is a general list of words you may want to consider reserving, | |
| ## in a system where users can pick any name, in a context where the | |
| ## system may use names as well. One prominent example of a system | |
| ## where this is the case would be a site that serves pages for users, | |
| ## at their username, from the site root, like | |
| ## http://twitter.com/stuartpb . In this system, you would want to | |
| ## reserve some routes for pages that would commonly be expected to |