Typed name:node_modules type:(file folder)
into the search box
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
version: '3.9' | |
services: | |
reverse-proxy: | |
image: traefik:v3.0 | |
command: | |
- "--api.insecure=true" | |
- "--providers.docker=true" | |
- "--providers.docker.exposedbydefault=false" | |
- "--entrypoints.dbsecure.address=:5432" |
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
# install dependency | |
sudo apt-get install -y lzma liblzma-dev libreadline-dev libsqlite3-dev libffi-dev libpq-dev | |
# install pyenv | |
curl https://pyenv.run | bash | |
# post-script | |
# add output from shell | |
# install python 3.11.4 |
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
# update first | |
sudo apt update | |
# install docker | |
curl -fsSL get.docker.com -o get-docker.sh && sudo sh get-docker.sh | |
# Add user to the "docker" group | |
sudo usermod -aG docker $USER | |
# install docker-compose |

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 { exec } = require('child_process') | |
/** | |
* Executes shell command and return as a Promise. | |
* @param cmd {string} | |
* @return {Promise<string>} | |
*/ | |
const execShell = cmd => { | |
return new Promise((resolve, reject) => { |
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 * as functions from 'firebase-functions' | |
import * as nodemailer from 'nodemailer' | |
import * as cors from 'cors' | |
const corsHandler = cors({ origin: true }) | |
export const form = functions.https.onRequest((req, res) => { | |
const corsFn = cors() | |
corsFn(req, res, function() { | |
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0' |
Please use version 8.11.3
yarn add @tensorflow/tfjs @tensorflow/tfjs-node
Error show
yarn add v1.12.3
[1/4] Resolving packages...
[2/4] Fetching packages...
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
-- 4.1 | |
create or replace procedure GoiTen(mgvien giaovien.magv%type) | |
is | |
tengv giaovien.hoten%type; | |
phaigv giaovien.phai%type; | |
begin | |
select hoten, phai into tengv, phaigv from giaovien where magv = mgvien; | |
if phaigv = '1' then | |
dbms_output.put_line('Co ' || tengv); |
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
# -*- coding: utf-8 -*- | |
from Crypto.Cipher import DES3 | |
from Crypto.Cipher import AES | |
from Crypto import Random | |
# 1. Sinh khóa và lưu khóa | |
key = b'abcdefgh12345678' | |
# 2. Đọc khóa và tạo mật mã / giải mật mã DES (ECB, CBC) |
NewerOlder