Skip to content

Instantly share code, notes, and snippets.

@risacher
risacher / tty.js-static-user.js
Created December 2, 2013 18:08
Example of how to use the user.js file in tty.js, to do something somewhat useful. This appends the io.socket transport type into the help text. I use this to know whether I've got websockets actually working on any given day.
if (window.tty) {
tty.on('open', function() {
var tty = window.tty;
window.tty.socket.on('connect', function() {
console.log('connect ',window.tty.socket.socket.transport.name);
document.getElementById('help').innerHTML += "<p>" + window.tty.socket.socket.transport.name;
});
});
}
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 9, 2025 07:52
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@robinsmidsrod
robinsmidsrod / _INSTALL.md
Last active May 1, 2025 16:43
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup