Skip to content

Instantly share code, notes, and snippets.

View Shrekie's full-sized avatar
💐

Thomas Lindauer Shrekie

💐
View GitHub Profile
@Shrekie
Shrekie / application.html
Created March 15, 2022 22:05
Node server with images
<html>
<form id="image-form">
<input type="file" accept="image/*" name="image" />
<input type="submit" />
</form>
<div id="image-container"></div>
<script>
let data = { postMessage: "Hello Postworld" };
@Shrekie
Shrekie / URLS
Last active March 15, 2022 18:02
Simple Node Server
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04
https://www.howtogeek.com/261383/how-to-access-your-ubuntu-bash-files-in-windows-and-your-windows-system-drive-in-bash/
https://github.com/GeekyAnts/vue-native-core/issues/101#issuecomment-437606353
@Shrekie
Shrekie / youtube-stream-connection.js
Last active April 20, 2018 13:30
Youtube get_video_info stream URL node url_encoded_fmt_stream_map
const ytdl = require('youtube-dl');
var link = req.body.YTURL;
ytdl.exec(link, ['-f best', '-s', '-g'], {}, function(err, output) {
if (err) throw err;
res.json(output[0]);
});