-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
import numpy as np | |
import matplotlib.pyplot as plt | |
from sklearn import datasets, mixture | |
# Create some random clustered data in 2 dimensions | |
n_clusters = 3 | |
n_features = 2 | |
n_samples = 500 | |
data = datasets.make_blobs(n_samples=n_samples, |
import argparse | |
import time | |
import random | |
import math | |
parser = argparse.ArgumentParser(description="Approximate digits of Pi using Monte Carlo simulation.") | |
parser.add_argument("--num-samples", type=int, default=1000000) | |
parser.add_argument("--parallel", default=False, action="store_true") | |
parser.add_argument("--distributed", default=False, action="store_true") |
import numpy as np | |
def correlation_from_covariance(covariance): | |
v = np.sqrt(np.diag(covariance)) | |
outer_v = np.outer(v, v) | |
correlation = covariance / outer_v | |
correlation[covariance == 0] = 0 | |
return correlation |
# https://vt4help.service-now.com/kb_view_customer.do?sysparm_article=KB0010740#linux | |
wget https://secure.nis.vt.edu/resources/downloads/pulse-8.2R5.i386.deb | |
sudo dpkg –i pulse-8.2R5.i386.deb | |
/usr/local/pulse/PulseClient.sh install_dependency_packages |
#!/usr/bin/env bash | |
# shellcheck disable=SC2155 | |
## Copyright (C) 2017, Oleksandr Kucherenko | |
## Last revisit: 2023-09-30 | |
## Version: 2.0.2 | |
## License: MIT | |
## Fix: 2023-10-01, prefix for initial INIT_VERSION was not applied | |
## Fix: 2023-10-01, correct extraction of latest tag that match version pattern | |
## Added: 2023-09-30, @mrares prefix modification implemented |
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main > /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get purge lxc-docker docker.io | |
sudo apt-get install linux-image-extra-$(uname -r) | |
sudo apt-get install docker-engine |
import tensorflow as tf | |
import numpy as np | |
import time | |
N=10000 | |
K=4 | |
MAX_ITERS = 1000 | |
start = time.time() |
sudo apt-get update && sudo apt-get install usb-modeswitch && v=$(lsusb | grep "Huawei" | awk '{ print $6 }' | awk -F: '{ print $1 }'); p=$(lsusb | grep "Huawei" | awk '{ print $6 }' | awk -F: '{ print $2 }'); sudo usb_modeswitch -v $v -p $p -M '55534243123456780000000000000011062000000100000000000000000000' |
Working Huawei E3372h-153 SETPORT mappings | |
replacing A1,A2 with FF turns off need for usb_modeswitch | |
AT^SETPORT="A1,A2;12,1,16,A1,A2" | |
^GETPORTMODE: TYPE: WCDMA: huawei,PCUI:0,MDM:1,NDIS:2,CDROM:3,SD:4, | |
AT^SETPORT="A1,A2;1,12,16,A1,A2" |