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
javascript:(function() { | |
let table = document.getElementsByTagName("table")[0]; | |
let linkList = table.querySelectorAll("a.object-link"); | |
let imageElements = [...linkList].map(url => { | |
let path = url.href.split("_details")[1]; | |
let name = url.href.split("/").pop().split("?")[0]; | |
return "<img height=200 src='https://storage.cloud.google.com" + path + "' title='" + name + "'/>"; | |
}); | |
imageElements = Array.from(new Set(imageElements)); | |
table.insertAdjacentHTML("beforebegin", "<div>" + imageElements.join("") + "</div>"); |
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 subprocess | |
import os | |
from pathlib import Path | |
from typing import Union | |
class SshClient(): | |
""" Perform commands and copy files on ssh using subprocess | |
and native ssh client (OpenSSH). | |
""" | |
OlderNewer