I hereby claim:
- I am mikedamage on github.
- I am mikegreen (https://keybase.io/mikegreen) on keybase.
- I have a public key whose fingerprint is 9D26 EDB9 CD61 8734 7B20 8B7F 5369 495C F7A1 2392
To claim this, I am signing this object:
#!/usr/bin/env node | |
// Borrowed and simplified from pretty-bytes by Sindre Sorhus | |
// https://github.com/sindresorhus/pretty-bytes/blob/main/index.js | |
function prettyBytes(num) { | |
const UNITS = [ | |
'b', | |
'kb', | |
'mb', | |
'gb', |
I hereby claim:
To claim this, I am signing this object:
typeset -A keys | |
keys=( | |
power 26 | |
home 3 | |
up 19 | |
down 20 | |
left 21 | |
right 22 | |
enter 66 | |
) |
I've decided to change the communication protocol used by the mikedamage.info chat server from XMPP to Matrix.org. I just finished setting up a Matrix instance on the chat server, and it's ready for some intrepid guinea pigs to kick the tires! There's a long winded explanation of why I'm switching us over to Matrix, but I put it below the instructions in case you don't really care.
TL;DR Matrix is easier for me to manage, more secure for you, and everybody can access the server using same app, with the same awesome features, on pretty much any device or operating system in existence.
Coming Soon: Once I set the Matrix server up properly, we'll be able to do real-time, person to person voice and video calls in addition to text chat!
#!/usr/bin/env node | |
'use strict' | |
function collatz(num) { | |
var result; | |
if (num % 2 === 0) { | |
result = num / 2; | |
} else { |
/** | |
* jQuery Transition Callbacks Module | |
* by Mike Green <[email protected]> | |
*/ | |
/* jshint esnext: true, globalstrict: true, browser: true */ | |
'use strict'; | |
import $ from 'jquery'; |
#!/usr/bin/env zsh | |
setopt NULL_GLOB EXTENDED_GLOB | |
# Files older than this will be deleted | |
KEEP_DAYS=30 | |
files=($PWD/*(.Nmd+$KEEP_DAYS)) | |
for f in $files; do |
#!/bin/bash | |
gksudo iwlist wlan0 scan | |
zenity --info --title="WiFi Scan" --text="WiFi scan complete!" |
<!-- This is bad for business: --> | |
<p style="margin: 15px;"> | |
<strong style="color: #f00;">This is important!</strong> | |
<span style="color #ccc;">This isn't.</span> | |
</p> | |
<!-- Instead, define a class with a semantic, descriptive name, and style it in an external stylesheet: --> | |
<!-- in <head>: --> | |
<link rel="stylesheet" href="style.css"> |
#!/bin/bash | |
# | |
# Inotify Java Watcher | |
# by Mike Green <[email protected]> | |
# | |
# Automatically compiles Java classes when their files are saved. | |
# | |
# = Installation: Save this script into the root folder of your Java projects, then run: | |
# $ cd whatever-your-folder-is-called && chmod +x java-watcher.sh | |
# |