Skip to content

Instantly share code, notes, and snippets.

Avatar
🇭🇺
Study abroad

Mogeko Mogeko

🇭🇺
Study abroad
View GitHub Profile
@Mogeko
Mogeko / .Brewfile
Last active Jun 16, 2020
自用的 .Brewfile 备份
View .Brewfile
tap "homebrew/bundle"
tap "homebrew/core"
@Mogeko
Mogeko / .bash_aliases
Last active Jun 13, 2020
自用的 .bash_aliases 备份
View .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 / .bashrc
Last active Jun 13, 2020
自用的 .bashrc 备份
View .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 / aria2.conf
Last active Jun 2, 2020
Aria2 config file
View aria2.conf
#=================================================================
# 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
#=================================================================
View GNU_Brewfile
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 / blog-hugo.sh
Last active Oct 31, 2019
A scripts for managing hugo
View blog-hugo.sh
#!/bin/bash
BLOGREPO=$BLOGPATH/.repo/Blog
BLOG_POSTS=$BLOGREPO/content/posts
BLOG_IMAGES=$BLOGPATH/.repo/blog-images
NOWPATH=`pwd`
log() {
cd $BLOGREPO
@Mogeko
Mogeko / Office2010_Retail2VOL_Activate.cmd
Created Apr 20, 2019
Convert Microsoft Office VOL License to a Retail License.
View Office2010_Retail2VOL_Activate.cmd
@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 / HTTPServer
Last active Feb 12, 2020
一个简单的本地 HTTP 服务器,用于在局域网中分享文件。python3 -m http.server 的升级版
View HTTPServer
#!/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 / .vimrc
Last active Nov 2, 2018
vim 配置
View .vimrc
"config begin
"==========================================
"Pluges
"==========================================
call plug#begin('~/.vim/plugged')
" 状态栏
Plug 'vim-airline/vim-airline'
@Mogeko
Mogeko / FuckAD
Last active Aug 3, 2018
Adblock 广告屏蔽规则
View FuckAD
[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/*
You can’t perform that action at this time.