You can bind the /etc volume into docker like that:
docker run -it --rm -v /etc:/etc_host ubuntu bash
You gained root access. Then you can change the permissions of /etc_host/sudoers to 777:
chmod 777 /etc_host/sudoers
package main | |
import ( | |
"encoding/base64" | |
"fmt" | |
"time" | |
"github.com/skip2/go-qrcode" | |
"github.com/xlzd/gotp" | |
) |
From: "User Name" <[email protected]> | |
To: "John Smith" <[email protected]> | |
Subject: This is a test | |
Hi John, | |
I’m sending this mail with curl thru my gmail account. | |
Bye! |
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<canvas id="myCanvas" width="800" height="400" style="border:1px solid #000000;"> | |
Your browser does not support the HTML canvas tag. | |
</canvas> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link rel="stylesheet" href="https://code.jquery.com/ui/1.13.3/themes/base/jquery-ui.css"> | |
<script src="https://code.jquery.com/jquery-3.7.1.js"></script> | |
<script src="https://code.jquery.com/ui/1.13.3/jquery-ui.js"></script> | |
<script> |
server { | |
listen 443 ssl; | |
server_name storage.mydomain.co; | |
# ssl | |
ssl_certificate /home/ubuntu/ssl/storage.mydomain.co/server.crt; | |
ssl_certificate_key /home/ubuntu/ssl/storage.mydomain.co/server.key; | |
# To allow special characters in headers | |
ignore_invalid_headers off; |
You can bind the /etc volume into docker like that:
docker run -it --rm -v /etc:/etc_host ubuntu bash
You gained root access. Then you can change the permissions of /etc_host/sudoers to 777:
chmod 777 /etc_host/sudoers
Install pytorch CPU only
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
Install pytorch GPU
pip3 install torch torchvision torchaudio
import requests | |
import ujson as json | |
header ={ | |
'PRIVATE-TOKEN': 'your_token' | |
} | |
def get_commits_by_user(project_id, email, since, until, branch): | |
json_loads_of_commit = [] | |
params = { | |
"since": since, |
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"net/url" | |
"os" | |
) |
const readline = require('readline'); | |
const fs = require('fs'); | |
const path = require('path'); | |
// this function will convert json file to .env | |
// USAGE: | |
// => node ./scripts/json_to_env.js env.json | |
function main() { | |
const args = process.argv; | |
if (args.length <= 2) { |