Skip to content

Instantly share code, notes, and snippets.

@unickq
unickq / WCN685x.reg
Created October 5, 2024 19:28
Qualcomm WCN685x Bluetooth fix Windows.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_04CA&PID_3A24\6&2a786565&0&3\Device Parameters]
"DeviceSelectiveSuspended"=dword:00000000
"SelectiveSuspendEnabled"=dword:00000000
"SelectiveSuspendSupported"=dword:00000000
2024-09-23 10:51:17:526 [Appium] Welcome to Appium v2.11.4 (REV adf6afc5a839d1fe0c0623d16fc0e3e65dd38ea3)
2024-09-23 10:51:17:527 [Appium] Non-default server args:
2024-09-23 10:51:17:529 [Appium] { address: '127.0.0.1',
allowCors: true,
basePath: '/',
localTimezone: true,
logTimestamp: true,
relaxedSecurityEnabled: true }
2024-09-23 10:51:17:545 [Appium] The autodetected Appium home path: /Users/runner/work/ui-mobile-tests/ui-mobile-tests
2024-09-23 10:51:17:546 [Appium] Attempting to load driver xcuitest...
@unickq
unickq / playwright_step.ts
Last active April 23, 2024 15:08
Playwright typescript @step decorator
import { test } from "@playwright/test";
export function step(title?: string) {
return function actualDecorator(
target: (this: any, ...args: any[]) => Promise<any>,
context: ClassMethodDecoratorContext,
) {
async function replacementMethod(this: any, ...args: any): Promise<any> {
const name =
title ||
function createEvent(typeOfEvent) {
var event =document.createEvent("CustomEvent");
event.initCustomEvent(typeOfEvent,true, true, null);
event.dataTransfer = {
data: {},
setData: function (key, value) {
this.data[key] = value;
},
getData: function (key) {
return this.data[key];
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<style type="text/css">
body{margin: 0px;padding: 15px}body, td, th{font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Tahoma, sans-serif;font-size: 10pt}th{text-align: left}h1{margin-top: 0px}a{color:#4a72af}
.status{background-color:<%=build.result.toString() == "SUCCESS" ? 'green' : 'gold' %>;font-size:28px;font-weight:bold;color:white;width:720px;height:52px;margin-bottom:18px;text-align:center;vertical-align:middle;border-collapse:collapse;background-repeat:no-repeat}
.status .info{color:white!important;text-shadow:0 -1px 0 rgba(0,0,0,0.3);font-size:32px;line-height:36px;padding:8px 0}
</style>
<body>
<div class="content round_border">