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/[email protected]/dist/html-to-image.js
// @require https://unpkg.com/[email protected]/download.js
@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-lgtm-for-woa
Created April 24, 2022 07:28
UserScript - LGTM for WOA
// ==UserScript==
// @name Look goods to me!
// @version 0.1
// @author yelo <[email protected]>
// @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
Last active June 7, 2024 11:36
UserScript - LogSeq Print Mode
// ==UserScript==
// @name LogSeq Print Mode
// @description Logseq 打印模式
// @version 0.2
// @author yelo <[email protected]>
// @match https://**/**
// @grant GM_registerMenuCommand
// @run-at document-start
// @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
// ==/UserScript==
@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 <[email protected]>
// @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 <[email protected]>
# ---
## 项目主目录
PROJECT_DIR=$(pwd)
## 上传目录
@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');
@imyelo
imyelo / caddy.service
Created November 27, 2019 11:06
Caddy as a systemd service
[Unit]
Description=Caddy's service
ConditionFileIsExecutable=/usr/local/bin/caddy
[Service]
StartLimitInterval=5
StartLimitBurst=10
LimitNOFILE=102400
ExecStart=/usr/local/bin/caddy "-conf=/etc/caddy/Caddyfile"
nssm install "FTP for Project" "C:\Users\{USERNAME}\AppData\Roaming\npm\ftp-srv.cmd" "ftp://123.123.123.124:2121 --root E:\project > E:\project\ftp-service.log"
nssm start "FTP for Project"