ThinkPad Bluetooth ON/OFF

ON echo 1 > /sys/devices/platform/thinkpad_acpi/bluetooth_enableecho 1 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable OFF echo 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enableecho 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable

node.js – Socket.IO

Dependencies npm install socket.io Server var fs = require(’fs’); var app = require(’http’).createServer( function(req, res) { // serwuj client.html fs.readFile(’client.html’, function(err, data) { res.writeHead(200); res.end(data); }); } ); app.listen(8081); var io = require(’socket.io’).listen(app);   io.sockets.on(’connection’, function (socket) { // send welcome message socket.emit(’from-server’, { date: ‘welcome to time service’ });   // send time on Read more about node.js – Socket.IO[…]