Skip to content

Instantly share code, notes, and snippets.

View MondoGao's full-sized avatar

MondoGao MondoGao

View GitHub Profile
@MondoGao
MondoGao / hudbt-theme-black.css
Last active March 10, 2016 18:16
hudbt - 黑色系全站CSS样式
/*hudbt-theme-black.css*/
/*初始化*/
body {
border: 0;
padding: 0;
margin: 0;
font-family: "Microsoft Yahei", tahoma, arial, helvetica, sans-serif;
}
@MondoGao
MondoGao / hudbt-smile-aru.js
Last active March 18, 2016 13:16
hudbt - 表情替换-阿鲁
//hudbt-smile-aru.js
$(function() {
replaceSmile();
$("#showmoresmilies").click(function() {
setTimeout(replaceSmile, 500);
});
addChangeButton();
});
function replaceSmile() {
@MondoGao
MondoGao / hudbt-button-white.css
Last active February 5, 2016 15:33
hudbt - 全局控件替换
/*hudbt-button-white.css*/
a:hover {
color: rgb(0, 0, 0);
}
form[name="funboxcomment"] {
text-align: center;
}
@MondoGao
MondoGao / hudbt-menu-simpleblue.css
Last active February 5, 2016 15:33
hudbt - 仿网易邮箱主题-简青/简绿/简蓝
/*hudbt-menu-simpleblue.css*/
ul.menu li a,
ul.menu li a:link,
ul.menu li a:visited {
border: 0;
padding: 5px 10px;
margin-right: 1px;
background-image: none;
background-color: rgb(11, 85, 159) !important;
color: rgb(255,255,255) !important;
@MondoGao
MondoGao / hudbt-function-donate-button.js
Created March 18, 2016 13:18
hudbt - 捐赠按钮数额切换
$(function() {
addDonateChangeButton();
});
var flagDonate = 0;
function addDonateChangeButton() {
var $donateChangeButton = $('<a></a>').addClass('newButtons').html('太少不捐!').attr({
'title': '切换捐赠数额',
'href': 'javascript:'
/**
*
* @param str 待匹配字符串
* @param pattern 模式串
*/
const isMatch = (str, pattern) => {
let strArr = str.split('')
let patArr = pattern.split('')
strArr.pointer = 0
@MondoGao
MondoGao / TerminalVim.scpt
Last active December 6, 2018 15:59 — forked from charlietran/TerminalVim.scpt
Open file in iTerm vim/neovim for MacOS High Sierra
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default
@MondoGao
MondoGao / cVimrc
Last active November 23, 2018 10:34
cVimrc
set noautofocus
set smoothscroll
set autoupdategist
let scrollstop = 100
let completionengines = ['google', 'baidu']
let searchengine baidu = 'https://www.baidu.com/s?wd=%s'
let blacklists = []
let barposition = 'top'
" =======================================
" plugin section begins
" =======================================
" <vundle> ------------------------
" https://github.com/gmarik/Vundle.vim
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
@MondoGao
MondoGao / ffmpeg-wrapper
Created October 3, 2021 17:35 — forked from BenjaminPoncet/ffmpeg-wrapper
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support (Installation instructions in 1st comment)
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log