Skip to content

Instantly share code, notes, and snippets.

View imyelo's full-sized avatar
🥽
Not here

yelo imyelo

🥽
Not here
View GitHub Profile
@imyelo
imyelo / jdy-helper.js
Last active April 29, 2024 09:16
简道云网页助手
// ==UserScript==
// @name 简道云网页助手
// @description 简道云网页助手
// @version v0.0.1
// @match https://www.jiandaoyun.com/dashboard/app/*/form/*/edit
// @grant GM_registerMenuCommand
// @grant GM_addStyle
// @run-at document-start
// @require https://unpkg.com/html-to-image@1.11.11/dist/html-to-image.js
// @require https://unpkg.com/downloadjs@1.4.7/download.js
@imyelo
imyelo / frpc.service
Last active April 29, 2024 04:34
run frp client as a service on windows and ubuntu / debian
# 1. put frpc and frpc.ini under /usr/local/frpc/
# 2. put this file (frpc.service) at /etc/systemd/system
# 3. run `sudo systemctl daemon-reload && sudo systemctl enable frpc && sudo systemctl start frpc`
# Then we can manage frpc with `sudo service frpc {start|stop|restart|status}`
# See also: https://nosame.net/use-frp-to-reverse-proxy-your-nas/
# Alternative for server:
# - Offical: https://github.com/fatedier/frp/blob/a4cfab6/conf/systemd/frpc%40.service
[Unit]
@imyelo
imyelo / Dockerfile
Last active May 10, 2023 08:10
lede compiler with docker compose
# syntax = docker/dockerfile:1.0-experimental
FROM ubuntu:22.04
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND noninteractive
RUN apt update --fix-missing
RUN apt full-upgrade -y
RUN apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
@imyelo
imyelo / userscript-remove-woa-watermark.js
Last active July 28, 2022 13:32
UserScript - Remove WOA Watermark
// ==UserScript==
// @name Remove WOA Watermark
// @version 0.1
// @author yelo <zhihuzeye@gmail.com>
// @match *://km.woa.com/**
// @match *://csig.lexiangla.com/**
// @match *://mk.woa.com/**
// @match *://iwiki.woa.com/**
// @match *://qcloud.oa.com/**
// @match *://ieop.oa.com/**
@imyelo
imyelo / activate.sh
Last active April 24, 2022 07:30
Deployment Activate Script
#!/bin/bash
# ---
# 部署构件激活脚本
# Author: yelo <zhihuzeye@gmail.com>
# ---
## 项目主目录
PROJECT_DIR=$(pwd)
## 上传目录
@imyelo
imyelo / userscript-lgtm-for-woa
Created April 24, 2022 07:28
UserScript - LGTM for WOA
// ==UserScript==
// @name Look goods to me!
// @version 0.1
// @author yelo <zhihuzeye@gmail.com>
// @match https://git.woa.com/**
// @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
// ==/UserScript==
/* global $ */
@imyelo
imyelo / userscript-logseq-print-mode.js
Created April 24, 2022 07:27
UserScript - LogSeq Print Mode
// ==UserScript==
// @name LogSeq Print Mode
// @version 0.1
// @author yelo <zhihuzeye@gmail.com>
// @match https://logseq.com/**
// @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
// ==/UserScript==
/* global $ */
@imyelo
imyelo / whenWechatReady.js
Created March 24, 2014 09:49
better WeixinJSBridgeReady
window.whenWechatReady = (function () {
var isReady = false;
var tasks = [];
var when = function (callback) {
if (isReady) {
return callback();
}
return tasks.push(callback);
};
document.addEventListener('WeixinJSBridgeReady', function () {
@imyelo
imyelo / revuex.js
Created May 22, 2020 08:25
write redux as vuex
import _ from 'underscore'
import { combineReducers } from 'redux'
/**
* translate vuex to redux
*/
const translator = {
action: (name) => (action) => (...args) => (dispatch, getState) => {
let state = getState()
return action({
@imyelo
imyelo / pause.m
Created February 11, 2020 03:36
pause polyfill for octave
input('Press Enter to continue: ', 's');