Skip to content

Instantly share code, notes, and snippets.

View arcturus10's full-sized avatar
👋

arcturus10

👋
View GitHub Profile
@arcturus10
arcturus10 / setup.sh
Last active April 6, 2024 11:58
Mate Desktop on Github Codespaces
#!/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
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"
@arcturus10
arcturus10 / remove-mono.sh
Last active September 23, 2023 07:44
Uninstall Mono (apt)
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
@arcturus10
arcturus10 / PeriodicTableJSON.json
Last active August 13, 2023 12:22
elements.ipynb
{
"elements": [
{
"name": "Hydrogen",
"appearance": "colorless gas",
"atomic_mass": 1.008,
"boil": 20.271,
"category": "diatomic nonmetal",
"density": 0.08988,
"discovered_by": "Henry Cavendish",
@arcturus10
arcturus10 / Program.cs
Last active July 1, 2023 07:49
WMI Temperature Monitoring Service
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace TestService
{
static class Program