Skip to content

Instantly share code, notes, and snippets.

View AllenEllis's full-sized avatar

Allen Ellis AllenEllis

View GitHub Profile
@AllenEllis
AllenEllis / tsunami.MD
Last active June 15, 2020 22:09
Faster UDP file transfers using tsunami

I recently had to move about 3TB of video footage between residential gigabit fiber connections. The fastest speed I could get was around ~150Mbps through Dropbox and other cloud providers, so I opted for a more direct answer.

After using Resilio Sync to buffer the files onto an Ubuntu Virtual Machine, I installed Tsunami. Using this I was able to get 600Mbps with no tuning, between a server in Los Angeles to my residential connection in Pittsburgh.

tsunami

What it does:

  • Very fast file transfers because it's UDP based

What it does not:

  • Support the ability to transfer more than one file [1]
@AllenEllis
AllenEllis / php-include.md
Last active February 15, 2019 19:39
PHP: Introduction to include();

PHP: introduction to include();

For PHP code to execute, two things have to happen:

  1. The filename needs to end in .php
  2. The PHP code needs to exist between an opening PHP tag <?php and, optionally, a closing PHP tag ?>

Original code

Contents of index.html:

# Source: https://superuser.com/a/1201549
function force-mkdir($path) {
if (!(Test-Path $path)) {
#Write-Host "-- Creating full path to: " $path -ForegroundColor White -BackgroundColor DarkGreen
New-Item -ItemType Directory -Force -Path $path
}}
function Takeown-Registry($key) {
@AllenEllis
AllenEllis / allenellis_win
Last active October 28, 2018 17:46
Allen Windows deployment Fall 2018
# Temporarily disable Windows Update and UAC until the rest of the programs have installed
Disable-MicrosoftUpdate
Disable-UAC
# Remove all apps that are installed from Windows Store by default.
#Get-AppxPackage -AllUsers | Remove-AppxPackage
# Reinstall Windows Store apps that I want
Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.Windows.Photos_2018.18081.14710.0_x64__8wekyb3d8bbwe\appxmanifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.WindowsStore_11809.1001.8.0_x64__8wekyb3d8bbwe\appxmanifest.xml" -DisableDevelopmentMode