Skip to content

Instantly share code, notes, and snippets.

View JoshKaufman's full-sized avatar

Josh Kaufman JoshKaufman

  • Lifion by ADP
  • New York
View GitHub Profile
@JoshKaufman
JoshKaufman / DSDT.dsl
Created January 24, 2018 23:51
DSDT for Surface book 2 15"
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20160831-64
* Copyright (c) 2000 - 2016 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of DSDT.aml, Wed Jan 24 01:17:36 2018
*
* Original Table Header:
@JoshKaufman
JoshKaufman / digitalocean console paste.js
Created January 7, 2016 00:17
enables sending string to digitalocean web console stdin
var sendString = (function(rfb, force, sendDelay) {
sendDelay = sendDelay || 25;
var _q = [];
var _qStart = function() {
var chr = _q.shift();
if (chr) {
rfb.sendKey(chr);
setTimeout(_qStart, sendDelay);
}
};
" general
m = mark position (eg ma then 'a will go back to that position)
cW/cw = change word
cB/cb = change till begining of word
C = change till end of line (delete from curser to end and go into insert mode)
A = insert at end of line
dd = del line
D = delete till end of line
I = go into insert mode at begining of line (before first non-whitespace chars)
L = goto bottom of screen