Skip to content

Instantly share code, notes, and snippets.

View semutmerah's full-sized avatar

Muhammad Rasyid Fahroni semutmerah

View GitHub Profile
@semutmerah
semutmerah / appium.log
Created February 16, 2024 05:38
appium device farm log with iOS 17.3 real device, failed to launch WDA Driver
[mohrasyidfahroni:~] % appium server -ka 800 --use-plugins=device-farm,appium-dashboard -pa /wd/hub --plugin-device-farm-platform=ios --plugin-device-farm-ios-device-type=real
[Appium] Attempting to load plugin device-farm...
[Appium] Attempting to load plugin appium-dashboard...
[Appium] Requiring plugin at /Users/mohrasyidfahroni/.appium/node_modules/appium-dashboard/lib/index.js
[Appium] Requiring plugin at /Users/mohrasyidfahroni/.appium/node_modules/appium-device-farm/lib/src/index.js
[appium-dashboard] Unable to create adb instance.
[Appium] AppiumDashboardPlugin has been successfully loaded in 0.793s
[Appium] DevicePlugin has been successfully loaded in 0.794s
[Appium] Welcome to Appium v2.5.1 (REV cfac516ee045d869be34598152e80a11ef2befe7)
[Appium] Non-default server args:
@semutmerah
semutmerah / datadog_terraform.tf
Created September 20, 2022 13:37
datadog terraform example
resource "helm_release" "datadog" {
name = "datadog-agent"
lifecycle {
ignore_changes = [
status,
]
}
repository = "https://helm.datadoghq.com"
@semutmerah
semutmerah / datadog_error_log.txt
Created September 20, 2022 13:31
datadog error log on gke autopilot
2022-09-20 12:56:57 UTC | CORE | ERROR | (pkg/collector/worker/check_logger.go:69 in Error) | check:cilium | Error running check: [{"message": "HTTPConnectionPool(host='10.148.0.6', port=9090): Max retries exceeded with url: /metrics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc9e30df970>: Failed to establish a new connection: [Errno 111] Connection refused'))", "traceback": "Traceback (most recent call last):
File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/connection.py\", line 174, in _new_conn
conn = connection.create_connection(
File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/util/connection.py\", line 95, in create_connection
raise err
File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/util/connection.py\", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
@semutmerah
semutmerah / cleanup.sh
Created March 8, 2022 07:15
cleanup script to minimize ubuntu vm (useful for vagrant box)
#!/bin/bash -eux
SSH_USER=${SSH_USERNAME:-vagrant}
DISK_USAGE_BEFORE_CLEANUP=$(df -h)
# Make sure udev does not block our network - http://6.ptmc.org/?p=164
#echo "==> Cleaning up udev rules"
#rm -rf /dev/.udev/
#rm /lib/udev/rules.d/75-persistent-net-generator.rules
@semutmerah
semutmerah / Login.robot
Created September 20, 2019 15:57
How to Create Robot Framework Custom Keyword
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${BROWSER} Chrome
${URL} https://www.facebook.com/
${EMAIL} apapun@apapun.com
*** Test Cases ***
Test Berhasil Login
@semutmerah
semutmerah / statefulset.yaml
Last active July 25, 2019 06:06
Mysql Kubernetes Deployment
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mysql{{SUFFIX}}
labels: &labels
project: mysql
service: mysql{{SUFFIX}}
spec:
serviceName: mysql
replicas: 1
@semutmerah
semutmerah / App.js
Last active September 17, 2018 17:39
How to adding testID in react native
import React from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text {...testID('important-text')}>Hello World!</Text>
</View>
);
@semutmerah
semutmerah / TestSwipe.robot
Last active October 13, 2023 18:40
Demo Scroll Down / Scroll Up using Swipe keyword in Robot Framework
*** Settings ***
Library AppiumLibrary 15 run_on_failure=Log Source
Library Process
Suite Setup Spawn Appium Server
Suite Teardown Close Appium Server
Test Teardown Close Application
*** Variables ***
## Go here to download the apk for the app used in this test -> https://drive.google.com/file/d/19FxLjux8ZtumweXzBA_CYrL0Va-BL4gY/view?usp=sharing