Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing on work

見える biezhi

🎯
Focusing on work
View GitHub Profile
@biezhi
biezhi / index.html
Created Aug 1, 2018
打字机效果源码
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JS 打字机效果了解一下</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css">
<link rel="stylesheet" href="main.css">
View ShadowsocksR协议插件文档.md

ShadowsocksR 协议插件文档


概要

用于方便地产生各种协议接口。实现为在原来的协议外套一层编码和解码接口,不但可以伪装成其它协议流量,还可以把原协议转换为其它协议进行兼容或完善(但目前接口功能还没有写完,目前还在测试完善中),需要服务端与客户端配置相同的协议插件。插件共分为两类,包括混淆插件和协议定义插件。

现有插件介绍

1.混淆插件

View YouTube API — getting video thumbnail
Each YouTube video has 4 generated images. They are predictably formatted as follows:
http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg
The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is:
http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg
@biezhi
biezhi / README.md
Last active Nov 2, 2020
Go 的信号处理和优雅退出
View README.md

每个平台的信号定义或许有些不同。下面列出了POSIX中定义的信号。 Linux 使用34-64信号用作实时系统中。 命令man 7 signal提供了官方的信号介绍。

在POSIX.1-1990标准中定义的信号列表

@biezhi
biezhi / intellij_biezhi_java_style.xml
Last active Jul 6, 2018
我在 idea 下 java 代码风格
View intellij_biezhi_java_style.xml
<code_scheme name="biezhi-style" version="173">
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="2" />
</value>
</option>
<option name="RIGHT_MARGIN" value="100" />
<JSCodeStyleSettings>
View web-design-in-4-minutes.html
<!DOCTYPE html>
<html>
<head>
<title>4 分钟学会网页样式</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://jgthms.com/web-design-in-4-minutes/index.css">
</head>
<body>
<header id="header">
<img id="logo" src="https://jgthms.com/web-design-in-4-minutes/web-design-in-4-minutes.png" alt="4 分钟学会网页样式">
View ips.java
package org.slive.net;
import java.net.UnknownHostException;
import java.util.regex.Pattern;
/**
* <pre>
* IP地址范围:
* 0.0.0.0~255.255.255.255,包括了mask地址。
*
@biezhi
biezhi / UrlShortener.java
Created May 29, 2018
Java 短链接生成算法
View UrlShortener.java
public class UrlShortener {
// private static final String ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
private static final String ALPHABET = "mUSNcOa6hDgfnEJ1rGMPC03jv4k9RIqL2Yy7TQdH8xu5XFWwAKoZVstizlepBb";
private static final int BASE = ALPHABET.length();
public static String encode(int num) {
StringBuilder sb = new StringBuilder();
while (num > 0) {
sb.append(ALPHABET.charAt(num % BASE));
@biezhi
biezhi / UUIDUtil.java
Created May 29, 2018
Java 短UUID生成
View UUIDUtil.java
import java.nio.ByteBuffer;
import java.util.Base64;
import java.util.UUID;
public class UUIDUtil {
public static String shortUUID() {
UUID uuid = UUID.randomUUID();
return shortUUID(uuid);
}
You can’t perform that action at this time.