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
#Handling the imports | |
import sklearn | |
from sklearn.model_selection import train_test_split | |
import pandas | |
import seaborn as sb | |
import matplotlib as plt | |
import numpy as np | |
from sklearn.preprocessing import StandardScaler | |
import cv2 | |
from PIL import Image |
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
5055 is the port number, Use any port that needs to be open | |
sudo iptables -A INPUT -p tcp --dport 5055 -j ACCEPT |
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
for i in */; do zip -r "${i%/}.zip" "$i"; 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
1 "Once you have their money, you never give it back." "The Nagus" (DS9 episode) | |
2 "The best deal is the one that makes the most profit." The 34th Rule (DS9 novel) | |
3 "Never spend more for an acquisition than you have to." "The Maquis, Part II" (DS9 episode) | |
4 "A woman wearing clothes is like a man in the kitchen." The Ferengi Rules of Acquisition (DS9 novel) | |
5 "Always exaggerate your estimates." Cold Fusion (SCE novel) | |
6 "Never let family stand in the way of opportunity." "The Nagus" (DS9 episode) | |
7 "Always keep your ears open." "In the Hands of the Prophets" (DS9 episode) | |
8 "Small print leads to large risk." The Ferengi Rules of Acquisition (DS9 novel) | |
9 "Instinct, plus opportunity, equals profit." "The Storyteller" (DS9 episode) | |
10 "Greed is eternal." "Prophet Motive" (VOY episode) |
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
#CODE | |
#Generate root password | |
import random, string | |
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20)) | |
#Download ngrok | |
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
! unzip -qq -n ngrok-stable-linux-amd64.zip | |
#Setup sshd |
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
ttyd -p 5055 -i 0.0.0.0 -R tmux a -r -t 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
cd ~ && python3 -m http.server 8082 |
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
# Setting default encoding python ENV - Ubuntu (Linux) - /bin/bash | |
export PYTHONIOENCODING=UTF-8 | |
***************************************************************************************** | |
# Making python server on any directory | |
python3 -m http.server |
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
sudo add-apt-repository ppa:graphics-drivers -y | |
sudo apt-get update | |
sudo apt-get install nvidia-driver-418 nvidia-utils-418 nvidia-settings -y | |
wget -N https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.105_418.39_linux.run | |
wget -N http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb | |
sudo ./cuda_10.1.105_418.39_linux.run --override --silent --toolkit --no-opengl-libs | |
sudo dpkg -i libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb | |
sudo apt-get install libcupti-dev -y |
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
from IPython import display | |
for i in range(100): | |
display.clear_output(wait=True) | |
print(i) |
OlderNewer