Skip to content

Instantly share code, notes, and snippets.

View woohsi's full-sized avatar

AAA woohsi

  • Coporation on Earth
  • Earth
View GitHub Profile
# HTTP 代理端口
port: 7890
# SOCKS5 代理端口
socks-port: 7891
# Linux 和 macOS 的 redir 代理端口
redir-port: 7892
# 混合端口
@woohsi
woohsi / api.ts
Created December 19, 2024 02:51 — forked from JaysonChiang/api.ts
Example of Axios with TypeScript
import axios, { AxiosError, AxiosResponse } from 'axios';
import token from './somewhere';
interface Todo {
id: string;
title: string;
}
interface User {
id: string;
@woohsi
woohsi / Jenkinsfile
Created January 17, 2020 07:53 — forked from oifland/Jenkinsfile
Loops in Jenkinsfiles
// Related to https://issues.jenkins-ci.org/browse/JENKINS-26481
abcs = ['a', 'b', 'c']
node('master') {
stage('Test 1: loop of echo statements') {
echo_all(abcs)
}
stage('Test 2: loop of sh commands') {