🏠
Working from home
-
L3B Consultoria de Informática Ltda
- Brotas, São Paulo, Brazil
- www.l3b.com.br
Highlights
- Pro
Pinned Loading
-
Vim tips
Vim tips 1Indent all project files
2:args <project dir>/src/**/*.c | argdo execute "normal gg=G" | update
34Replace text in directory tree (replace v02_05_00 with v_S_01_00_00 in all java files)
5:set hidden | vimgrep/v02_05_00/ **/*.java | cfdo %s/v02_05_00/v_S_01_00_00/g | w
-
git merge modify/delete --> git rm
git merge modify/delete --> git rm 1grep -oP '^CONFLICT \(modify\/delete\): (.*) deleted' /tmp/merge.txt | sed 's/CONFLICT (modify\/delete):/git rm/g' | sed 's/ deleted//g'
-
Git Assume Unchanged
Git Assume Unchanged 1# assume unchanged
2git update-index --assume-unchanged "src/main/resourses/config.properties"
34# back to default
5git update-index --no-assume-unchanged "src/main/resourses/config.properties"
-
Remove all files not under git sourc...
Remove all files not under git source control 1git clean -d -f -x
-
Show AWS S3 bucket region
Show AWS S3 bucket region 1curl --head https://<bucket-name>.s3.amazonaws.com
-
Java Tree, BFS and DFS traverse
Java Tree, BFS and DFS traverse 1package br.com.example.tree;
23import java.util.ArrayDeque;
4import java.util.ArrayList;
5import java.util.Deque;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.