2020년 11월 17일 화요일

그냥 맥에깔아서쓰고있는것들.

그냥 쓰는 프로그램들 맥에서.
 zsh iterm vscode sourcetree sequql pro postman jmeter joplin


zsh관련 설정
https://blog.outsider.ne.kr/1490


원하는곳에 요것만깔아주고 zsh 설정하고, iterm 재시작
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc


화면분할 무료 https://www.spectacleapp.com/ 
유료 https://apps.apple.com/app/id441258766?mt=12 

클립보드 https://github.com/Clipy/Clipy
요건 다른사람이 올린거. https://macnews.tistory.com/3815


2020년 11월 11일 수요일

blogspot code formatter

http://codeformatter.blogspot.com/ 되나?
<pre><code class="language-java">/* CallingMethodsInSameClass.java
 *
 * illustrates how to call static methods a class
 * from a method in the same class
 */

public class CallingMethodsInSameClass
{
    public static void main(String[] args) {
        printOne();
    }

    public static void printOne() {
        System.out.println("Hello World");
    }
}</code></pre>

Protocol Buffers 파일을 조금 보기쉽게 변환해보기

사내에서 Protocol Buffers  를 사용해서 프로토콜을 정의해서쓰고있어서.. 

찾아보니 아래와 같은 github 이 있음.


https://github.com/pseudomuto/protoc-gen-doc

들어가서 찬찬히 읽어보니.

설치는 아래와같이.

go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc


실행하려고하니.

protoc --plugin=/Users/dicky/go/bin/protoc-gen-doc

식으로해야해서 


shell 로 만들어봄.


```

imgFile=$1

name=`basename $imgFile`

fileName="${name%.*}"

fileExtension="${name##*.}"

echo $name

echo $fileName

echo $fileExtension

protoc --plugin=/Users/dicky/go/bin/protoc-gen-doc --doc_out=./doc --doc_opt=html,$fileName.html $1

open ./doc/$fileName.html

```

그래서 실행은

./gen /server/SignIn.proto


그래서 결과물은 html 로 보기쉽게 나옴.