- Make sure you have a modern-ish version of Node.js installed.
- Type
npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3
- Connect to it from a client, e.g.
netcat
or similar:nc localhost 9000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
iosFrameworksDir="./build/Park.ios.xcarchive/Products/Library/Frameworks" | |
simulatorFrameworksDir="./build/Park.iphonesimulator.xcarchive/Products/Library/Frameworks" | |
outDir="./build" | |
outputSuffix="xcframework" | |
for iosFramework in "$iosFrameworksDir"/* | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$httpClient.get('https://api.my-ip.io/ip', function (error, response, data) { | |
$done({ | |
title: '当前 IP 地址', | |
content: data, | |
backgroundColor: '#000000', | |
icon: 'network', | |
}) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
# if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
# fi | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="apple" # apple, robbyrussell, agnoster, bira, amuse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jenkins.szfiu.com | |
dev-rm-h5.szfiu.com | |
test-rm-h5.szfiu.com | |
uat-rm-h5.szfiu.com | |
dev-event.szfiu.com | |
test-event.szfiu.com | |
uat-event.szfiu.com | |
dev-h5-ui.szfiu.com | |
test-h5-ui.szfiu.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { type Plugin, type UserConfig } from 'vite'; | |
export default function myPlugin(): Plugin { | |
return { | |
enforce: 'post', | |
apply: 'build', | |
name: 'blabla', | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files.exclude": { | |
"**/.gitignore": false, | |
"**/.gitignorerc.json": false, | |
"**/package-lock.json": false, | |
"**/.vscode": false, | |
"**/dist": false, | |
"**/node_modules": false, | |
"**/pnpm-lock.yaml": false, | |
"**/storybook-static": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-='cd -' | |
...=../.. | |
....=../../.. | |
.....=../../../.. | |
......=../../../../.. | |
1='cd -' | |
2='cd -2' | |
3='cd -3' | |
4='cd -4' | |
5='cd -5' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ExistingUser = { | |
id: number | |
name: string | |
} | |
// WT 是 ExistingUser 的超类型 | |
type WT = { id?: number, name: string } | |
// 这里是期望父类型的地方 |
NewerOlder