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 | |
shopt -s extglob | |
filename=$1 | |
tmpfile=$(mktemp) | |
tolist=$2 | |
shift 2 | |
mailsubject=$@ | |
echo -e "From: Administrator <[email protected]>" >> $tmpfile |
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 | |
set -e | |
# PARAMETERS | |
IDLE_TIME=7200 | |
echo "Fetching the autostop script" | |
wget https://raw.githubusercontent.com/aws-samples/amazon-sagemaker-notebook-instance-lifecycle-config-samples/master/scripts/auto-stop-idle/autostop.py |
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 | |
HOSTNAME=${1:-localhost} | |
openssl req -newkey rsa:2048 -nodes -keyout $HOSTNAME.key -x509 -days 3650 -out $HOSTNAME.crt | |
echo "apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: $HOSTNAME.tls | |
namespace: default | |
type: kubernetes.io/tls | |
data: |
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
#include "DigiKeyboard.h" | |
// This sketch is used to do the initial setup on | |
// a freshly installed Raspberry Pi: Upload it to a | |
// Digispark board, and connect it to your Arduino. | |
// It will log in using 'pi'/'raspberry' and execute | |
// 'sudo systemctl enable ssh' and '...start ssh' | |
const int def_delay = 125; | |
void setup() { |
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
RIoT Individual Contributor License Agreement | |
(Adapted from http://www.apache.org/licenses/icla.txt, © The Apache Software Foundation) | |
Thank you for your interest in the RIoT Project (the "Organization"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Organization must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Organization and its users; it does not change your rights to use your own Contributions for any other purpose. | |
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Organization. In return, the Organization shall not use Your Contributions in a way that is contrary to the public benefit or inconsistent with its bylaws in effect at the time of the Contribution. Except for the license grante |
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
... | |
if [ -z "$STY" ]; then screen -R; fi |