Skip to content

Instantly share code, notes, and snippets.

when when rollup dies with cache:

{ rss: 154533888, heapTotal: 125739008, heapUsed: 91440776 },
{ rss: 373751808, heapTotal: 345399296, heapUsed: 241697880 },
{ rss: 392359936, heapTotal: 365342720, heapUsed: 317458824 },
{ rss: 593084416, heapTotal: 563167232, heapUsed: 510649792 },
{ rss: 790614016, heapTotal: 759365632, heapUsed: 708062936 },
{ rss: 668528640, heapTotal: 634781696, heapUsed: 455590688 },
@cfebs
cfebs / entry.js
Last active December 9, 2016 16:59
rollup small dist
// entry.js
import 'three/src/polyfills.js'
import { Bone } from 'three/src/objects/Bone';
import { _Math } from 'three/src/math/Math';
window.THREE = {};
window.THREE.Bone = Bone;
window.THREE.Math = _Math;
@cfebs
cfebs / index.html
Last active December 6, 2016 22:40
focusblur
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div class="outer">
<button class="js-click">btn1</button>
<button class="js-click">btn2</button>
package main
import (
"fmt"
"net/http"
"log"
"bufio"
"io"
"io/ioutil"
"os"
[ { u'accessControlled': False,
u'creationTimestamp': u'1333047535673660',
u'deleted': False,
u'id': u'start',
u'kind': u'sj#playlist',
u'lastModifiedTimestamp': u'1333047535673660',
u'name': u'',
u'ownerName': u'Collin Lefeber',
u'ownerProfilePhotoUrl': u'http://lh4.googleusercontent.com/-iZOZs_RTSwU/AAAAAAAAAAI/AAAAAAAAAFY/5yxQqj5Xz4c/photo.jpg',
u'recentTimestamp': u'1333047535663000',
@cfebs
cfebs / vboxhostonlyssh.md
Last active October 22, 2023 12:32
setup a vbox ubuntu server with host only adapter

Virtualbox dev environment w/ static IP

I can never find a great guide on this stuff, so these are more like notes to myself.

The goal here is to have a virtualbox running more or less headless. An ssh client is used separately to actually use the machine. I've found it to be fantastic for a quick dev setup.

lets go

Assumes you have a vbox setup with Ubuntu server (this will work for 16.04) ready to go.

[ 532.780]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 532.781] X Protocol Version 11, Revision 0
[ 532.782] Build Operating System: Linux 3.13.0-85-generic x86_64 Ubuntu
[ 532.783] Current Operating System: Linux ubu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64
[ 532.784] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.0-21-generic root=/dev/mapper/ubu--vg-root ro
[ 532.785] Build Date: 07 April 2016 09:18:50AM
[ 532.786] xorg-server 2:1.18.3-1ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 532.787] Current version of pixman: 0.33.6
[ 79.021]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 79.022] X Protocol Version 11, Revision 0
[ 79.022] Build Operating System: Linux 3.13.0-85-generic x86_64 Ubuntu
[ 79.023] Current Operating System: Linux ubu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64
[ 79.023] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.0-21-generic root=/dev/mapper/ubu--vg-root ro
[ 79.025] Build Date: 07 April 2016 09:18:50AM
[ 79.025] xorg-server 2:1.18.3-1ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 79.026] Current version of pixman: 0.33.6
echo " ____ _ __ ______ ___ _____ "
echo "| _ \\ / \\\\ \\ / / ___| / _ \\| ___|"
echo "| | | |/ _ \\\\ V /\\___ \\ | | | | |_ "
echo "| |_| / ___ \\| | ___) | | |_| | _| "
echo "|____/_/ \\_\\_| |____/ \\___/|_| "
echo " "
echo " _____ _ _ _ _ _ _ ____ _____ ____ "
echo "|_ _| | | | | | | \\ | | _ \\| ____| _ \\ "
echo " | | | |_| | | | | \\| | | | | _| | |_) |"
echo " | | | _ | |_| | |\\ | |_| | |___| _ < "
@cfebs
cfebs / sudorm
Last active April 6, 2016 15:45
test
echo " ____ _ __ ______ ___ _____ "
echo "| _ \\ / \\\\ \\ / / ___| / _ \\| ___|"
echo "| | | |/ _ \\\\ V /\\___ \\ | | | | |_ "
echo "| |_| / ___ \\| | ___) | | |_| | _| "
echo "|____/_/ \\_\\_| |____/ \\___/|_| "
echo " "
echo " _____ _ _ _ _ _ _ ____ _____ ____ "
echo "|_ _| | | | | | | \\ | | _ \\| ____| _ \\ "
echo " | | | |_| | | | | \\| | | | | _| | |_) |"
echo " | | | _ | |_| | |\\ | |_| | |___| _ < "