cat /Users/dongyuwei/.proxychains/proxychains.conf
strict_chain
proxy_dns force
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode
| function custom_event_test --on-event test_event | |
| echo 'event hook' | |
| echo event test: $argv | |
| end | |
| emit test_event foo bar | |
| function on_pwd_changed --on-variable PWD | |
| echo 'on_pwd_changed hook' |
| jest.mock('../utilities/prompt/prompt', () => { | |
| const originalModule = jest.requireActual('../utilities/prompt/prompt'); | |
| return { | |
| __esModule: true, | |
| ...originalModule, | |
| default: jest.fn((args)=> { | |
| if(args.onConfirm){ | |
| args.onConfirm('lost reason') | |
| } | |
| }), |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const shell = require('shelljs'); // Todo: `npm install --save-dev shelljs@0.8.4` for the first time on CI | |
| const crypto = require('crypto'); | |
| // 如果 package-lock.json 都没有变化,就 skip `npm install`,节省ci时间。 | |
| const dirPath = path.join(__dirname, '..'); | |
| shell.cd(dirPath); |
| .page { | |
| position: relative; | |
| width: 1000px; | |
| height: 800px; | |
| border: 1px solid red; | |
| .foo { | |
| background-color: red; | |
| position: absolute; | |
| transition: all 2s ease 0s; |
| const Reconciler = require("react-reconciler"); | |
| function traceMethod(obj) { | |
| return new Proxy(obj, { | |
| get(target, propKey) { | |
| const origMethod = target[propKey]; | |
| if (typeof origMethod === 'function') { | |
| return function (...args) { | |
| console.log('propKey, args:', propKey, args); | |
| return origMethod.apply(target, args); |
| # bash cli | |
| sbt "testOnly akka.stream.javadsl.FlowTest" | |
| # in sbt interactive cli | |
| sbt > | |
| testOnly akka.stream.javadsl.FlowTest |
| import { range, merge, Subject } from 'rxjs'; | |
| import { take, takeLast, multicast } from 'rxjs/operators'; | |
| range(1, 10) | |
| .pipe( | |
| multicast(() => new Subject(), o => merge( | |
| o.pipe(take(1)), | |
| o.pipe(takeLast(1)), | |
| )), | |
| ) |
| set HOMEBREW_NO_AUTO_UPDATE 1 | |
| alias st "git status" | |
| alias tigf "tig --follow" | |
| set -gx LC_ALL en_GB.UTF-8 | |
| set -gx ANDROID_HOME ~/Library/Android/sdk | |
| set -gx ANDROID_SDK_ROOT ~/Library/Android/sdk | |
| set -gx ANDROID_NDK ~/Library/Android/sdk/ndk-bundle | |
| set -gx ANDROID_NDK_HOME ~/Library/Android/sdk/ndk-bundle |
cat /Users/dongyuwei/.proxychains/proxychains.conf
strict_chain
proxy_dns force
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode
| wget --load-cookies=cookies.txt -c https://download.developer.apple.com/Developer_Tools/Xcode_11_Beta_2/Xcode_11_Beta_2.xip |