Skip to content

Instantly share code, notes, and snippets.

MaiCong maicong

Block or report user

Report or block maicong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View @MaiCong.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">
<title>@MaiCong</title>
<link rel="shortcut icon" href="favicon.png" type="image/png">
<style>
html {
View 1fa.html
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<title>陈一发</title>
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="陈一发儿最牛逼">
View autoReply.js
/**
* 自动回复,粘贴在控制台
*
* 开始: startLoop()
* 停止: stopLoop()
*/
(() => {
let text = '', lastText = '', msg = '', timer = null, count = 0
let faces = [
View 一键评论.js
javascript:(() => {
const $ = ele => document.querySelector(ele) || null;
const $author = $('input[name="author"]');
const $mail = $('input[name="mail"]') || $('input[name="email"]');
const $url = $('input[name="url"]');
const $comment = $('textarea[name="w"]') || $('textarea[name="text"]') || $('textarea[name="comment"]');
const randomValue = [
'写的不错,很有深度,令人信服。',
'又在折腾了啊,我都没了折腾的精力。',
'感同身受。',
View page-lab.php
<?php
/**
*
* 实验室
*
* @package custom
* @author MaiCong <i@maicong.me>
* @link https://github.com/maicong/stay
* @since 1.0.0
*/
View page-lab.css
.main .page-lab .post__content .lab {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding: 0;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
View timeout2.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>时间如白驹过隙</title>
</head>
View timeout1.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>时间如白驹过隙</title>
</head>
View kcptun-config.json
{
"listen": "0.0.0.0:<kcptun_server_port>",
"target": "127.0.0.1:<ssserver_port>",
"key": "<kcptun_password>",
"crypt": "salsa20",
"mode": "fast2",
"mtu": 1350,
"sndwnd": 2048,
"rcvwnd": 2048,
"datashard": 70,
@maicong
maicong / kcptun
Last active Oct 23, 2017
/etc/init.d/kcptun
View kcptun
#!/bin/bash
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0
You can’t perform that action at this time.