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
| docker build -f Dockerfile.integration . -t envoyproxy/ratelimit_integration:0a9d1ff6 && \ | |
| docker run $(tty -s && echo "-it" || echo) envoyproxy/ratelimit_integration:0a9d1ff6 | |
| #1 [internal] load build definition from Dockerfile.integration | |
| #1 sha256:cdf179ed3d8fb24fc0c0de39a9524ce4d5d2efc5da54b5b0c867ec4bb89b6534 | |
| #1 transferring dockerfile: 55B 0.0s done | |
| #1 DONE 0.0s | |
| #2 [internal] load .dockerignore | |
| #2 sha256:6e076c9b381accc1f7990eb9880f986770261beb095596f2ef6540f4cc28491d | |
| #2 transferring context: 2B done |
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
| diff -uNr a/Makefile b/Makefile | |
| --- a/Makefile 2017-06-19 16:26:52.034630918 -0300 | |
| +++ b/Makefile 2017-06-19 16:35:03.123566914 -0300 | |
| @@ -635,6 +635,12 @@ | |
| # Tell gcc to never replace conditional load with a non-conditional one | |
| KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) | |
| +# check for 'asm goto' | |
| +ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | |
| + KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import pychromecast | |
| import pychromecast.controllers.youtube as youtube | |
| import sys | |
| def cli_loop(): | |
| line = '' | |
| action = '' | |
| param = '' |
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
| #!/usr/bin/python3 | |
| import http.server | |
| import cgi | |
| import socketserver | |
| import hashlib | |
| import json | |
| PORT = 8081 |
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
| #!/usr/bin/python3 | |
| import http.server | |
| import cgi | |
| import socketserver | |
| import hashlib | |
| import json | |
| PORT = 8081 |
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
| ➜ ~ openssl speed rsa | |
| To get the most accurate results, try to run this | |
| program when this computer is idle. | |
| Doing 512 bit private rsa's for 10s: 35407 512 bit private RSA's in 9.91s | |
| Doing 512 bit public rsa's for 10s: 525795 512 bit public RSA's in 9.93s | |
| Doing 1024 bit private rsa's for 10s: 8110 1024 bit private RSA's in 9.94s | |
| Doing 1024 bit public rsa's for 10s: 191825 1024 bit public RSA's in 9.94s | |
| Doing 2048 bit private rsa's for 10s: 1425 2048 bit private RSA's in 9.96s | |
| Doing 2048 bit public rsa's for 10s: 59780 2048 bit public RSA's in 9.94s | |
| Doing 4096 bit private rsa's for 10s: 217 4096 bit private RSA's in 9.87s |
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
| drivers/net/ethernet/emulex/benet/be_main.c: In function ‘make_tx_wrbs’: | |
| drivers/net/ethernet/emulex/benet/be_main.c:691: error: incompatible type for argument 2 of ‘pci_map_page’ | |
| drivers/net/ethernet/emulex/benet/be_main.c: In function ‘be_vlan_rem_vid’: | |
| drivers/net/ethernet/emulex/benet/be_main.c:882: error: implicit declaration of function ‘vlan_group_set_device’ | |
| drivers/net/ethernet/emulex/benet/be_main.c: In function ‘skb_fill_rx_data’: | |
| drivers/net/ethernet/emulex/benet/be_main.c:1201: error: incompatible types in assignment | |
| drivers/net/ethernet/emulex/benet/be_main.c:1226: error: incompatible types in assignment | |
| drivers/net/ethernet/emulex/benet/be_main.c: In function ‘be_rx_compl_process’: | |
| drivers/net/ethernet/emulex/benet/be_main.c:1278: error: implicit declaration of function ‘vlan_hwaccel_receive_skb’ | |
| drivers/net/ethernet/emulex/benet/be_main.c: In function ‘be_rx_compl_process_lro’: |
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
| [ 454.245908] end_request: I/O error, dev sdd, sector 975699960 | |
| [ 454.246191] sd 0:2:3:0: [sdd] Unhandled error code | |
| [ 454.246260] sd 0:2:3:0: [sdd] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK | |
| [ 454.246416] sd 0:2:3:0: [sdd] CDB: Read(10): 28 00 00 00 08 00 00 00 08 00 | |
| [ 454.247037] end_request: I/O error, dev sdd, sector 2048 | |
| [ 454.247294] sd 0:2:3:0: [sdd] Unhandled error code | |
| [ 454.247363] sd 0:2:3:0: [sdd] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK | |
| [ 454.247496] sd 0:2:3:0: [sdd] CDB: Read(10): 28 00 00 00 08 00 00 00 08 00 | |
| [ 454.248156] end_request: I/O error, dev sdd, sector 2048 | |
| [ 454.248419] sd 0:2:3:0: [sdd] Unhandled error code |
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
| /* | |
| * linux 2.6.37-3.x.x x86_64, ~100 LOC | |
| * gcc-4.6 -O2 semtex.c && ./a.out | |
| * 2010 [email protected], salut! | |
| * | |
| * update may 2013: | |
| * seems like centos 2.6.32 backported the perf bug, lol. | |
| * jewgold to 115T6jzGrVMgQ2Nt1Wnua7Ch1EuL9WXT2g if you insist. | |
| */ |
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
| # Use those functions to enumerate all interfaces available on the system using Python. | |
| # found on <http://code.activestate.com/recipes/439093/#c1> | |
| import socket | |
| import fcntl | |
| import struct | |
| import array | |
| def all_interfaces(): | |
| max_possible = 128 # arbitrary. raise if needed. |
NewerOlder