A lightweight node port of websocketd, originally written in go.
node-websocketd --port=8080 ./count.sh
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### OR take a look at | |
### https://github.com/HotCakeX/Harden-Windows-Security |
A lightweight node port of websocketd, originally written in go.
node-websocketd --port=8080 ./count.sh
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
</head> | |
<body> | |
<iframe id="frame" style="width: 250px; border: solid 1px red;" ></iframe> | |
<script type="text/javascript"> | |
var elFrame = $('#frame')[0]; | |
$(elFrame.contentWindow).resize(function() { | |
$(window).trigger('zoom'); |
# Minecraft Overviewer dynamic config file for multiple Minecraft worlds | |
# managed by MSM (https://github.com/marcuswhybrow/minecraft-server-manager) | |
import os | |
# Define where to put the output here. | |
outputdir = "/storage/www/vhosts/minecraft.example.com" | |
# Add Javascript to map when rendering | |
from observer import JSObserver |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
#!/usr/bin/perl | |
# A replacement for Sublime Text 2's built-in "subl" command-line utility, | |
# which forces files into new windows regardless of prefs. | |
# by Joseph Huckaby, 2012 | |
use strict; | |
use Cwd qw/abs_path/; | |
use FileHandle; |
function parseQueryString(url) { | |
// parse query string into key/value pairs and return as object | |
var query = {}; | |
url = (url || location.search).replace(/^.*\?/, '').replace(/([^\=]+)\=([^\&]*)\&?/g, function(match, key, value) { | |
query[key] = decodeURIComponent(value); | |
return ''; | |
} ); | |
return query; | |
} |
// Converts an ArrayBuffer directly to base64, without any intermediate 'convert to string then | |
// use window.btoa' step. According to my tests, this appears to be a faster approach: | |
// http://jsperf.com/encoding-xhr-image-data/5 | |
/* | |
MIT LICENSE | |
Copyright 2011 Jon Leighton | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |