Skip to content

Instantly share code, notes, and snippets.

@dkolba
dkolba / chat-frontend.js
Created August 2, 2012 21:47 — forked from martinsik/chat-frontend.js
Node.js chat frontend and server
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var content = $('#content');
var input = $('#input');
var status = $('#status');
// my color assigned by the server
var myColor = false;
@dkolba
dkolba / gist:4544961
Created January 16, 2013 05:47
VMware Fusion 5 Ubuntu 12.10 desktop guest with open-vm-tools
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install build-essential linux-headers-$(uname -r)
sudo apt-get install open-vm-tools open-vm-toolbox
#sudo dpkg-reconfigure open-vm-tools
#sudo dpkg-reconfigure open-vm-dkms
sudo mkdir /mnt/hgfs
sudo mkdir /mnt/hgfs/notes
sudo mount -t vmhgfs .host:/Notes /mnt/hgfs/notes
@dkolba
dkolba / gist:4990645
Created February 19, 2013 22:15
Basic flatiron app with st as static file server
var flatiron = require("flatiron")
, app = flatiron.app
app.use(flatiron.plugins.http);
app.use(flatiron.plugins.static, {
root: __dirname + '/public'
});
app.start(8080);
console.log('union with director running on 8080');
@dkolba
dkolba / lhci.yaml
Created November 28, 2023 21:23
LHCI on Docker-Desktop Kubernetes for Mac
apiVersion: v1
kind: Service
metadata:
name: lhci
spec:
ports:
- name: 9001-tcp
port: 9001
protocol: TCP
targetPort: 9001