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
#!/usr/bin/env bash | |
# | |
# Proton-Drive-Interactive-Setup.sh | |
# | |
# This script automates installing the RClone beta, configuring an | |
# encrypted RClone config, adding a "protondrive" remote, storing | |
# credentials in an OS keyring, and setting up a user systemd service. | |
# | |
# Written as an example. Please audit thoroughly before running! |
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
#!/bin/bash | |
set -e # Exit immediately if a command fails | |
# Define remote name and mount point | |
REMOTENAME="proton" | |
MOUNTPOINT="$HOME/ProtonDrive" | |
# Function to check dependencies | |
check_dependencies() { |
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
#!/bin/bash | |
# Cores reserved for the host machine | |
# Must include QEMU IO/Emulation cores if configured | |
# Ex: 1st Core -> reserved=0 | |
# Ex: 1st & 2nt Cores -> reserved=0,1 | |
# Ex: 1st Physical Core (16 Virtual Cores) -> reserved=0,8 | |
reserved=0,8 | |
# Host core range numbered from 0 to core count - 1 |
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
<html> | |
<head> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> | |
<script src="https://cdn.socket.io/socket.io-1.3.5.js"></script> | |
<script> | |
(function($) { | |
$(document).ready(function(){ | |
var socket = io.connect('http://localhost:3000',{ path: '/', transports: ["websocket"] }); | |
var files = null; |
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
var http = require('http'); | |
var async = require('async'); | |
var data = JSON.stringify({ | |
email: '[email protected]', | |
firstName: 'Spammer', | |
lastName: 'Evil' | |
}); | |
var options = { |