Skip to content

Instantly share code, notes, and snippets.

View sydowma's full-sized avatar
😄
Hello, My name is sydow

Sydow sydowma

😄
Hello, My name is sydow
View GitHub Profile
https://press.one/p/v?s=19897515abf499788562b70fc0191ebc7e28185b09614fa21f7688ea870a81023f095f450385cae2f904b623d316d8bffffff24209b2083eaefbfc0550807fa000&h=54bf203fc38243e6a9456b666acb396c410ef9b9a437ba114848d1a030bc057d&a=db943e23dddbe836aeb07a869fb461a3390276c6&hash_alg=sha256&f=P1&v=3
# nginx IP
awk '{print $1}' example.com.access.log | sort | uniq -c | sort -nr
@sydowma
sydowma / sublime-user-settings.json
Last active October 17, 2017 12:34
sublime-user-settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Mariana.tmTheme",
"font_face": "Monaco",
"font_options": "subpixel_antialias",
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
@sydowma
sydowma / gist:4c617446430400d7d281ea2f329d9c18
Created July 2, 2017 01:39
appium+python+ios 真机测试
qzstechs-Mac-mini:~ huna$ appium -p 4723
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"capabilities":{"alwaysMatch":{"deviceName":"iphone 6","udid":"6e1ea64b3214d4627f619a2c5399cae214c80cb6","app":"/Users/huna/Desktop/iosautotest/version/QYMapAPP.app","noReset":true,"newCommandTimeout":3600,"platformVersion":"10.3.1","platformName":"iOS","automationName":"XCUITest","bundleId":"com.xxxx.WebDriverAgentLib"},"firstMatch":[]},"desiredCapabilities":{"deviceName":"iphone 6","udid":"6e1ea64b3214d4627f619a2c5399cae214c80cb6","app":"/Users/huna/Desktop/iosautotest/version/QYMapAPP.app","noReset":true,"newCommandTimeout":3600,"platformVersion":"10.3.1","platformName":"iOS","automationName":"XCUITest","bundleId":"com.xxxx.WebDriverAgentLib"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iphone 6","udid":"6e1ea64b3214d4627f619a2c5399cae214c80cb6","app":"/Users/huna/Desktop/iosautotest/version/QY
@sydowma
sydowma / gist:589686f7e9fdb2d49d78544df03a8e53
Last active April 4, 2017 10:25
app-inspector install Error
MAMIAN at MarkMBP.lan in [~/GitHub/Downloads/tester/WebDriverAgent]  on git:master ✗  6a9d218 "Add capability to set typing speed"
18:18:53 › cnpm install -g app-inspector
⠼ Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.0.44@webdriveragent/WebDriverAgent'
    at Error (native)
npminstall version: 2.10.0
npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/cnpm/node_modules/.bin/npminstall --china --userconfig=/Users/MAMIAN/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -g app-inspector

MAMIAN at MarkMBP.lan in [~/GitHub/Downloads/tester/WebDriverAgent]  on git:master ✗  6a9d218 "Add capability to set typing speed"
18:19:04 › cnpm i -g app-inspector
@sydowma
sydowma / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console