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 | |
# Downloads all SSH host keys from the given hosts | |
echo "$@" | |
for HOST in "$@" | |
do | |
mkdir "$HOST" | |
scp $HOST:/etc/ssh/*.pub $HOST | |
done |
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/python3 | |
from math import factorial | |
accuracy = input("Accuracy (integer value >0):") | |
e = 0 | |
for i in range(int(accuracy)): | |
e = e + 1/factorial(i) |
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/sh | |
echo "Installing packages..." | |
sudo apt install -y pkg-config libglew-dev libcurl3-openssl-dev libsdl2-dev libsdl2-image-dev libalut-dev libjpeg-dev libxinerama-dev libxft-dev | |
echo "Installing SDL-2.0.2..." | |
wget http://www.libsdl.org/release/SDL2-2.0.2.tar.gz | |
tar -zxvf SDL2-2.0.2.tar.gz | |
cd SDL2-2.0.2/ | |
./configure && make && sudo make install |