sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx -y
sudo apt-get install libnginx-mod-rtmp -y
| { | |
| "clientId": "urn:federation:MicrosoftOnline", | |
| "surrogateAuthRequired": false, | |
| "enabled": true, | |
| "alwaysDisplayInConsole": false, | |
| "clientAuthenticatorType": "client-secret", | |
| "redirectUris": [ | |
| "https://login.microsoftonline.com/login.srf" | |
| ], | |
| "webOrigins": [ |
| #!/bin/bash | |
| # ================================================================= | |
| # Stream configuration file for Raspberry Pi Camera | |
| # | |
| # @author Russell Feldhausen ([email protected]) | |
| # @version 2019-06-05 | |
| # | |
| # This set of commands should allow you to stream video from your | |
| # Raspberry Pi Camera to Twitch and Youtube (and possibly other |
| # linux send h264 rtp stream: | |
| gst-launch-1.0 -v ximagesrc ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000 | |
| # Macos send h264 rtp stream: | |
| gst-launch-1.0 -v avfvideosrc capture-screen=true ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000 | |
| # receive h264 rtp stream: | |
| gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink |
| var result = jsObjects.filter(obj => { | |
| return obj.b === 6 | |
| }) |
| function getLocation() { | |
| if (navigator.geolocation) { | |
| navigator.geolocation.getCurrentPosition(showPosition,showError); | |
| } else { | |
| x.innerHTML = "Geolocation is not supported by this browser."; | |
| } | |
| } | |
| function showPosition(position) { | |
| localStorage.setItem("lat", position.coords.latitude); |
| #!/bin/sh | |
| echo 1 > /proc/sys/net/ipv4/ip_forward | |
| iptables -F | |
| iptables -t nat -F | |
| iptables -X | |
| iptables -t nat -A PREROUTING -p tcp --dport 5000 -j DNAT --to-destination 192.168.100.101:5000 | |
| iptables -t nat -A POSTROUTING -j MASQUERADE |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <script src="https://unpkg.com/[email protected]/dist/fabric.js"></script> |
| pgloader mysql://localhost/db postgresql://localhost:5432/db |
| // Long Polling (Recommened Technique - Creates An Open Connection To Server ∴ Fast) | |
| (function poll(){ | |
| $.ajax({ url: "server", success: function(data){ | |
| //Update your dashboard gauge | |
| salesGauge.setValue(data.value); | |
| }, dataType: "json", complete: poll, timeout: 30000 }); | |
| })(); |