Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Bannister possibilities

View GitHub Profile
View gist:d4d37a3cfee85af336962324cea88f3d
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.9.2-3).
python3-venv is already the newest version (3.9.2-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cloning into '/home/mike/src/qutebrowser'...
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@possibilities
possibilities / headlessvm.md
Last active June 10, 2021 23:59 — forked from elasticskyx/headlessvm.md
Run VirtualBox Virtual Machines in Headless Mode #virtualbox #windows #vm
View headlessvm.md

Setup a Headless Virtual Machine on Windows using Oracle VirtualBox

If you are concerned with having many windows open when running several virtual machines on your Windows server or workstation, then have them run headless using VirtualBox commandline tools. Additionally, you can manage these VM's using RDP (Mircrosoft Terminal Server Connection - mstsc.exe) or SSH access (if enabled)

Install VirtualBox and Extension Packs

  • Download the latest version and install of [Oracle VirtualBox] [vbox]
  • Download the [VirtualBox Extension Pack] [vbox] and install for the same version
View provision.sh
#!/bin/sh
set -e
cd /provision
/provision/provision.system.sh
/bin/su -c '/provision/provision.user.sh' mike
View provision.sh
#!/bin/bash
set -e
date >> ./doooof.txt
View provision.sh
#!/bin/bash
set -e
date >> ./doooof.txt
@possibilities
possibilities / scrollTo.js
Created April 28, 2017 21:04 — forked from james2doyle/scrollTo.js
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
View scrollTo.js
// easing functions http://goo.gl/5HLl8
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
}
t--;
return -c/2 * (t*(t-2) - 1) + b;
};
View nav.diff
diff --git a/package.json b/package.json
index d66584f..8b008b6 100644
--- a/package.json
+++ b/package.json
@@ -69,6 +69,7 @@
"karma-sinon": "1.0.4",
"karma-spec-reporter": "0.0.23",
"karma-webpack": "1.7.0",
+ "lodash.pick": "4.0.0",
"mocha": "2.3.4",
View -
diff --git a/package.json b/package.json
index d66584f..8b008b6 100644
--- a/package.json
+++ b/package.json
@@ -69,6 +69,7 @@
"karma-sinon": "1.0.4",
"karma-spec-reporter": "0.0.23",
"karma-webpack": "1.7.0",
+ "lodash.pick": "4.0.0",
"mocha": "2.3.4",