Skip to content

Instantly share code, notes, and snippets.

View v5tech's full-sized avatar
🎯
Focusing

v5tech

🎯
Focusing
  • Xi'an China
  • 00:52 (UTC +08:00)
View GitHub Profile
@v5tech
v5tech / gist:88c6a58aacec07dd7fd162a0beee789f
Created November 25, 2024 04:46
SVG Visualization Generation Expert
# SVG Visualization Generation Expert
You are an expert SVG visualization generator, specialized in creating detailed, balanced, and informative visual representations. You excel at transforming complex data and concepts into clear, engaging SVG visualizations.
## Role & Capabilities
- Create precise and visually appealing SVG visualizations
- Transform complex data into clear visual representations
- Ensure accessibility and readability in all visualizations
- Maintain consistent visual hierarchy and design principles
- Optimize SVG code for performance and compatibility
@v5tech
v5tech / GoogleAuthenticationTool.java
Created May 15, 2024 05:54
Google Authenticator 验证工具类
import com.google.zxing.BarcodeFormat;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.WriterException;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
import de.taimos.totp.TOTP;
import org.apache.commons.codec.binary.Base32;
import org.apache.commons.codec.binary.Hex;
import sun.misc.BASE64Encoder;
@v5tech
v5tech / HttpGetRequestWithBodyAppliaction.java
Created April 19, 2024 03:23
http get request with body
package net.aimeizi;
import cn.hutool.json.JSONObject;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
@v5tech
v5tech / getip
Created March 12, 2023 15:08
获取外网IP
https://tbip.alicdn.com/api/queryip
https://ip.cn/api/index?type=0
https://r.inews.qq.com/api/ip2city?otype=jsonp
http://mam.netease.com/api/config/getClientIp
https://api.live.bilibili.com/xlive/web-room/v1/index/getIpInfo
@v5tech
v5tech / README.md
Created January 29, 2023 04:58 — forked from magnetikonline/README.md
Bash getopt long options with values usage example.

Bash getopt long options with values usage example

#!/bin/bash -e

ARGUMENT_LIST=(
  "arg-one"
  "arg-two"
  "arg-three"
)
apiVersion: v1
kind: ConfigMap
metadata:
name: slim-shady-configmap
data:
slim-shady.sh: |
#!/bin/bash
echo "Hi!"
echo "My name is"
.::::.
.::::::::.
:::::::::::
..:::::::::::'
'::::::::::::'
.::::::::::
'::::::::::::::..
..::::::::::::.
``::::::::::::::::
::::``:::::::::' .:::.
@v5tech
v5tech / acme_docker.sh
Created June 30, 2022 04:48 — forked from stilleshan/acme_docker.sh
基于 docker 环境 acme.sh 申请 Let's Encrypt 泛域名证书的交互式一键脚本.
#!/usr/bin/env bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
# fonts color
Green="\033[32m"
Red="\033[31m"
Yellow="\033[33m"
GreenBG="\033[42;37m"
RedBG="\033[41;37m"
@v5tech
v5tech / docker-compose.yaml
Created January 6, 2022 13:03 — forked from coltenkrauter/docker-compose.yaml
Traefik V2 Docker Compose file with LetsEncrypt and HTTPS redirect - Traefik dashboard and simple whoami service
# Tutorial: https://blog.creekorful.com/2020/01/how-to-expose-traefik-2-dashboard-securely-docker-swarm/
version: '3'
services:
reverse-proxy:
image: traefik:2.3
command:
# - '--log.level=DEBUG'
- '--api=true'
- '--api.dashboard=true'
package com.example.anchnet;
import org.redisson.api.RRateLimiter;
import org.redisson.api.RateIntervalUnit;
import org.redisson.api.RateType;
import org.redisson.api.RedissonClient;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;