This file contains 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
awk '/findme/ { if($11!="\"-\"" && $11 !~ "(Bot|bot)") print $11 } ' FPAT='([^ ]+)|("[^"]+")' /var/log/apache2/access.log |
This file contains 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
awk '/findme/ { if($11!="\"-\"" && $11 !~ "(Bot|bot)") print $11 } ' FPAT='([^ ]+)|("[^"]+")' /var/log/apache2/access.log |
This file contains 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
/* | |
* @author RKlein | |
*/ | |
import { WhenNilPipe } from "./whennil.pipe"; | |
describe('WhenNilPipe', () => { | |
it('converts null to "--"', () => { | |
let converter = new WhenNilPipe(); |
This file contains 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
PROCEDURE ADAPTTOMODERNTERMINAL | |
PRIVATE term,lang | |
IF AppIoMode() == "T" | |
lang := getenv("LANG") | |
term := getenv("TERM") | |
IF RAT("UTF-8",lang) > 0 .AND. (term == "xterm" .OR. term =="xterm-256color") | |
//we are in UTF terminal so switch at least to iso output | |
FS_SET("terminal", term) |
This file contains 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
// item fuer die RfBridge... hier weiss ich noch nicht wie man das fuer mehrer Schalter machen kann | |
String RfBridge "RfKey [%s]" {mqtt="<[mosq:tele/sonoff/30/RESULT:state:default]"} |
This file contains 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/sh | |
# launches flagship program via xterm with parameters correction keyboard mapping (for old clipper software) | |
xterm -xrm \ | |
"XTerm*VT100.Translations: #override \n\ | |
<KeyPress> Home : string(0x01)\n\ | |
<KeyPress> End : string(0x06)\n" \ | |
-e newfsterm $1 & |
This file contains 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
//copied but modernized from https://gist.github.com/OrganicPanda/ba22c6dec89ffa7673a27ec28e08aa89 | |
// Hook in to `addEventListener` to track the mouse and display it as a circle | |
var MousePlugin = function () { | |
}; | |
MousePlugin.prototype.onPageLoad = function () { | |
console.log("mousePlugin"); | |
return browser.executeScript(function () { | |
(function () { |
This file contains 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
function getInternetExplorerVersion() | |
// Returns the version of Internet Explorer or a -1 | |
// (indicating the use of another browser). | |
// see https://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx | |
// but for ie 11 doenst work this way | |
{ | |
var rv = -1; // Return value assumes failure. | |
if (navigator.appName == 'Microsoft Internet Explorer') { | |
var ua = navigator.userAgent; |
NewerOlder