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 | |
# Credits: https://oitibs.com/debian-wheezy-dynamic-motd/ | |
apt-get update && apt-get install -y figlet | |
mkdir /etc/update-motd.d/ && cd /etc/update-motd.d/ | |
rm /etc/motd | |
ln -s /var/run/motd /etc/motd | |
cat > /etc/update-motd.d/00-header << 'EOL' | |
#!/bin/sh |
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 | |
# Credits: https://oitibs.com/debian-jessie-dynamic-motd/ | |
apt-get update && apt-get install -y figlet lsb-release | |
mkdir -p /etc/update-motd.d/ && cd /etc/update-motd.d/ | |
rm /etc/motd | |
ln -s /var/run/motd /etc/motd | |
cat > /etc/update-motd.d/00-header << 'EOL' | |
#!/bin/sh |
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
apt-get purge nodejs -y | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
curl -sL https://deb.nodesource.com/setup_7.x | bash - | |
apt-get update && apt-get install -y yarn nodejs |
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
openssl genrsa -des3 -out server.key 4096 && openssl req -new -key server.key -out server.csr && cp server.key server.key.org && openssl rsa -in server.key.org -out server.key && openssl x509 -req -days 1096 -in server.csr -signkey server.key -out server.crt && rm -f server.key.org |
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 | |
while true; do | |
sleep 1 | |
DATE=$(date) | |
TEMP=$(sensors | awk '/Core 0/ {sub("°C", "", $3); print($3)}') | |
echo $DATE $TEMP >> temp.log | |
done |