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 | |
cage -- bash -c 'wlr-randr --output X11-1 --custom-mode 1280x800; sleep 1; sudo /usr/local/bin/waydroid-helper & waydroid show-full-ui' |
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/modules/api/api.py b/modules/api/api.py | |
index e6edffe7..86f51fa3 100644 | |
--- a/modules/api/api.py | |
+++ b/modules/api/api.py | |
@@ -337,6 +337,10 @@ class Api: | |
return script_args | |
def text2imgapi(self, txt2imgreq: models.StableDiffusionTxt2ImgProcessingAPI): | |
+ txt2imgreq.width = round(txt2imgreq.width / 64) * 64 | |
+ txt2imgreq.height = round(txt2imgreq.height / 64) * 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/Documentation/devicetree/bindings/sound/tas2562.yaml b/Documentation/devicetree/bindings/sound/tas2562.yaml | |
index 30f6b029ac08..9af81faf4b42 100644 | |
--- a/Documentation/devicetree/bindings/sound/tas2562.yaml | |
+++ b/Documentation/devicetree/bindings/sound/tas2562.yaml | |
@@ -54,6 +54,10 @@ properties: | |
'#sound-dai-cells': | |
const: 1 | |
+ firmware-name: | |
+ $ref: /schemas/types.yaml#/definitions/string |
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
<# | |
.SYNOPSIS | |
MSI-mode utility | |
.DESCRIPTION | |
Main purpose of this script is turning on MSI-mode for all PCI devices in bulk. Script offers four modes which can be selected through following command line arguments: | |
'on' - turning MSI-mode on; | |
'off' - turning MSI-mode off; | |
'reg' - printing reg-file for backup purposes (to save text to reg-file use standard redirection or piplining to comandlet Out-File); | |
- started without command line argument script prints devices capable for MSI-mode. |
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
let cache = {}; | |
let fuck = (canvas) => { | |
let key = `${canvas.width},${canvas.height}`; | |
let ar = cache[key]; | |
if (!ar) { | |
ar = []; | |
for (let i = 0; i < 1000; i++) { | |
let pixel = { | |
x: Math.round(canvas.width * Math.random()), |
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 | |
# This script should be run by a DDoS protected server | |
REMOTE_DOMAIN="vulnerable-minecraft-server.domain" | |
PROTECTOR_PORT=8080 | |
PROTECTED_PORT=25565 | |
echo Fetching IPs... | |
PROTECTOR_IP=$(ip a | grep inet | awk 'FNR == 3 {print $2}' | sed 's/\/[0-9]\{1,\}//g') |
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 | |
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 |
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
# Maintainer: Saren Arterius <saren@wtako.net> | |
# Maintainer: Térence Clastres <t.clastres@gmail.com> | |
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | |
# Maintainer: Ionut Biru <ibiru@archlinux.org> | |
# Contributor: Michael Kanis <mkanis_at_gmx_dot_de> | |
pkgname=mutter-performance | |
pkgver=3.34.0+14+g0e69fe078 | |
pkgrel=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
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 |
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 | |
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; |
NewerOlder