Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

bitdust bitdust

🎯
Focusing
View GitHub Profile
@bitdust
bitdust / 删除换行及空格
Created Jan 14, 2018
word宏,删除选中文字中的换行及空格,用于调整从PDF文件中复制出的文字格式
View 删除换行及空格
Sub 删除换行及空格()
'
' 删除换行及空格 宏
' 用于调整从PDF文件中复制出的文字格式
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = " "
.Replacement.Text = ""
View Douban2Piratebay.user.js
// ==UserScript==
// @name Douban2Piratebay
// @namespace https://github.com/bitdust/Douban2Piratebay
// @version 0.8
// @description Add direct link to piratebay from douban movie page.
// @author bitdust
// @match https://movie.douban.com/subject/*
// @grant none
// @updateURL https://gist.github.com/bitdust/3b63ab636e5fd7be59d6a55ef9638351/raw/Douban2Piratebay.user.js
// @downloadURL https://gist.github.com/bitdust/3b63ab636e5fd7be59d6a55ef9638351/raw/Douban2Piratebay.user.js
@bitdust
bitdust / Makefile
Created Aug 28, 2016
8021xbridge core file.
View Makefile
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=8021xbridge
View 五狗齐飞
MButton:: ;五狗齐飞
Send w
Send {LButton}
Send {tab}
Send w
Send {LButton}
Send {tab}
Send w
Send {LButton}
Send {tab}
View tmux.conf
# 替换tmux prefix键为 Ctrl+a
set -g prefix C-a
bind-key C-a send-prefix
unbind C-b
# zoom pane <-> window
#http://tmux.svn.sourceforge.net/viewvc/tmux/trunk/examples/tmux-zoom.sh
bind ^z run "tmux-zoom"
##
#copy-mode 将快捷键设置为vi 模式
@bitdust
bitdust / Makefile
Created Sep 9, 2015
Makefile for openwrt-njit8021xclient
View Makefile
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=njit8021xclient
@bitdust
bitdust / main.c
Created May 25, 2015
关于线程的使用示例
View main.c
/*
main.c
关于线程的使用示例
参考:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684841.aspx
http://blog.csdn.net/morewindows/article/details/7421759
*/
View dnsmasq-gfwlist.py
#!/usr/bin/env python
#coding=utf-8
#
# Generate a list of dnsmasq rules with ipset for gfwlist
#
# Copyright (C) 2014 http://www.shuyz.com
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules
# this file is copied from http://aenes.com/post/740.html
import urllib2
@bitdust
bitdust / vimrc
Last active Jul 21, 2018
vimrc 从零开始
View vimrc
" 默认选项
set fileencodings=utf8,cp936,gb18030,big5
syntax enable
syntax on
set number " 显示行号
set nocompatible " 与vi不兼容
set showmatch " 匹配括号
" tab相关
@bitdust
bitdust / menu.lst
Created Dec 13, 2014
可引导iso文件(PE,liveCD)的grub目录文件
View menu.lst
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
#
# It must be UTF-8 encoding for multi-lingual support. Font lines can be
# appended to the file. The font lines should be in the unifont.hex format.
color blue/green yellow/red white/magenta white/magenta
timeout 30
You can’t perform that action at this time.