This file contains hidden or 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
| set nocompatible | |
| filetype off " required! | |
| if has('win32') || has('win64') | |
| set rtp+=~/vimfiles/bundle/vundle/ | |
| call vundle#rc('$HOME/vimfiles/bundle/') | |
| else | |
| " Usual quickstart instructions | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() |
This file contains hidden or 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
| parse_git_branch () | |
| { | |
| git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)#(git::\1)#' | |
| } | |
| if [ "$color_prompt" = yes ]; then | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;36m\]$(parse_git_branch)\$\[\033[00m\] ' | |
| else | |
| PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\n$(parse_git_branch)\$ ' | |
| fi |
This file contains hidden or 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
| " File: C_from_D.vim | |
| " Author: Renlin Li | |
| " Version: 0.01 | |
| " Description: Generate a simple ChangeLog template from a diff file. | |
| " | |
| if exists('loaded_genCL') | |
| finish | |
| endif | |
| let loaded_genCL = 1 |
This file contains hidden or 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
| sed -i 's/old-word/new-word/g' *.txt | |
| sed 's/old-word/new-word/g' input.txt > output.txt |
This file contains hidden or 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
| grep -R --include="*.txt" "pattern" /path/to/dir | |
| grep -R --include=*.{c,h} "pattern" /path/to/dir | |
| grep -R --include="*.c" --include="*.h" "pattern" /path/to/dir | |
| -R recursively | |
| -i ignore case | |
| -n show line number | |
| --include "pattern" | |
| --exclude "pattern" |
This file contains hidden or 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
| find . -maxdepth 3 -type f -name "file" |
This file contains hidden or 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
| git log -- deletedFile.txt |
This file contains hidden or 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
| gsettings set org.gnome.desktop.background show-desktop-icons false | |
| dconf-editor also works, uncheck: | |
| draw-background | |
| show-desktop-icons |
This file contains hidden or 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
| [global_config] | |
| title_hide_sizetext = True | |
| enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler | |
| [keybindings] | |
| [profiles] | |
| [[default]] | |
| use_system_font = False | |
| font = DejaVu Sans Mono 10 | |
| background_darkness = 0.7 | |
| background_type = transparent |
This file contains hidden or 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
| qemu-arm -g 1234 a.out & | |
| gdb-arm | |
| file a.out | |
| target remote localhost:1234 | |
| b main | |
| c | |
| s | |
| info registers r1 | |
| i r r1 |