This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 $ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 $ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# --- | |
# 部署构件激活脚本 | |
# Author: yelo <zhihuzeye@gmail.com> | |
# --- | |
## 项目主目录 | |
PROJECT_DIR=$(pwd) | |
## 上传目录 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _ from 'underscore' | |
import { combineReducers } from 'redux' | |
/** | |
* translate vuex to redux | |
*/ | |
const translator = { | |
action: (name) => (action) => (...args) => (dispatch, getState) => { | |
let state = getState() | |
return action({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input('Press Enter to continue: ', 's'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
NewerOlder