Skip to content

Instantly share code, notes, and snippets.

View hunzai's full-sized avatar

amjad hunzai

View GitHub Profile
@hunzai
hunzai / blockly.xml
Last active September 15, 2021 10:10
giveAway
When
[Case
(Deposit
(Role "me")
(Role "buyer")
(Token "" "")
(Constant 10)
)
(Pay
(Role "me")
@hunzai
hunzai / blockly.xml
Last active September 15, 2021 09:10
transferValue
When
[Case
(Deposit
(Role "seller")
(Role "buyer")
(Token "" "")
(ConstantParam "tokenPrice")
)
(Pay
(Role "seller")
mkdir -p deps
cd deps
sudo apt update
wget http://de.archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
wget http://de.archive.ubuntu.com/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-11_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/p/procps/libprocps6_3.3.12-3ubuntu1_amd64.deb
sudo dpkg -i *.deb
cd
rm -rf deps
@hunzai
hunzai / residence.json
Created December 15, 2020 07:20
schema room
{
"residence": {
"id": "",
"name": "",
"registration_number": "",
"owner_name": "",
"description": "",
"contact": {
"phone": "",
"email": ""
@hunzai
hunzai / appium-log
Created August 19, 2020 13:55
AppiumAppLog
[HTTP] --> POST /wd/hub/session/fb1162ab-bb0f-4857-a9f5-07ead9db5abd/elements
[HTTP] {"using":"xpath","value":"(//XCUIElementTypeOther[@name=\"PREFERENCES Select your shop SHOP WOMEN'S SHOP MEN'S\"])[3]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeImage"}
[MJSONWP (fb1162ab)] Calling AppiumDriver.findElements() with args: ["xpath","(//XCUIElementTypeOther[@name=\"PREFERENCES Select your shop SHOP WOMEN'S SHOP MEN'S\"])[3]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeImage","fb1162ab-bb0f-4857-a9f5-07ead9db5abd"]
[XCUITest] Executing command 'findElements'
[BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[BaseDriver] Waiting up to 0 ms for condition
[WD Proxy] Matched '/elements' to command name 'findElements'
[WD Proxy] Proxying [POST /elements] to [POST http://127.0.0.1:8100/session/5690EFF0-5714-4D5F-B28F-C357C4BD5AF3/elements] with body: {"using":"xpath","value":"(//XCUIElementT
@hunzai
hunzai / AdbCommands
Created March 20, 2020 17:12 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@hunzai
hunzai / stable-product-skus.txt
Created April 2, 2019 13:02
stable-product-skus
p00222037
p00239880
p00239660
p00264760
p00264767
p00239842
p00212778
p00251229
p00254149
p00240018
@hunzai
hunzai / mdb_to_sql
Created July 2, 2014 06:46
mdb to mysql
Excellent - you saved alot of my time.
Just one adjustment to the script, you have to add database type with -I option.
mdb-export -I 'mysql' -R ';' $mdb $table >> $sql
mdb=$1
sql=$2
if [ -z "$2" ]; then