Skip to content

Instantly share code, notes, and snippets.

@seamaner
seamaner / ChineseRemainderTheorem.py
Created August 16, 2021 08:01
Chinese Remainder Theorem
for k in range(100):
a=17*k+5
if a % 11 == 3 and a % 5 == 2:
print a%935
break
@seamaner
seamaner / install.sh
Created September 26, 2023 06:16
install rdp on ubuntu server 22.04
apt install xubuntu-desktop
sudo apt install lightdm
sudo service lighudm start
sudo apt install xrdp -y
sudo apt install xfce4 xfce4-goodies -y
echo "xfce4-session" | tee .xsession
systemctl status xrdp