This list is no longer updated, thus the information is no longer reliable.
You can see the latest version (from october 2022) here
package appiumworkaround; | |
import io.appium.java_client.windows.WindowsDriver; | |
import java.io.IOException; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
import lombok.AccessLevel; | |
import lombok.NoArgsConstructor; |
# get_wk_token.py // jeffehobbs@gmail.com // Nov. 2022 | |
# from documentation here, which you should read first: | |
# https://developer.apple.com/documentation/weatherkitrestapi/request_authentication_for_weatherkit_rest_api | |
# | |
# 1. Have a valid ADC acount. https://developer.apple.com | |
# 2. Download this script, and open it in a text editor. You'll have to change three variables. | |
# 3. Make up a reverse-domain name service ID (i.e., com.domain.app). Place this in SERVICE_ID. | |
# 4. Create an ADC service identifier. https://developer.apple.com/account/resources/identifiers/add/bundleId | |
# 5. Create an ADC service key. https://developer.apple.com/account/resources/authkeys/add | |
# 6. Download that service key, rename to 'wkservicekey.p8', and move it into same directory as this script. |
// ============================================================================= | |
// XNU kperf/kpc demo | |
// Available for 64-bit Intel/Apple Silicon, macOS/iOS, with root privileges | |
// | |
// | |
// Demo 1 (profile a function in current thread): | |
// 1. Open directory '/usr/share/kpep/', find your CPU PMC database. | |
// M1 (Pro/Max/Ultra): /usr/share/kpep/a14.plist | |
// M2 (Pro/Max): /usr/share/kpep/a15.plist | |
// M3: /usr/share/kpep/as1.plist |
This list is no longer updated, thus the information is no longer reliable.
You can see the latest version (from october 2022) here
/** | |
* Primitive load-balancer to split Cypress specs across multiple runners. This script assumes that | |
* all your specs are in the folder '<project root>/cypress/integration'. It uses the number of | |
* tests per spec file as sole criteria to split specs between runners. | |
* | |
* This script accepts two arguments: the total number of runners and the index (starting from 0) of | |
* the current runner. Example: | |
* $ node cypress-partial.js 5 2 | |
* This command asks for specs to give to the third runner of five runners. | |
* The output of the script is a coma-separated list of specs that can be given to Cypress. Example: |
Map<String, Object> args = new HashMap<>(); | |
args.put("direction", "up"); | |
driver.executeScript("mobile: swipe", args); |
MobileElement source = (MobileElement) new WebDriverWait(driver, 30) | |
.until(elementToBeClickable(MobileBy.AccessibilityId("slider"))); | |
driver.addCommand(HttpMethod.POST, String.format("/session/%s/plugin/actions/swipe", driver.getSessionId()), "swipe"); | |
driver.execute("swipe", ImmutableMap.of("elementId", source.getId(), "percentage", 50)); |
MobileElement slider = driver.findElementByAccessibilityId("slider"); | |
Point source = slider.getLocation(); | |
PointerInput finger = new PointerInput(PointerInput.Kind.TOUCH, "finger"); | |
Sequence sequence = new Sequence(finger, 1); | |
sequence.addAction(finger.createPointerMove(ofMillis(0), | |
PointerInput.Origin.viewport(), source.x, source.y)); | |
sequence.addAction(finger.createPointerDown(PointerInput.MouseButton.MIDDLE.asArg())); | |
sequence.addAction(new Pause(finger, ofMillis(600))); | |
sequence.addAction(finger.createPointerMove(ofMillis(600), |
iPhoneX-test:/usr/local/bin root# apple80211 | |
apple80211 interface_name [-qvh] -cmd[=new_val] | |
-q: Quiet mode. Produce script-friendly output. | |
-h: Verbose help. | |
-v: Verbose output. | |
-40int=[true/false] Get/Set 40 MHz intolerance. | |
-2g_chain_disable=[0/1,0/1] Get/Set 2Ghz shared chain disable and reassoc. [disabled,reassoc] | |
-acl_add=[mac addr,] Comma separated list of mac addresses to add to ACL list for the interface | |
-acl_flush Remove all entries from the ACL list for the interface | |
-acl_list List entries in the ACL list for the interface |