Repo Browser

bashcards/bashcards-bashcards
cards/814004160807--owl-spin/raw.sh
#!/bin/bash;g=$(tput setaf 2);r=$(tput setaf 1);y=$(tput setaf 3);e=$(tput sgr0);c(){ wget -q --spider http://google.com||{ echo -e "$r No internet.$e";exit 1; };echo -e "$g Internet connected.$e";};s(){ echo -e "$y Stopping $1...$e";sudo systemctl stop $1&&echo -e "$g $1 stopped.$e"||echo -e "$r Failed to stop $1.$e";};d(){ echo -e "$y Disabling $1...$e";sudo systemctl disable $1&&echo -e "$g $1 disabled.$e"||echo -e "$r Failed to disable $1.$e";};i(){ echo -e "$y Installing $1...$e";sudo apt-get install -y $1&&echo -e "$g $1 installed.$e"||{ echo -e "$r Failed to install $1.$e";exit 1; };};v(){ echo -e "$y Starting VNC with $1...$e";tightvncserver -geometry $1&&echo -e "$g VNC started.$e"||{ echo -e "$r Failed to start VNC.$e";exit 1; };};c;s vncserver-x11-serviced.service;s vncserver-virtuald.service;d vncserver-virtuald.service;i tightvncserver;echo -e "$y Enter VNC password:$e";vncpasswd;v 1280x720;echo -e "$g Connect to: $(hostname -I|awk '{print $1}'):1$e"
NameTypeSize
README.mdfile1,073
assetsfile121
auto-art.pngfile2,037,791
back-data-url.txtfile195,502
back-thumb.pngfile109,367
back.pngfile146,609
front-data-url.txtfile275,770
front-thumb.pngfile132,964
front.pngfile206,811
qr-payload.txtfile607
raw.shfile977