Skip to content

Instantly share code, notes, and snippets.

View maboloshi's full-sized avatar
💭
I may be slow to respond.

沙漠之子 maboloshi

💭
I may be slow to respond.
  • 09:47 (UTC +08:00)
View GitHub Profile
@maboloshi
maboloshi / inoreader-adblock-killer-filters.txt
Last active January 12, 2019 01:36
Inoreader Ads hide rules for uBlock
inoreader.com##.ad_title
inoreader.com##.ad_footer_remove
inoreader.com##[id^="leaderboard_ad-"]
inoreader.com###all_gad_57994
以下规则能够隐藏"AdBlock Detected"弹出框,但是快捷键会失效
inoreader.com##[id$=_wrapper].inno_dialog_modal:not([id*=dialog]):not(#xconfirm_wrapper)
inoreader.com##[id$=_modal_overlay].inno_dialog_modal_overlay:not([id*=dialog])
注意:
@maboloshi
maboloshi / ape2flac.md
Created February 7, 2019 14:39
[ape2flac] ape格式转为flac格式

安装 Monkey's Audio 第三方解码器

brew tap fernandotcl/homebrew-fernandotcl
brew install monkeys-audio

安装 FLAC 解码器

brew install flac
@maboloshi
maboloshi / get_latest_release_number.sh
Last active February 17, 2019 12:38 — forked from lukechilds/get_latest_release.sh
[Shell - Get latest release number from repository on GitHub ] 从GitHub上的存储库获取最新版本号, 不适用不规范发布 #github #shell
get_latest_release_number() {
curl --silent "https://github.com/$1/releases/latest" | sed 's#.*tag/\(.*\)".*#\1#'
}
# Usage
# $ get_latest_release_number "creationix/nvm"
# v0.34.0
@maboloshi
maboloshi / Generating_Access_Token.md
Last active February 18, 2019 13:19
[为github创建私人访问令牌] #github

Generating Access Token

As of 2013-05-16, you can generate API Access Tokens via the Web UI or via the GitHub API. All other authorization methods is deprecated.

Web

[Version]
Signature="$Windows NT$"
[DefaultInstall]
AddReg=SublimeText3
[SublimeText3]
hkcr,"*\\shell\\SublimeText3",,,"Edit With Sublime Text"
hkcr,"*\\shell\\SublimeText3","Icon",0x20000,"%1%\sublime_text.exe, 0"
hkcr,"*\\shell\\SublimeText3\\command",,,"""%1%\sublime_text.exe"" ""%%1"" %%*"
@maboloshi
maboloshi / rst2md.sh
Last active March 9, 2019 11:31 — forked from zorbax/rst2md.sh
[reStructuredText to Markdown] #shell
for i in $(ls *rst)
do
filename="${i%.*}"
echo "Converting $i to $filename.md"
pandoc "$i" -f rst -t gfm -o "$filename.md"
done
@maboloshi
maboloshi / mega-dl.sh
Last active March 15, 2019 00:55 — forked from KenMacD/mega-dl.sh
[Download MEGA files from command-line] `./mega-dl.sh '<URL>' <file name>` (Note the single quotes around the URL, otherwise bash complains "event not found") #mega #shell
#!/bin/bash
# 原作者: t0n1
# 来自: http://hacktracking.blogspot.ca/2013/07/download-mega-files-from-command-line.html
#
# 修改: maboloshi
# <file_url>: https://mega.nz/#!<id>!<decyption Key>
url=$1
out_file="$2"
@maboloshi
maboloshi / .travis.yml
Last active September 8, 2019 05:57
maboloshi.github.io 的.travis.yml, gulpfile.js设置存档
language: node_js
node_js:
- '6'
# 缓存依赖,节省持续集成时间
cache:
directories:
- node_modules
- themes
@maboloshi
maboloshi / 重建win7的ESP(即EFI)分区.md
Last active October 8, 2019 07:10
[重建win7的ESP(即EFI)分区] 可用于给黑苹果创建EFI分区 #windows #shell

重建win7的ESP(即EFI)分区

进入diskpart模式

# CMD中键入
diskpart

选择目标磁盘

@maboloshi
maboloshi / gulpfile1.js
Last active January 16, 2020 01:41
各种hexo gulpfile.js收集
//from https://gist.github.com/phawxby/9e41cb8d57ca5106046de80d8b24e308
'use strict';
// Based on https://gist.github.com/zhoujiealex/4d926889b02b85d4d8d73f036ef728eb
let Promise = require('bluebird');
let gulp = require('gulp');
let cssnano = require('gulp-cssnano');
let uglify = require('gulp-uglify');
let htmlmin = require('gulp-htmlmin');
let htmlclean = require('gulp-htmlclean');