This file contains hidden or 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
| #!/bin/bash | |
| function update { | |
| # Refresh OS a little bit | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| sudo snap refresh | |
| sudo apt autoremove | |
| sudo apt-get install -f -y |
This file contains hidden or 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 socket | |
| def find_address(hostname="localhost", address_range=range(255)): | |
| for address in address_range: | |
| print(address) | |
| try: | |
| host = socket.gethostbyaddr("192.168.1.{}".format(address)) | |
| except socket.herror: | |
| continue |
This file contains hidden or 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
| export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$" | |
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxBxDxCxegedabagacad | |
| alias ls='ls -GFh' |
This file contains hidden or 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 numpy as np | |
| import cv2, PIL | |
| from cv2 import aruco | |
| import matplotlib.pyplot as plt | |
| import matplotlib as mpl | |
| import pandas as pd | |
| aruco_dict = aruco.Dictionary_get(aruco.DICT_ARUCO_ORIGINAL) | |
| fig = plt.figure() |