Skip to content
View lbraga's full-sized avatar
🏠
Working from home
🏠
Working from home
  • L3B Consultoria de Informática Ltda
  • Brotas, São Paulo, Brazil

Highlights

  • Pro

Block or report lbraga

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Vim tips Vim tips
    1
    Indent all project files
    2
    :args <project dir>/src/**/*.c | argdo execute "normal gg=G" | update
    3
    
    
    4
    Replace 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
  2. git merge modify/delete --> git rm git merge modify/delete --> git rm
    1
    grep -oP '^CONFLICT \(modify\/delete\): (.*) deleted' /tmp/merge.txt | sed 's/CONFLICT (modify\/delete):/git rm/g' | sed 's/ deleted//g'
  3. Git Assume Unchanged Git Assume Unchanged
    1
    # assume unchanged
    2
    git update-index --assume-unchanged "src/main/resourses/config.properties"
    3
    
    
    4
    # back to default
    5
    git update-index --no-assume-unchanged "src/main/resourses/config.properties"
  4. Remove all files not under git sourc... Remove all files not under git source control
    1
    git clean -d -f -x
  5. Show AWS S3 bucket region Show AWS S3 bucket region
    1
    curl --head  https://<bucket-name>.s3.amazonaws.com
  6. Java Tree, BFS and DFS traverse Java Tree, BFS and DFS traverse
    1
    package br.com.example.tree;
    2
    
    
    3
    import java.util.ArrayDeque;
    4
    import java.util.ArrayList;
    5
    import java.util.Deque;