Skip to content

Instantly share code, notes, and snippets.

View mogeko's full-sized avatar
🇵🇸
FREE PALESTINE !!!

Zheng Junyi mogeko

🇵🇸
FREE PALESTINE !!!
  • Contemporary Amperex Technology Hungary Kft.
  • Debrecen, Hungary
  • 07:43 (UTC +02:00)
View GitHub Profile
@mogeko
mogeko / 反跟踪规则
Last active May 9, 2018 10:04
Adblock 反跟踪规则
[Adblock Plus 2.0]
! Checksum: WbkBGNM5iYEg0TQ9/T7i6Q
! Title: 反跟踪规则
!
! Version: 1.0.0
! Homepage: https://gist.github.com/Mogeko/37e0d3c900f7298fb83f9a71afdfd565
!
*AdTracking*
*analytics*tagserver*
@mogeko
mogeko / 下载站广告过滤
Last active May 9, 2018 10:10
Adblock 规则 过滤大多数的下载站广告
[Adblock Plus 2.0]
! Checksum: +XzP1Cu9BTp9UZh2gI1rxA
! Title: 下载站广告过滤
!
! Version: 1.0.0
! Homepage: https://gist.github.com/Mogeko/c76929b579db43cb89596c089b0ff5f2
!
*.skycn.com/tuijianimg/*
*.crsky.com/ggao/*
@mogeko
mogeko / FuckAD
Last active August 3, 2018 02:24
Adblock 广告屏蔽规则
[Adblock Plus 2.0]
! Checksum: QIEX49x3fQniYFhv4YAx8w
! Title: FuckAD
!
! Version: 1.0.0
! Homepage: https://gist.github.com/Mogeko/9aa1cae8cc2b6c0b31ec08b45fa47a2e
!
*.zz500.com**.00779.info*
*.0663.net/ad/*
@mogeko
mogeko / blog-hugo.sh
Last active October 31, 2019 13:03
A scripts for managing hugo
#!/bin/bash
BLOGREPO=$BLOGPATH/.repo/Blog
BLOG_POSTS=$BLOGREPO/content/posts
BLOG_IMAGES=$BLOGPATH/.repo/blog-images
NOWPATH=`pwd`
log() {
cd $BLOGREPO
@mogeko
mogeko / HTTPServer
Last active February 12, 2020 14:51
一个简单的本地 HTTP 服务器,用于在局域网中分享文件。python3 -m http.server 的升级版
#!/bin/sh
/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d 'addr:' | while read ip; do python3 -m http.server 8000 --bind $ip; done
tap "homebrew/bundle"
tap "homebrew/core"
# Macro processing language
brew "m4"
# Bourne-Again SHell, a UNIX command interpreter
brew "bash"
# GNU binary tools for native development
brew "binutils"
# GNU File, Shell, and Text utilities
brew "coreutils"
@mogeko
mogeko / .bashrc
Last active June 13, 2020 22:05
自用的 .bashrc 备份
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
@mogeko
mogeko / .bash_aliases
Last active June 13, 2020 22:15
自用的 .bash_aliases 备份
#
# ~/.bash_aliases
#
# User alias
alias cls='clear'
alias now='date +"%T"'
alias nowdate='date +"%d-%m-%Y"'
alias nowtime='now'
alias path='echo -e ${PATH//:/\\n}'
@mogeko
mogeko / .Brewfile
Last active June 16, 2020 23:40
自用的 .Brewfile 备份
tap "homebrew/bundle"
tap "homebrew/core"
@mogeko
mogeko / .vimrc
Last active August 8, 2021 23:11
vim 配置
"config begin
"==========================================
" Pluges
"==========================================
call plug#begin('~/.vim/plugged')
" Theme
Plug 'rakr/vim-one'