Skip to content

Instantly share code, notes, and snippets.

View StoneCypher's full-sized avatar

John Haugeland StoneCypher

View GitHub Profile
  • stop all containers: docker kill $(docker ps -q)
  • remove all containers: docker rm $(docker ps -a -q)
  • remove all docker images: docker rmi $(docker images -q)

Okay, so, I just had that moment where some spammer tried to pretend to be my friend, and FB executed a surprisingly efficient shutdown process (I doubt the account survived 15 minutes total.)

Still, nerd rage, and an interesting problem. It occurred to me that one way to fight back would be for the system to automatically notify the original account when a second account appeared, using the same name and image, so that the original could validate that it was in fact a secondary account, rather than an impostor.

Hau 2

<!doctype html>
<html>
<head>
<script type="text/javascript">

Sent this email with the subject "Looking back"


There was a time when 70% of the mail you received was about refusing integration, or preventing the schooling of women, too.

Preventing children from using the psychologically appropriate bathroom is a bizarre moral panic, not terribly dissimilar to 30 years ago, when the country wanted you to protect the chirrens from satanist abduction.

They used to do full episode specials about it on 20/20 and 60 minutes.

@StoneCypher
StoneCypher / raf-visible.html
Created March 14, 2016 21:45
animating a box allows you to see the problem visually, so that you can confirm it without a debugger
<!doctype html>
<html>
<head>
<style type="text/css">
#box { height: 100px; width: 100px; border: 1px solid blue; background-color: lightblue; }
</style>
<script type="text/javascript">
@StoneCypher
StoneCypher / raf-toggle.html
Last active March 14, 2016 21:43
as you can see, flip flopping doesn't actually fix anything
<!doctype html>
<html>
<head>
<script type="text/javascript">
var i=0;
var frame1 = function() { window.requestAnimationFrame(frame2); };

10,1,0,2,1,1,1,2,1,0,3,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,4,2,0,5,1,2,1,2,1,0,1,1,0,1,0,1,2,0,1,1,1,1,1,0,0,1,0,0,1,1,1,0,0,2,0,0,0,1,0,0,1,2,1,1,1,1,1,2,1,0,1,1,1,0,2,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,3,1,2,1,2,1,1,17,1,5,1,1,1,3,0,2,1,1,1,1,1,4,1,1,2,1,1,1,1,3,1,1,1,0,1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,2,2,1,2,1,1,0,1,3,1,1,1,2,2,1,0,1,1,0,1,6,0,1,1,1,5,1,2,3,2,2,1,1,1,1,1,1,2,1,1,1,0,1,2,2,1,3,1,3,1,1,1,2,3,1,3,0,5,1,1,4,0,1,0,15,0,1,0,1,1,2,0,0,2,0,0,1,0,3,0,4,0,1,2,1,2,1,0,0,1,10,0,1,0,0,0,2,1,6,0,1,0,33,1,0,3,1,6,1,1,1,2,1,0,0,1,1,0,0,1,0,0,1,0,1,0,2,0,1,0,0,2,0,0,3,7,0,0,0,1,0,28,1,0,0,3,1,0,0,0,1,0,0,2,0,6,0,1,0,0,2,0,0,0,0,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1,2,0,0,0,0,1,5,1,1,1,0,0,0,0,1,0,0,1,0,0,0,0,1,1,0,10,1,1,1,1,1,0,0,0,2,0

10
1
0
2
1
1
1
2
1
0
function ForceArray(chirrens) {
// react only uses an array for its chirrens if there's more than one
// which is just awful
// so let's force it to always be an array with grim js
return ((chirrens.isArray || () => false)())? chirrens : [chirrens];
}
-module(repo_metrics).
-export([
file_as_string/1,