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
library(processx) | |
library(stringr) | |
runPysparkCopy <- function(fsFrom, fsTo, move=FALSE) { | |
pyscript_file <- tempfile(tmpdir="/tmp") | |
fileh<-file(pyscript_file) | |
copy_or_move <- if(move) "mv" else "cp" | |
writeLines(stringr::str_interp(" | |
from pyspark.dbutils import DBUtils | |
from pyspark.context import SparkContext |
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
const modalWaitElem = async selector => { | |
while ( document.querySelector(selector) !== null) { | |
await new Promise( _ => setTimeout(_, 500) ) | |
// // faster than setTimeout (not needed) | |
// await new Promise( _ => requestAnimationFrame(_) ) | |
} | |
return document.querySelector(selector) | |
}; | |
async function createVisualElement(parent, className) { |
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
docker run \ | |
-d \ | |
--name=wireguard \ | |
--cap-add=NET_ADMIN \ | |
--cap-add=SYS_MODULE \ | |
-e PUID=1000 \ | |
-e PGID=1000 \ | |
-e TZ=Europe/Madrid \ | |
-e SERVERURL=3.71.216.2 \ | |
-e SERVERPORT=51820 \ |
OlderNewer