-
install cygwin and ssh service on windows record
1. install ssh server(cygwin) on Windows1) download setup-x86_64.exe on cygwin.com2) run setup-x86_64.exe and setup as follow steps, click next until to select packages.ps: if pc can not get access to internet, can chose local(you should download...…
-
robotframework study
ROBOT_LIBRARY_SCOPEROBOT_LIBRARY_SCOPE has tree types of values.TEST CASEA new instance is created for every test case.A possible suite setup and suite teardown share yet another instance.This is the default.TEST SUITEA new instance is created for...…
-
selenium robot/python demo
Selenium is an open source automated testing suite for web applications.Selenium has four components:Selenium Integrated Development Environment (IDE)Selenium Remote Control (RC)WebdriverSelenium GridSelenium IDEa firefox extension, support record...…
-
solve the Problems with X11 - Can't open display on MAC
how to solve the Problems with X11 - Can’t open display on MAChow to solve the Problems with X11 - Can’t open display on MAC do commands on mac: defaults write com.apple.x11 nolisten_tcp -boolean falsedefaults write org.X.x11 nolisten_tcp -bo...…
-
update brew repo
cd `brew --repo` git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git brew updatesome mirrorshttps://git.coding.net/homebrew/homebrew.git/https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git/https://mir...…
-
FlaskBB guide
clone and start:git clone https://github.com/sh4nks/flaskbb.gitcd flaskbbgit checkout 2.0.0virtualenv .venvsource .venv/bin/activatepip install -r requirements.txtflaskbb makeconfigflaskbb --config flaskbb.cfg installflaskbb --config flaskbb.cfg r...…
-
nc study
ref linkref link2nc demoassume: A(1.1.1.1) to B(2.2.2.2)nc demo1: nc copy file:copy file(test.log) from A(1.1.1.1) to B(2.2.2.2)step1: start nc to monitoring data on B nc -lp 1234 > test.logstep2: use nc make connection with B on A nc...…
-
sftp command record
download files from remotesftp user@remote_serverlsget /remote/path/FILENAME /local/path/FILENAME…
-
python demo: set proxy on windows
this is a demo to set proxy on windows with python.you can use pyinstaller to package it to an exe and set proxy automatically.#!/usr/bin/env python# -*- coding: utf-8 -*-try: import _winreg as winregexcept: import winregINTERNET_SETTINGS = ...…
-
jupyterlab and extension installation on mac
pre network settingour internal network has some limitations, so firstly we should set the proxy of network.export https_proxy=http://x.x.x.x:8080export http_proxy=http://x.x.x.x:8080install conda and jupyter labinstall conda, you can follow theco...…
-
robot demo record
*** Settings ***Documentation ref: [robotframwork user guide link](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#variables)Library SeleniumLibraryLibrary String*** Variables ***${string_pass} he...…
-
bashrc 、~/.bashrc、profile、~/.profile
Interactive (non-login) shells, then the config is read from these files: $HOME/.bashrcFor login shells, the config is read from these files: /etc/profile (Always sourced) $HOME/.bash_profile(the rest of these files are checked in order until o...…
-
turn web to app on mac
just two commands, turn web to app on mac npm i -g nativefier nativefier "https://www.ximalaya.com/"…
-
Selenium problems collection
insert value to inputWhen we want to use selenium to insert some value to input element in html, we follow steps as follow: step1: clear the text in the input step2: insert valuefirstly, we get element: #!-encoding=utf-8- chrome_option = C...…
-
git commands record
git config user.name "username"git config user.email "mail"git remote -v #show remote git repositorygit remote add origin git://github.com/username/test.gitgit pull --allow-unrelated-histories #solve allow-unrelated-histories problemsgit r...…
-
about regex
正则组成普通字符 + 元字符a-z,A-z,0-9,_ \ ^ $ . ? * + | {n} {m,n} (pattern) (?:pattern) (?!pattern) (?=pattern) [] [^] \b元字符详细 字符 描述 \ 标记下一个字符为特殊字符/原义字符/向后引用/八进制转义符。e.g. \n 代表换行符 ^ 匹配输...…
-
mongodb_test_record
1.install:brew services stop mongodbbrew uninstall mongodbbrew tap mongodb/brewbrew install mongodb-communitybrew services start mongodb-community2.add accounthttps://segmentfault.com/a/1190000011554055> mongo> use adminswitched to db admin&...…
-
sass less stylus
sass + less + stylus1) sassh1color: #fffbackground-color: #000按照sass缩进方式省去[大括号]与[分号], 且兼容css写法2)less@base: #f938ab;.box-shadow(@style, @c) when (iscolor(@c)) {box-shadow: @style @c;-webkit-box-shadow: @style @c;-moz-box-shadow: @style @...…
-
django quick start
install python install djangocheck django version:pip install djangopython -m django --version create a project by djangodjango-admin startproject mysite django project mysite/ manage.py mysite/ init.py settings.py ur...…