Scan network for open ports and list their IP address
nmap -p 80 192.168.0.179/24 | grep -B 4 -i open | grep -i report
import threading | |
class Thread(threading.Thread): | |
def __init__(self, group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None): | |
threading.Thread.__init__(self, group, target, name, args, kwargs, daemon=daemon) | |
self._return = None | |
def run(self): | |
if self._target is not None: | |
self._return = self._target(*self._args, **self._kwargs) |
#!/usr/bin/env python | |
# Copyright (C) 2003-2007 Robey Pointer <[email protected]> | |
# | |
# This file is part of paramiko. | |
# | |
# Paramiko is free software; you can redistribute it and/or modify it under the | |
# terms of the GNU Lesser General Public License as published by the Free | |
# Software Foundation; either version 2.1 of the License, or (at your option) | |
# any later version. |
Scan network for open ports and list their IP address
nmap -p 80 192.168.0.179/24 | grep -B 4 -i open | grep -i report
#!/usr/bin/env bash | |
START_TIME=$SECONDS | |
set -e | |
echo "-----START GENERATING HLS STREAM-----" | |
# Usage create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME] | |
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1 | |
# comment/add lines here to control which renditions would be created | |
renditions=( |
#https://vitux.com/install-nfs-server-and-client-on-ubuntu/ | |
#Step 1: Install NFS Common | |
sudo apt-get update -y | |
sudo apt-get install nfs-common -y | |
#Step 2: Create a mount point for the NFS host’s shared folder | |
#Your client’s system needs a directory where all the content shared by the host server in the export folder can be accessed. | |
#You can create this folder anywhere on your system. We are creating a mount folder in the mnt directory of our client’s machine. | |
CLIENT_NFS_DIR="/media/NFS" |
#!/bin/bash | |
mount_safely (){ | |
PARTITION=$1; MOUNTPOINT=$2 | |
if [ `whoami` == root ];then | |
# create mount point dir if doesn't exists | |
[ -d $MOUNTPOINT ] || mkdir -p $MOUNTPOINT | |
# mount the partition to mountpoint | |
mount $PARTITION $MOUNTPOINT |
sudo apt-get install apt-transport-https -y
wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub
sudo apt-key add openvpn-repo-pkg-key.pub
export DISTRO='bionic'
wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-$DISTRO.list
sudo apt-get update -y
sudo apt-get install openvpn3 -y
# Check if sudo permission is available, else exit | |
if [ `id -u` != "0" ] | |
then | |
echo '[ERROR] please run with sudo' | |
exit | |
fi | |
# Retrieve new hostname from args | |
if [ -z "$1" ] | |
then |
# warning run every command one by one with precautions | |
# remove nvidia-docker | |
sudo apt-get purge -y docker-engine docker docker.io docker-ce -y | |
sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce -y | |
## remove unsed programs | |
sudo apt-get remove --purge libreoffice* -y | |
sudo apt-get remove libreoffice-core -y | |
sudo apt-get remove snapd lightdm cups chromium* -y |
These are all commands you need to install Docker Compose on a freshly installed NVIDIA Jetson.
# step 1, install Python PIP
$ sudo apt-get update -y
$ sudo apt-get install python3-pip
# step 2, install Docker Compose build dependencies for Ubuntu 18.04 on aarch64
$ sudo apt-get install -y libffi-dev libssl-dev python-openssl