Skip to content

Instantly share code, notes, and snippets.

View hellokaton's full-sized avatar
:shipit:
Focusing on work

見える hellokaton

:shipit:
Focusing on work
View GitHub Profile
@hellokaton
hellokaton / install_chevereto.md
Last active November 7, 2021 12:50
自建图床 chevereto

在 VPS 上搭建自己的图床,这次我们使用 chevereto 这个程序。你需要在服务器上有 Nginx、PHP、MySQL,我们使用一键安装包进行安装。

安装 LNMP

yum -y install wget screen curl python git
wget http://mirrors.linuxeye.com/lnmp-full.tar.gz
tar xzf lnmp-full.tar.gz
cd lnmp
screen -S lnmp

这问题蛮有意思,题目本身会涉及到jvm相关的两个话题。整篇内容是分析贴,没有博文视角。

  1. classloader的种类和加载顺序
  2. 当出现相同class jvm是如何处理的

这里我们先不说结论(网上很多)结论留在文章末尾,我在本地 maven 工程下进行尝试的时候发现一个有趣的现象,

像这样的写法大家猜猜会如何加载呢?如果你尝试的话就会发现一个问题

@hellokaton
hellokaton / index.html
Created August 1, 2018 14:27
打字机效果源码
<!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">

ShadowsocksR 协议插件文档


概要

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

现有插件介绍

1.混淆插件

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
@hellokaton
hellokaton / README.md
Last active March 29, 2024 02:33
Go 的信号处理和优雅退出

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

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

@hellokaton
hellokaton / intellij_biezhi_java_style.xml
Last active July 6, 2018 10:35
我在 idea 下 java 代码风格
<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>
<!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 分钟学会网页样式">
package org.slive.net;
import java.net.UnknownHostException;
import java.util.regex.Pattern;
/**
* <pre>
* IP地址范围:
* 0.0.0.0~255.255.255.255,包括了mask地址。
*