This file contains 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
[Unit] | |
Description=rclone mount | |
AssertPathIsDirectory=/storage/rclone | |
After=network-online.service | |
Requires=network-online.service | |
Before=kodi.service | |
[Service] | |
Type=simple | |
ExecStart=/storage/bin/rclone rcd --rc-web-gui-no-open-browser \ |
This file contains 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> | |
<script src="https://cdn.jsdelivr.net/npm/jsmpeg-player@3/build/jsmpeg-player.min.js"></script> | |
<script> | |
function testStream() { | |
var videoUrl = document.getElementById("myinput").value; | |
new JSMpeg.VideoElement('#videoWrapper', videoUrl); | |
} | |
</script> |
This file contains 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
Creating New Line | |
To create a New line, we will call the following URL. | |
http://dns:port/api.php?action=user&sub=create | |
The above URL, accepts the POST action, and to create a new line we will have to specify some arguments in an array called user_data | |
Example Code: |
This file contains 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
services: | |
cloud9: | |
image: cs50/ide | |
container_name: cloud9 | |
environment: | |
- PGID=${PGID} | |
- PUID=${PUID} | |
- TZ=${TZ} | |
# - PORT=80 | |
# - IP=178.254.3.20 |
- gotk3 | go-webkit2
- On Ubuntu 14/16/18+
sudo apt-get install -y libglib2.0-dev libcairo2-dev libgtk-3-dev xvfb
go get -tags gtk_3_10 github.com/gotk3/gotk3/gtk
This file contains 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
#!/usr/bin/perl | |
# use Carp; | |
# require Exporter; | |
# require DynaLoader; | |
# require 5.006; | |
my $hostname = `hostname | xargs echo -n`; # bot will get here machine name | |
my $name = getlogin."\@".$hostname; |