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
from pathlib import Path | |
def download_videos(video_path: Path, audio_files: Path): | |
from shutil import make_archive | |
import tempfile | |
from pytube import YouTube | |
from pytube.exceptions import RegexMatchError | |
with open(video_path.resolve(), "r") as f: | |
videos_ids = f.read().splitlines() |
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
https://www.youtube.com/watch?v=qDKSH_X68XE https://www.youtube.com/watch?v=Rqah6F0D6-Y https://www.youtube.com/watch?v=pk9ptAkR84k https://www.youtube.com/watch?v=8nIhUx9rnOU https://www.youtube.com/watch?v=1PKH_D6zjoM |
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
rsync --exclude-from=.gitignore -avz -e ssh . $1 | |
while inotifywait -r -e modify,create,delete . ; do | |
rsync --exclude-from=.gitignore -avz --delete -e ssh . $1 | |
done |
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
{ | |
"number": 990000112, | |
"type_document_id": 1, | |
"date": "2020-02-02", | |
"time": "09:08:39", | |
"resolution_number": "18760000001", | |
"prefix": "FE", | |
"sendmail": false, | |
"customer": { | |
"identification_number": 901097473, |
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
from dateutil.parser import parse, parserinfo | |
month_list = [(month[0:3], month) for month in ['enero', | |
'febrero', | |
'marzo', | |
'abril', | |
'mayo', | |
'junio', | |
'julio', | |
'agosto', | |
'septiembre', |
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
# Como reproducir videos en Colab | |
from IPython.display import HTML | |
from base64 import b64encode | |
mp4 = open("/content/examples/videos/roller-coaster.mp4", "rb").read() | |
data_url = "data:video/mp4;base64," + b64encode(mp4).decode() | |
HTML(""" | |
<video controls> | |
<source src="%s" type="video/mp4"> | |
</video> |
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
[977 ms] Start: Run: /bin/sh -c a="$(which 'podman')" && realpath "$a" | |
[990 ms] Start: Run: podman events --format json --filter status=start | |
[998 ms] Start: Starting container | |
[999 ms] Start: Run: podman run -a STDOUT -a STDERR --mount type=bind,source=/home/dgromov/Documents/personal_projects/kmnist,target=/workspaces/kmnist -l vsch.quality=stable -l vsch.remote.devPort=0 -l vsch.local.folder=/home/dgromov/Documents/personal_projects/kmnist --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --entrypoint /bin/sh vsc-kmnist-819698cfa28598f9ef9d31824dd276d4-uid -c echo Container started ; while sleep 1; do :; done | |
[1197 ms] Start: Run: podman inspect --type container 09bf7ec715d4e43aad577ef55f6e9f67c514166c7f0810291a716030edb9a342 | |
Container started | |
[1293 ms] Start: Run: podman ps -q -a --filter label=vsch.local.folder=/home/dgromov/Documents/personal_projects/kmnist --filter label=vsch.quality=stable | |
[1372 ms] Start: Run: podman inspect --type container 09bf7ec715d4 | |
[1457 ms] Start: Inspecting container | |
[1 |
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
M: | |
- - -0.12230545788105798 | |
- -0.4525301941599148 | |
- 132.39565815624542 | |
- - -4.498354225130425e-16 | |
- -1.926310961626659 | |
- 433.4199663659987 | |
- - -1.070893623863948e-18 | |
- -0.004759720735871168 | |
- 1.0 |
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
escargate estos dos archivos: | |
https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/15572301/+files/chromium-browser_70.0.3538.77-0ubuntu0.16.04.1_arm64.deb | |
https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/15572301/+files/chromium-codecs-ffmpeg-extra_70.0.3538.77-0ubuntu0.16.04.1_arm64.deb |
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
sudo rm -rf /home/nvidia/.pki | |
sudo rm -rf /home/nvidia/.configs/chromium |