start new:
tmux
start new with session name:
tmux new -s myname
#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 |
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) |
import tensorflow as tf | |
import tensorflow_hub as hub | |
module_url = "https://tfhub.dev/google/universal-sentence-encoder-large/3" | |
# Import the Universal Sentence Encoder's TF Hub module | |
embed = hub.Module(module_url) | |
# Compute a representation for each message, showing various lengths supported. | |
messages = ["That band rocks!", "That song is really cool."] | |
with tf.Session() as session: |
# If "Disk Utility" can't erase a demaged disk and throw errors, like these: | |
# a) "-69888: Couldn't unmount disk"; | |
# b) "Couldn't modify partition map". | |
# You can repair disk (if it is damaged partially, just by a program error, while changing partition map of a disk in) by | |
# FULL ERASING OF A DISK - you can do that ONLY in A COMMAND LINE, using "diskutil" command (on OS X) | |
# 1. Firstly you must get path of a drive in a system, like this: | |
diskutil list | |
# Than complete erasing of a disk: | |
diskutil eraseDisk free EMPTY /dev/disk4 |
I wanted to install GIT-Lfs
on my user account without access to server root account. I write this to my future self.
tar.gz
file from git-lfs website.wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-linux-amd64-v3.2.0.tar.gz
2.Untar it
tar xvf git-lfs-linux-amd64-v3.2.0.tar.gz