The variables and functions are defined as follows:
import numpy as np| #!/bin/bash | |
| MEMORY_MB_VLOW=8192 | |
| MEMORY_MB_LOW=32768 | |
| MEMORY_MB_NORMAL=65536 | |
| MEMORY_MB_HIGH=122880 | |
| SINGLE_SOCKET_CPU_CORES=18 | |
| TOTAL_CORES_MASK=ff,ffffffff,ffffffff | |
| HOST_CORES_MASK=3ffff0,3ffff # 0b1111111111111111110000,0b00000000000000111111111111111111 |
| # Maintainer: Saren Arterius <[email protected]> | |
| # Maintainer: Térence Clastres <[email protected]> | |
| # Maintainer: Jan Alexander Steffens (heftig) <[email protected]> | |
| # Maintainer: Ionut Biru <[email protected]> | |
| # Contributor: Michael Kanis <mkanis_at_gmx_dot_de> | |
| pkgname=mutter-performance | |
| pkgver=3.34.0+14+g0e69fe078 | |
| pkgrel=1 |
| from selenium import webdriver | |
| from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| from selenium.webdriver.firefox.firefox_binary import FirefoxBinary | |
| from time import sleep | |
| import threading | |
| caps = DesiredCapabilities().FIREFOX | |
| #caps["pageLoadStrategy"] = "normal" # complete | |
| caps["pageLoadStrategy"] = "eager" # interactive |
| #!/bin/bash | |
| set -x | |
| echo "#Cloudflare" > /etc/nginx/conf.d/00_real_ip_cloudflare_00.conf; | |
| ips=$(curl https://www.cloudflare.com/ips-v4) | |
| iptables -F cloudflare; | |
| iptables -N cloudflare; | |
| iptables -C INPUT -p tcp -m multiport --dports http,https -j cloudflare || iptables -A INPUT -p tcp -m multiport --dports http,https -j cloudflare | |
| iptables -A cloudflare -p tcp -m multiport --dports http,https -s 127.0.0.0/8 -j ACCEPT; |
The variables and functions are defined as follows:
import numpy as np| diff --git a/hw/display/qxl.c b/hw/display/qxl.c | |
| index 9087db5dee..f58af5251a 100644 | |
| --- a/hw/display/qxl.c | |
| +++ b/hw/display/qxl.c | |
| @@ -1183,6 +1183,10 @@ static const GraphicHwOps qxl_ops = { | |
| .gfx_update = qxl_hw_update, | |
| }; | |
| +static unsigned long ref_time = 0; | |
| +static unsigned long next_ref_time = 0; |
| #!/usr/bin/env python3 | |
| from multiprocessing import Pool | |
| from math import floor | |
| from PIL import Image | |
| from statistics import median_low | |
| from os import listdir | |
| from time import time | |
| WIDTH = 3840 | |
| HEIGHT = 1634 |
| #!/usr/bin/env python3 | |
| # from PIL import Image | |
| import subprocess | |
| import uinput | |
| INPUT_EVENT_ID = 13 | |
| X_MAX = 1216 | |
| Y_MAX = 680 | |
| slots = [None] * 10 | |
| # 2, 3, 1, 6, 4, 5, 0 |
| #!/usr/bin/env python3 | |
| from multiprocessing import Pool | |
| from random import random | |
| samples = 10000000 | |
| samples_mul = 8 | |
| states_repr = ['sleep', 'code', 'tg'] | |
| probs = [ | |
| [0.8, 0.1, 0.1], | |
| [0.2, 0, 0.8], |
| #!/usr/bin/env python3 | |
| from multiprocessing import Pool | |
| from random import randint | |
| longstr = str(2 ** 1000000) * 1000 # 280mb string | |
| searches = [str(randint(10 ** 8, 10 ** 9)) for i in range(10000)] | |
| def search_fn(s): | |
| return s, s in longstr |