This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var net = require('net'); | |
| var fs = require('fs'); | |
| // file name for the current log | |
| var fileName = __dirname + '/log_' + new Date().getTime(); | |
| // Start a TCP Server | |
| var server = net.createServer(function (socket) { | |
| // Log what the TV sends |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MapMerge { | |
| /** | |
| * Deeply merges the contents of each Map in sources, merging from | |
| * "right to left" and returning the merged Map. | |
| * | |
| * Mimics 'extend()' functions often seen in JavaScript libraries. | |
| * Any specific Map implementations (e.g. TreeMap, LinkedHashMap) | |
| * are not guaranteed to be retained. The ordering of the keys in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>com.google.code.maven-replacer-plugin</groupId> | |
| <artifactId>maven-replacer-plugin</artifactId> | |
| <version>1.3.5</version> | |
| <executions> | |
| <execution> | |
| <id>replace-for-documentation</id> | |
| <phase>prepare-package</phase> | |
| <goals> | |
| <goal>replace</goal> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # # act like GNU screen | |
| unbind C-b | |
| set -g prefix C-a | |
| # Allow C-A a to send C-A to application | |
| bind C-a send-prefix | |
| # start window index of 1 | |
| set -g base-index 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This way you can customize which branches should be skipped when | |
| # prepending commit message. | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master develop test) | |
| fi | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
NewerOlder