#!/bin/bash -e
ARGUMENT_LIST=(
"arg-one"
"arg-two"
"arg-three"
)
This file contains 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 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; |
This file contains 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
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; |
This file contains 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
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 |
This file contains 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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: slim-shady-configmap | |
data: | |
slim-shady.sh: | | |
#!/bin/bash | |
echo "Hi!" | |
echo "My name is" |
This file contains 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
.::::. | |
.::::::::. | |
::::::::::: | |
..:::::::::::' | |
'::::::::::::' | |
.:::::::::: | |
'::::::::::::::.. | |
..::::::::::::. | |
``:::::::::::::::: | |
::::``:::::::::' .:::. |
This file contains 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
#!/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" |
This file contains 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
# 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' |
This file contains 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
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; |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
NewerOlder