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
#!/usr/bin/env python3 | |
from selenium import webdriver | |
driver = webdriver.Firefox() | |
driver.get("http://www.qux.nl") | |
print(driver.title) | |
driver.save_screenshot("qux.png") | |
driver.close() |
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
var page = require('webpage').create(); | |
page.clipRect = { | |
width: 1824, | |
height: 984 | |
}; | |
page.viewportSize = { | |
width: 1824, | |
height: 984 | |
}; | |
page.open('http://localhost', function(status) { |
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
// Funneld - Receive sales events and store accumelated data periodically | |
// | |
// This daemon receives realtime sales events and stores them in memory. | |
// Periodically, like hourly/daily/weekly, the accumelated data is | |
// flushed to a json file which is stored in a directory based on | |
// the filestamp. | |
// | |
// E.g. 2014/koekjes.json | |
// 2014/w52/koekjes.json | |
// 2014/04/koekjes.json |
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/bash | |
# | |
# adapted from https://github.com/kvz/nsfailover/blob/master/nsfailover.sh | |
[ -z "${NS_FILE}" ] && NS_FILE="/etc/resolv.conf" # Where to write resolving conf | |
nameservers="" | |
function ns_healthy() { | |
local nserver="${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
# Auditd logging | |
# Log linux audit log on original format: | |
$template Audit_log, "/var/log/hosts/%$year%/%$month%/%$day%/%fromhost-ip%/audit.log" | |
$template auditFormat, "%msg%\n" | |
:programname, isequal, "audispd" -?Audit_log;auditFormat | |
& ~ | |
:programname, isequal, "audispd" ~ | |
& ~ |
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 | |
# | |
# Usage: | |
# arcive [-t] [-l] prj1 prj2 prj3 ... | |
# | |
# Will execute: | |
# mkdir -p /home/user/arc/2014 | |
# mv prj1 /home/user/arc/2014/20141201-prj1 | |
# mkdir -p /home/user/arc/2015 | |
# mv prj2 /home/user/arc/2015/20151207-prj2 |
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
2017-11-01T08:54:17.141Z|1595177|vconn|DBG|tcp:127.0.0.1:6633: sent (Success): OFPT_PORT_STATUS (OF1.3) (xid=0x0): DEL: 92(tap45874cb0-cd): addr:be:68:fc:e1:8c:0c | |
2017-11-01T08:54:17.157Z|1595178|vconn|DBG|tcp:127.0.0.1:6633: sent (Success): OFPT_PORT_STATUS (OF1.3) (xid=0x0): ADD: 92(tap87e621ea-f4): addr:be:15:30:4d:4b:f4 | |
2017-11-01T08:54:17.166Z|1595180|vconn|DBG|tcp:127.0.0.1:6633: sent (Success): OFPT_PORT_STATUS (OF1.3) (xid=0x0): DEL: 64(tap6ec8832c-4a): addr:c2:e2:7d:fc:50:60 | |
2017-11-01T08:54:17.180Z|1595181|vconn|DBG|tcp:127.0.0.1:6633: sent (Success): OFPT_PORT_STATUS (OF1.3) (xid=0x0): ADD: 64(tap2f90dc94-d3): addr:7e:27:b3:98:19:cd | |
2017-11-01T08:54:17.214Z|1595193|vconn|DBG|tcp:127.0.0.1:6633: sent (Success): OFPT_PORT_STATUS (OF1.3) (xid=0x0): DEL: 92(tap87e621ea-f4): addr:be:15:30:4d:4b:f4 | |
2017-11-01T08:54:17.229Z|1595194|vconn|DBG|tcp:127.0.0.1:6633: sent (Success): OFPT_PORT_STATUS (OF1.3) (xid=0x0): ADD: 92(tap45874cb0-cd): addr:36:d3:b4:9a:4c:e3 | |
2017-11-01T08:54:17.238Z|1595196|vconn|DBG|tcp |
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
2017-11-01T02:35:02.069Z|1036159|bridge|INFO|bridge br-int: added interface tap45874cb0-cd on port 92 | |
2017-11-01T02:35:02.097Z|1036160|bridge|INFO|bridge br-int: added interface tap6ec8832c-4a on port 64 | |
2017-11-01T02:35:02.171Z|1036161|bridge|INFO|bridge br-int: added interface tap87e621ea-f4 on port 92 | |
2017-11-01T02:35:02.204Z|1036162|bridge|INFO|bridge br-int: added interface tap2f90dc94-d3 on port 64 | |
2017-11-01T02:35:02.296Z|1036163|bridge|INFO|bridge br-int: added interface tap45874cb0-cd on port 92 | |
2017-11-01T02:35:02.321Z|1036164|bridge|INFO|bridge br-int: added interface tap6ec8832c-4a on port 64 | |
2017-11-01T02:35:02.393Z|1036165|bridge|INFO|bridge br-int: added interface tap87e621ea-f4 on port 92 | |
2017-11-01T02:35:02.417Z|1036166|bridge|INFO|bridge br-int: added interface tap2f90dc94-d3 on port 64 | |
2017-11-01T02:35:02.475Z|1036167|bridge|INFO|bridge br-int: added interface tap45874cb0-cd on port 92 | |
2017-11-01T02:35:02.498Z|1036168|bridge|INFO|bridge br-int: added interface tap6ec8832c-4a on port 64 |
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
diff --git a/neutron/agent/l3/agent.py b/neutron/agent/l3/agent.py | |
index 20d885fe8..603998dad 100644 | |
--- a/neutron/agent/l3/agent.py | |
+++ b/neutron/agent/l3/agent.py | |
@@ -13,6 +13,7 @@ | |
# under the License. | |
# | |
+import os | |
import eventlet |
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
#!/usr/bin/python | |
import sys | |
import json | |
def main(file): | |
with open(file) as f: | |
for l in f: | |
line = json.loads(l) | |
print("\t".join([ |
NewerOlder