Skip to content

Instantly share code, notes, and snippets.

@mlevin2
mlevin2 / index.js
Last active September 10, 2020 23:49
const fs = require('fs');
const animals = fs.readFileSync('list.txt').toString().trimEnd().split("\n");
for (let i = 0; i < animals.length; i++) {
for (let j = (i + 1) % animals.length, count = 0; count < animals.length - 1; j = (j + 1) % animals.length, count++) {
console.log(`You're the ${animals[i]} now, ${animals[j]}!`);
}
}
@mlevin2
mlevin2 / # speedtest-cli - 2020-05-30_17-24-21.txt
Created May 30, 2020 21:40
speedtest-cli on macOS 10.15.4 - Homebrew build logs
Homebrew build logs for speedtest-cli on macOS 10.15.4
Build date: 2020-05-30 17:24:21
@mlevin2
mlevin2 / # speedtest-cli - 2020-05-30_17-24-21.txt
Created May 30, 2020 21:30
speedtest-cli on macOS 10.15.4 - Homebrew build logs
Homebrew build logs for speedtest-cli on macOS 10.15.4
Build date: 2020-05-30 17:24:21
@mlevin2
mlevin2 / # libicns - 2017-02-09_11-41-45.txt
Created February 9, 2017 16:46
libicns on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for libicns on macOS 10.11.6
Build date: 2017-02-09 11:41:45
### Keybase proof
I hereby claim:
* I am mlevin2 on github.
* I am marshalllevin (https://keybase.io/marshalllevin) on keybase.
* I have a public key whose fingerprint is 9E9B 3087 390D 1D50 2C22 759D F598 AC2B 8018 6A08
To claim this, I am signing this object:
@mlevin2
mlevin2 / fix-vmware
Created July 7, 2013 17:30
When I wake up my Mac and resume my Ubuntu VM, sometimes vmware gets confused and won't enter unity anymore and also messed up my network connection. This quick script seems to set things right again.
#!/usr/bin/env bash
killall gnome-panel >/dev/null 2>&1
killall vmware-user >/dev/null 2>&1
sudo ip link set dev eth0 down
sleep 2
sudo service vmware-tools stop
sleep 2
sudo service vmware-tools start
sleep 2