HTTPS Redirect with exclude

Example how to redirect to HTTPS, but excluding .well-know/* directory. <VirtualHost *:80> ServerAlias domain.net RedirectMatch 301 ^/((?!\.well-known).*)$ https://domain.net/$1 </VirtualHost><VirtualHost *:80> ServerAlias domain.net RedirectMatch 301 ^/((?!\.well-known).*)$ https://domain.net/$1 </VirtualHost>

maven: Deploying .jar to remote Maven repository by ftp

<build> <plugins> <!– other plugins, skipped –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> </plugin> </plugins>   <extensions> <!– Enabling the use of FTP –> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ftp</artifactId> <version>1.0-beta-6</version> </extension> </extensions> </build>   <distributionManagement> <repository> <id>repo-server</id> <url>ftp://192.168.1.253/var/maven</url> </repository> </distributionManagement> <build> <plugins> <!– other plugins, skipped –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> </plugin> </plugins> <extensions> <!– Enabling the use of Read more about maven: Deploying .jar to remote Maven repository by ftp[…]

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[…]