Skip to content

Instantly share code, notes, and snippets.

View Ericwyn's full-sized avatar
⌨️
LINK START!!!

Ericwyn Ericwyn

⌨️
LINK START!!!
  • GuangZhou China
View GitHub Profile
@Ericwyn
Ericwyn / luna_pinyin.custom.yaml
Created May 30, 2018 02:33 — forked from lotem/luna_pinyin.custom.yaml
【朙月拼音】模糊音定製模板
# luna_pinyin.custom.yaml
#
# 【朙月拼音】模糊音定製模板
# 佛振配製 :-)
#
# 位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)
#
@Ericwyn
Ericwyn / Vim配置
Created June 15, 2018 12:57
我的 Vim 配置
" 配置保存在 /etc/vim/vimrc
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
@Ericwyn
Ericwyn / css 使某个 div 渐变显现
Created July 26, 2018 07:09
加上这个类, div 在 500 ms 内透明度由 0 变为 1 , 位置有往下 10% 变回固定位置, 效果类似于渐变弹出
@keyframes wrapper-gradient {
0% {
transform: translateY(5%);
}
100% {
transform: translateY(0);
}
}
@keyframes fade-in {
@Ericwyn
Ericwyn / gist:3d0537ca3007111dcbb9ff5abc68b767
Created May 29, 2019 07:03
gogs 文件预览页面 路由go地址
https://github.com/gogs/gogs/blob/master/routes/repo/view.go
@Ericwyn
Ericwyn / WechatController.java
Created February 23, 2019 14:10
微信登录获取 OpenId
package com.besfim.wxpay.controller;
import com.alibaba.fastjson.JSONObject;
import com.besfim.wxpay.utils.HttpUtils;
import com.besfim.wxpay.utils.SHA1;
import com.besfim.wxpay.utils.obj.ResJson;
import org.apache.http.HttpException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Ericwyn
Ericwyn / install-last-android-sdk-platform-tools.sh
Created October 9, 2019 07:56
install-last-android-sdk-platform-tools
# !bash.sh
if [ `id -u` -eq 0 ]; then
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
unzip platform-tools-latest-linux.zip
sudo cp -R -f platform-tools/* /bin/*
rm -rf platform-tools/
@Ericwyn
Ericwyn / navidrome-analysis.sh
Created December 21, 2023 05:50
Navidrom 歌曲播放年度统计
#!/bin/bash
# 查询 2023 年收听最多的歌曲 / 专辑 / 歌手
# ./analysis.sh ./navidrome.db -media -year 2023
# ./analysis.sh ./navidrome.db -album -year 2023
# ./analysis.sh ./navidrome.db -artist -year 2023
# 检查参数数量
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <path_to_db_file> <-media|-album|-artist-> [-year YYYY]"
@Ericwyn
Ericwyn / For Mac 4.2.6 unlimited trial.md
Created March 1, 2024 05:59 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@