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 / 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 <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 / 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 / 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"
@imyelo
imyelo / v2ray-protobuf.js
Last active June 26, 2019 13:24
Compile V2Ray Protobuf to JavaScript
// Inspired by https://unpkg.com/@shynome/v2ray@4.18.6/package.json
const path = require('path')
const { src, dest } = require('gulp')
const through = require('through2')
const Vinyl = require('vinyl')
const pbjs = require('protobufjs/cli/pbjs')
const pbts = require('protobufjs/cli/pbts')
const GOPATH = process.env.GOPATH