Skip to content

Instantly share code, notes, and snippets.

View DevHDRA's full-sized avatar
🪐

Hector David Rodriguez Aguilar DevHDRA

🪐
  • Honduras
  • 08:11 (UTC -12:00)
View GitHub Profile
@DevHDRA
DevHDRA / child.js
Created February 13, 2023 02:23
Upload files with s3api on linux
const { exec } = require('child_process');
let prefix = process.argv[2]
let bucket = process.argv[3]
let isPublic = process.argv[4]
let separateLines;
if (isPublic) {
isPublic = 'public-read'
}
@DevHDRA
DevHDRA / index.html
Created January 16, 2023 04:07
Screenshot-desktop POC
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>