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/sudo /bin/bash | |
add-apt-repository ppa:apt-fast/stable ; apt update ; apt -y install apt-fast | |
apt-fast install mate-desktop-environment-core | |
apt-fast install novnc python3-websockify tigervnc-standalone-server | |
vncpasswd | |
tigervncserver -xstartup /usr/bin/mate-session -geometry 1366x768 -localhost no :1 | |
openssl req -x509 -nodes -newkey rsa:3072 -keyout novnc.pem -out novnc.pem -days 3650 | |
websockify -D --web=/usr/share/novnc/ --cert=/home/debian/novnc.pem 6080 localhost:5901 | |
tigervncserver -kill :1 | |
tigervncserver -xstartup /usr/bin/mate-session -geometry 1366x768 -localhost no :1 |
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
import os | |
import sys | |
n = len(sys.argv) | |
print("Total arguments passed:",(n-1)) | |
#TO PREVENT COUNTING THE FILENAME ARGUMENT | |
for i in range(1, n): | |
distro = (sys.argv[i]) | |
command = "neofetch --ascii_distro"+" "+distro+" "+"-L" |
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
echo " Preparing to remove MonoDevelop " | |
apt autoremove monodevelop | |
read -s -n 1 | |
echo " Preparing to remove mono " | |
grep ^Package: /var/lib/apt/lists/download.mono-project.com*_Packages > pkgmetadata.TMP | |
sed -e 's/^.*Package: //' pkgmetadata.TMP > pkgmeta2.TMP | |
echo "These pachages have been detected and will be DELETED" | |
cat pkgmeta2.TMP | |
apt purge $(cat pkgmeta2.TMP) | |
rm pkgmetadata.TMP pkgmeta2.TMP |
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
{ | |
"elements": [ | |
{ | |
"name": "Hydrogen", | |
"appearance": "colorless gas", | |
"atomic_mass": 1.008, | |
"boil": 20.271, | |
"category": "diatomic nonmetal", | |
"density": 0.08988, | |
"discovered_by": "Henry Cavendish", |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.ServiceProcess; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TestService | |
{ | |
static class Program |