. .
:"-. .-";
|:`.`.__..__.'.';|
|| :-" "-; ||
:; :;
/ .==. .==. \
: _.--._ ;
; .--.' `--' `.--. :
: __;` ':__ ;
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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| p { | |
| text-align: center; | |
| font-size: 60px; | |
| margin-top: 0px; | |
| } |
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
| files.forEach((file) => { | |
| formData.append(file.fieldname, file.buffer, file.filename); | |
| }); |
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
| https://stackoverflow.com/questions/5129624/convert-js-date-time-to-mysql-datetime/5133807 |
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: "2" | |
| services: | |
| namenode: | |
| build: ./namenode | |
| image: bde2020/hadoop-namenode:1.1.0-hadoop2.7.1-java8 | |
| container_name: namenode | |
| volumes: | |
| - hadoop_namenode:/hadoop/dfs/name | |
| environment: |
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
| nmcli radio wifi on |
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 volume rm $(docker volume ls -qf dangling=true) |
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
| 'use strict' | |
| const Fs = require('fs') | |
| const Path = require('path') | |
| const Axios = require('axios') | |
| async function downloadImage () { | |
| const url = 'https://unsplash.com/photos/AaEQmoufHLk/download?force=true' | |
| const path = Path.resolve(__dirname, 'images', 'code.jpg') | |
| const writer = Fs.createWriteStream(path) |
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
| await Promise.all(list.map(async (item) => { | |
| await writeFile(`assets/${diana()}.png`, item.split(';base64,').pop(), { encoding: 'base64' }); | |
| })); |
NewerOlder