#TIL #elixirlang 리스트에서 마지막 원소만 제외 혹은 마지막 원소만 가져오기
iex> Enum.drop([1, 2, 3], -1) [1, 2] iex> Enum.take([1, 2, 3], -1) [3]
iex> Enum.drop([1, 2, 3], -1) [1, 2] iex> Enum.take([1, 2, 3], -1) [3]
docker를 tpass 프로그램을 테스트하는 데 사용했다. 간단한 테스트다. 다음과 같은 순서로 진행한다. docker exec 명령을 내린다. 결과값을 검사한다. 다만 이렇게 하려면 컨테이너가 입력을 받을 수 있는 상태여야 한다. 즉, 실행 상태여야 한다. 종료하면 안 된다.
$ echo a/b/c/d | cut -d/ -f 2 b $ echo a/b/c/d | cut -d/ -f -2 a/b $ echo a/b/c/d | cut -d/ -f 2- b/c/d
$ for file in *.jpeg; do mv "$file" "$(basename "$file" .jpeg).jpg"; done
씬 로드 전에 함수를 호출할 방법이 있을까?
C:\> type open_project.cmd start "" "C:\Program Files\Unity\Editor\Unity.exe" -projectPath "C:\my_project"
${parameter:-word}
’#TIL vagrant로 centos, docker 세팅’ 글처럼만 해도 편했는데, 더 편하게 할 수 있다.
Not enough random bytes available. Please do some other work to give the OS a chance to collect more entropy! (Need xxx more bytes)
$ git push origin :feature-1
Command(⌘)-Shift-4, 스페이스 바, 클릭
$ cd existing_repo $ git remote rename origin old-origin $ git remote add origin new_repo_url $ git push -u origin --all $ git push -u origin --tags $ git re...
C:\> ping 127.0.0.1 -n 6 > nul
require MyMacros alias MyMacros, as: My
```bash #!/usr/bin/env bash
Cat cat = new Cat() cat.Age = 10; cat.Name = "Fluffy";
standard_init_linux.go:175: exec user process caused "no such file or directory"
cd "$(dirname "$0")/.."
>result.txt echo first line >>result.txt echo second line >>result.txt echo third line
| ge | Backward to the end of word | | gE | Backward to the end of WORD |