Current version: 1.0.19 1.0.15 (as of 2018-12-10)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install --with-default-names gnu-sed |
Git常用备忘.md
引自:http://blogread.cn/it/article/6282?f=sa
配置
git config --global user.name "robbin"
git config --global user.email "[email protected]"
git config --global color.ui true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh - | |
# inspiration from: http://www.zsh.org/mla/users/2007/msg01187.html | |
# require a POSIX sh, on those systems where the POSIX sh is not in /bin | |
# (like Solaris), you may need to adapt the shebang line above | |
# (/usr/xpg4/bin/sh on Solaris). You also need a terminfo aware "tput", | |
# ncurses one (the default on most systems) will do. | |
# wrapper around mu, the mail indexing/searching utility for mutt. | |
# in your ~/.muttrc: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = ((n >> 1) & 0x55555555) | ((n << 1) & 0xaaaaaaaa); | |
n = ((n >> 2) & 0x33333333) | ((n << 2) & 0xcccccccc); | |
n = ((n >> 4) & 0x0f0f0f0f) | ((n << 4) & 0xf0f0f0f0); | |
n = ((n >> 8) & 0x00ff00ff) | ((n << 8) & 0xff00ff00); | |
n = ((n >> 16) & 0x0000ffff) | ((n << 16) & 0xffff0000); | |
// -- C code which reverses the bits in a word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -u | |
thisCount=0 | |
names=() | |
if [ $# -eq 1 ] ; then | |
data=`cut --delimiter=: --fields=5 ${1}` | |
all=`echo ${data} | cut --delimiter=' ' --fields=1` | |
for X in ${all} ; do |
NewerOlder