Skip to content

Instantly share code, notes, and snippets.

View theodorehills's full-sized avatar

Theodore Hills theodorehills

  • Hong Kong SAR
  • 12:17 (UTC +08:00)
View GitHub Profile
final String chars = "abcdefghijklmnopqrstuvwxyz";
final String upperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
final String digits = "1234567890";
@theodorehills
theodorehills / HttpClient.ts
Last active June 9, 2022 04:13
This is a encapsulated axios util class
import axios, {AxiosInstance, AxiosRequestConfig, AxiosResponse} from 'axios'
import {RequestParams} from '@/interfaces/request-params'
/**
* Axios 基础实例
* @type {AxiosInstance}
*/
const axiosInstance: AxiosInstance = axios.create({
baseURL: 'http://localhost:8080',
timeout: 10_000,
@theodorehills
theodorehills / fedora-modular.repo
Last active November 16, 2022 13:38
fedora repos
[fedora-modular]
name=Fedora Modular $releasever - $basearch
failovermethod=priority
baseurl=https://mirrors.ustc.edu.cn/fedora/releases/$releasever/Modular/$basearch/os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-$releasever&arch=$basearch
enabled=1
#metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1