Skip to content

Instantly share code, notes, and snippets.

View heyeshuang's full-sized avatar
🌊
going with the flow

贺叶霜 heyeshuang

🌊
going with the flow
View GitHub Profile
@heyeshuang
heyeshuang / nat.conf
Last active April 17, 2024 06:23
与NATMap配合的Wireguard脚本
[Interface]
PrivateKey = aD4SfpM2APKsfAR5zfLBmzblZVWnESe0GD+CEdXooXU=
Address = 192.168.2.2/24
[Peer]
PublicKey = lkc17GQJmqMILdh4jnvOalN8dSNIJY2EXDjuZWFssxc=
AllowedIPs = 0.0.0.0/0
Endpoint = wg.example.com:0 #dynamicEndpoint
@heyeshuang
heyeshuang / zipf.ipynb
Created December 16, 2017 12:46
Zipf's law
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heyeshuang
heyeshuang / fonts.conf
Last active January 22, 2021 07:44
2017年的fontconfig,使用思源系列字体
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- 关闭内嵌点阵字体 -->
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<!-- 字节码解释器(BCI),需要自带良好微调指令的字体 -->
set smoothscroll
set noautofocus
set typelinkhints
let searchlimit = 10
let scrollstep = 200
let barposition = "bottom"
map l nextTab
map h previousTab
map d closeTab
map u lastClosedTab
[
{
"Name": " base",
"HeroName": "ability",
"ID": "0",
"Cooldown": 0.0
},
{
"Name": " ranger frost arrows",
"HeroName": "drow",
<link href="../topeka-elements/topeka-datasource.html" rel="import">
<link href="../paper-ripple/paper-ripple.html" rel="import">
<link href="../paper-slider/paper-slider.html" rel="import">
<link href="../paper-tabs/paper-tabs.html" rel="import">
<link href="../paper-tabs/paper-tab.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
<link href="../paper-button/paper-button.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
<link href="../core-icons/av-icons.html" rel="import">
<link href="../paper-fab/paper-fab.html" rel="import">
<link href="../paper-tabs/paper-tabs.html" rel="import">
<link href="../paper-tabs/paper-tab.html" rel="import">
<polymer-element name="my-element">
<template>
@heyeshuang
heyeshuang / wrtbwmon
Last active August 19, 2019 03:27
wrtbwmon -- modified for openwrt
#!/bin/sh
#
# Traffic logging tool for OpenWRT-based routers
# Original code at https://code.google.com/p/wrtbwmon/
# For usage with OpenWRT, take a look at http://heyeshuang.tk/?p=268
# Created by Emmanuel Brucy (e.brucy AT qut.edu.au)
# Modified by HeYSH (yeshuanghe AT gmail.com)
#
# Based on work from Fredrik Erlandsson (erlis AT linux.nu)
# Based on traff_graph script by twist - http://wiki.openwrt.org/RrdTrafficWatch