- 博客(17)
- 收藏
- 关注
转载 opensuse安装https的crt文件
下载crt文件,复制到/etc/pki/trust/anchors目录,运行update-ca-certificates即可I would take a look for a package calledca-certificates(that's the name it goes by on Red Hat distros). All of the ma...
2017-12-11 14:24:00 210
转载 mongodb不能以服务方式正常启动,而可以用shell的方式启动的解决办法
After running the repair I was able to start the mongod proccessor but as root, which meant thatservice mongod startwould not work. To repair this issue, I needed to make sure that all the file...
2017-12-08 11:29:00 161
转载 正则表达式
1、提取Amazon的ASIN.+[dp|product]/(\w+)[/\?].*$1转载于:https://www.cnblogs.com/mikeyang/p/7566919.html
2017-09-21 09:41:00 145
转载 excel处理技巧
1、填充柄拖动公式,保持公式内的数字不递增递增:=VLOOKUP(C1,sheet1!C3:sheet1!P30,4,FALSE)不递增:=VLOOKUP(C1,sheet1!$C$3:sheet1!$P$30,4,FALSE)转载于:https://www.cnblogs.com/mikeyang/p/6925692.html...
2017-05-31 19:49:00 110
转载 Anker网站分析
1、Anker以亚马逊为基础,其他平台围绕着亚马逊展开2、产品定位在移动充电,解决移动设备电源问题的痛点3、少量研发的代工模式,价格控制在中等水平4、专注于品牌打造,依靠口碑传播5、独立网站始于2016年,定位在给亚马逊店铺进行导流6、从SEO数据来看,网站风格和专业图片起了明显作用,客户浏览意愿强7、站外数据中搜索占一半,其中自然搜索又占绝大部分,品牌的力量显露无疑8、直接访问流量占得...
2017-03-22 11:12:00 365
转载 一些坑
1、Shell script read missing last linehttp://stackoverflow.com/questions/12916352/shell-script-read-missing-last-line转载于:https://www.cnblogs.com/mikeyang/p/6293295.html
2017-01-17 15:28:00 67
转载 Shell小程序
1、保持顺序并消除重复行#!/bin/bashunset lines# while read line ; do while read line || [ -n "$line" ]; do # echo 'lines length: '${#lines[@]} # echo 'read:'$line' '${#line} if !(echo "${lines[@]}" | ...
2017-01-16 10:03:00 91
转载 Python小知识
1、获取脚本所在目录if getattr(sys, 'frozen', False): current_ini = os.path.join(os.path.dirname(sys.executable), 'amazon.ini') print 'execute type: {}, current ini: {}'.format('exe', current_ini)e...
2016-12-21 21:06:00 111
转载 Firefox一次提交两次请求的问题
1、把这迅雷的插件禁用后一切恢复正常。2、如何禁止迅雷监听?其实是个驱动,从网络层监控了所有HTTP请求,如果是文件下载就拦截并且自动调用迅雷。迅雷安装目录的上一层目录有一个卸载程序,可以卸载这个功能。(这个目录一共有两个卸载程序,不是下图这个卸载程序,我已经卸载,所以是另外一个下图没有显示的卸载程序,卸载即可)转载于:https://www.cnblog...
2016-12-15 18:15:00 202
转载 Web Scraper使用
{ "selectors": [{ "parentSelectors": ["_root"], "type": "SelectorElementClick", "multiple": false, "id": "expand", "selector": "span.a-expander-prompt", "clickElementSelector": "span.a-expa...
2016-10-13 14:11:00 119
转载 openSuse使用技巧
1、opensuse的gnome默认使用nautilus作为文件浏览工具,若要设置文件的默认排序和视图,参考网页https://thelinuxexperiment.com/change-the-default-sort-order-in-nautilus/转载于:https://www.cnblogs.com/mikeyang/p/5889983.html...
2016-09-20 18:45:00 139
转载 sublime文字处理技巧
1、针对多行文本去除重复行,而不改变文本原来的顺序,即不通过排序的方式移除重复行安装ShellCommand插件,全选文本,ctrl+alt+|调出shell执行终端,输入awk '!x[$0]++',回车执行命令即可移除2、移除超过三个单词的行正则表达式:^(\w+ ){3,}\w+\n3、移除一个单词的行正则表达式:(^\w+\n)转载于:htt...
2016-09-18 17:39:00 134
转载 YUM变量
有一个简单的python命令可以看到yum的 releaserver、arch、basearch的值/usr/bin/python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)' 转载于:https://www.cnblogs.com/mikeyang/p/5...
2016-09-09 16:13:00 131
转载 openSuse快捷键
1、printscreen全屏截图2、ctrl+printscreen窗口截图3、shift+printscreen选择截图4、Ctrl+Alt+up arrow、Ctrl+Alt+down arrow切换工作空间,工作空间相当于不同的屏幕一样转载于:https://www.cnblogs.com/mikeyang/p/5537436.html...
2016-05-28 14:57:00 198
转载 XPATH
1、获取包含了特定后代节点的节点//tbody/tr[./td/p[contains(text(),'创建:2016-05-20')]]/td[7]//td[2]//td[contains(@class, 'order-cell') and descendant::span[text()='B01LZFP6FN']]/a2、获取大于K的元素//div[@id='su...
2016-05-20 17:36:00 70
转载 IMacro 脚本简记
抓取速卖通纠纷订单详情,生成csv进行统计。var macro1="CODE:";macro1+="VERSION BUILD=8970419 RECORDER=FX" + "\n";macro1+="TAB T=1" + "\n";macro1+="URL GOTO=http://trade.aliexpress.com/issue/issueList.htm" + "\n"...
2016-05-05 15:58:00 2222
转载 chrome console 命令简记
1、快速迭代元素$$('tr.dispute-num td strong a').map(function (el) { return el.innerHTML; })2、复选框选中/取消选中checks.map(function(check){$(check).prop( "checked", false );})3、打开多个链接$x...
2016-05-04 11:16:00 196
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人