Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<meta charset="utf-8" />
<title>WebSocket Test</title>
<script language="javascript" type="text/javascript">
var wsUri = "wss://localhost:8181/";
var output;
function init()
{
@dloman
dloman / any
Created May 31, 2018 07:10
simple any implementation
#include <iostream>
#include <memory>
#include <typeinfo>
struct bad_any_cast
{
};
class any
{
@dloman
dloman / sshpiperadd.bash
Last active August 5, 2022 21:27
sshpiper add
#!/usr/bin/bash
if [ $1="-h" ]; then
echo "USAGE: sshpiperadd.bash \$NAME \$USERNAME \$IP "
exit
fi
if [ "$#" -ne 4 ]; then
echo "USAGE: sshpiperadd.bash \$NAME \$USERNAME \$IP "
exit