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
  • 17:51 (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 / .vimrc
Last active August 8, 2021 23:11
vim 配置
"config begin
"==========================================
" Pluges
"==========================================
call plug#begin('~/.vim/plugged')
" Theme
Plug 'rakr/vim-one'
@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
@mogeko
mogeko / Office2010_Retail2VOL_Activate.cmd
Created April 20, 2019 02:23
Convert Microsoft Office VOL License to a Retail License.
@echo off
:ADMIN
openfiles >nul 2>nul ||(
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs" >nul 2>&1
goto:eof
)
del /f /q "%temp%\getadmin.vbs" >nul 2>nul
@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
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 / aria2.conf
Last active February 4, 2023 16:29
Aria2 config file
#=================================================================
# https://gist.github.com/Mogeko/64a20bc441cb43a7b26e416270c10168
# https://github.com/P3TERX/aria2.conf (upstream)
# File name:aria2.conf
# Description: Aria2 config file
# Lisence: MIT
# Author: Mogeko, P3TERX
# Blog: https://p3terx.com for P3TERX
# https://mogeko.me for Mogeko
#=================================================================
@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