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
2023-12-31 11:13:12 [ ERROR ] pyunifiprotect.websocket : Error processing websocket message | |
Traceback (most recent call last): | |
File "/usr/lib/python3.11/site-packages/pyunifiprotect/websocket.py", line 82, in _process_message | |
sub(msg) | |
File "/usr/lib/python3.11/site-packages/pyunifiprotect/api.py", line 691, in _process_ws_message | |
processed_message = self.bootstrap.process_ws_packet( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/usr/lib/python3.11/site-packages/pyunifiprotect/data/bootstrap.py", line 561, in process_ws_packet | |
return self._process_remove_packet(packet, data) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
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
def main(args): | |
pass | |
def enable_borders(tab): | |
tm = tab.tab_manager_ref() | |
if tm is None: | |
return | |
w = tab.active_window | |
tab.borders( | |
[w], w, tab.current_layout, tm.blank_rects, True |
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
require 'redis' | |
require 'active_support/time' | |
redis = Redis.new | |
# members are added with a score that is a timestamp of when they should expire | |
redis.zadd('test-sset', 10.minutes.from_now.to_i, 'app1') | |
# let's add one in the past so we can test some more | |
redis.zadd('test-sset', 10.minutes.ago.to_i, 'app2') |
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
class Foo | |
A = true | |
def m | |
A | |
end | |
def n | |
self.class::A | |
end |
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
HTTP/2.0 200 OK | |
x-guploader-uploadid: AEnB2UpX1g6M8f1SQ2P_fEitVF68n45d9lPxTdCGPjAQYsSE3QKlGJzTuOmSMg2u3LbkRdiE9vkKTFl5wGwq2alhyBFN2OuH5Q | |
content-type: binary/octet-stream | |
etag: CKy+lqng4dgCEAE= | |
vary: Origin, X-Origin | |
x-goog-generation: 1516286750596908 | |
x-goog-hash: crc32c=UekceA==,md5=QfHUMNq1qX9LyLU1hdQD7Q== | |
x-goog-metageneration: 1 | |
x-goog-storage-class: MULTI_REGIONAL | |
cache-control: no-cache, no-store, max-age=0, must-revalidate |
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 python | |
#-*- coding: utf-8 -*- | |
import os | |
import re | |
def get_policy(module, table, chain): | |
command = ['iptables', '-t{}'.format(table), '-L{}'.format(chain)] | |
rc, out, err = module.run_command(command) | |
if rc != 0: | |
raise RuntimeError("Unable to get policy: {}".format(err)) |
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
{ | |
"builders": | |
[ | |
{ | |
"type": "qemu", | |
"output_directory": "output", | |
"iso_url": "trusty-server-cloudimg-amd64-disk1.img", | |
"iso_checksum": "cf12c9878c9fb71c95d8f8c288761a99", | |
"iso_checksum_type": "md5", | |
"ssh_wait_timeout": "300s", |
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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
source /etc/network/interfaces.d/* | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface |
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
29/01/2016 11:28:48 :: [query] 127.0.0.1:48390 connected | |
29/01/2016 11:28:48 :: [query] [127.0.0.1:48390] cache query bulk for "6" metrics returned 477 values | |
29/01/2016 11:28:48 :: [query] [127.0.0.1:37758] cache query bulk for "32" metrics returned 2025 values | |
29/01/2016 11:28:53 :: [query] [127.0.0.1:37758] cache query bulk for "33" metrics returned 1897 values |
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
input { | |
file { | |
path => "/path/to/exception.log" | |
type => "magento_exception" | |
codec => multiline { | |
pattern => "^%{TIMESTAMP_ISO8601}" | |
negate => true | |
what => "previous" | |
} | |
} |
NewerOlder