Skip to content

Instantly share code, notes, and snippets.

[root@localhost ~]# find --help
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec]
[path...] [expression]
default path is the current directory; default expression is -print
expression may consist of: operators, options, tests, and actions:
operators (decreasing precedence; -and is implicit where no others are given):
( EXPR ) ! EXPR -not EXPR EXPR1 -a EXPR2 EXPR1 -and EXPR2
EXPR1 -o EXPR2 EXPR1 -or EXPR2 EXPR1 , EXPR2
@starmomo
starmomo / fugitive.txt
Created March 19, 2014 07:19
fugitive.txt
*fugitive.txt* A Git wrapper so awesome, it should be illegal
Author: Tim Pope <http://tpo.pe/>
License: Same terms as Vim itself (see |license|)
This plugin is only available if 'compatible' is not set.
INTRODUCTION *fugitive*
Whenever you edit a file from a Git repository, a set of commands is defined
@starmomo
starmomo / gist_vim.md
Last active August 29, 2015 13:57
I have a question to something is what

Github Gist 사용하기

Vim 에서 github을 사용하면, 당연히 gist도 사용할 수 있을 것이라 생각하였습니다. 역시, 있습니다. 지금 이글은 로컬 vim에서 작성하여 github의 gist에 올리는 내용입니다.

최신 버전은 github에 있습니다. https://github.com/mattn/gist-vim 저는 vundle에서 s(earching) 누르고, gist.vim해서 인스톨하고, git remvote add github https://github.com/mattn/gist-vim 해서 최신버전으로 업데이트 했습니다.

@starmomo
starmomo / gist:6364460
Last active December 21, 2015 20:49
[ Python3 ] tweepy 라이브러리를 사용해서, Ch3-TwitterOAuth.py를 사용. 트위터 계정에 웹에서 가져온 정보를 가공해서 전송하기
"""
[ 예제 ] 웹에서 원두 가격을 가져와서 트위터로 보내는 코드. HeadFist Programming 예제입니다.
하라는 대로 다 했는데, 그림과 같이 410에러만 나오고 트윗에는 글이 올라오지 않는데 아무리 봐도 모르겠습니다.
dev.twitter.com/apps에 애플리케이션 등록/연결 되어 있고, CNSUMER_KEY/SECRET, ACCESS_KEY/SECRET 확인했는데...
계정 연결이 안 되고 있습니다.
"""
import sys
import tweepy