Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sandeepnegi1996/4bd8a5b49f758e7af40af523db7dce19 to your computer and use it in GitHub Desktop.
Save sandeepnegi1996/4bd8a5b49f758e7af40af523db7dce19 to your computer and use it in GitHub Desktop.
Corporate_Tricks _and_Tips
### 1. Notepad Tricks
1. Block Selection -> Alt Shift Arrow key we can modify multiple lines at once this is same that we have in intellj
2. Dark Mode
1. Settings preferences and Dark mode
3. Align Lines
1. Text Fx -> Text Fx Edit -> Line up multiple lines by
4. Format a json -> for this we need plugin - JSTool -> JSFormat -> this will format the json
### 2. Excel
1. View a csv in excel using -> Data -> Text/Csv -> best way to view the CSV
2. Freeze top row in excel
1. View -> Freeze Panes -> Freeze Top Row
### 3. Curl
- with curl we can make a http call to any endpoint , and we can use this to verify the connection also
- we can mention proxy information so you are working in a corporate environment this can be used to test the connection
- -x --> proxy
- --request POST
- -- url
- --header
- -- data
```curl
curl -x proxy:80 --request POST \
--url endpoint
--header 'Authorization: Basic authorizationtoken \
--header 'Content-Type: application/json' \
--data '["data1", "data2"]'
```
### 4. Java from office
1. what is @Data and @Builder ?
2. how to create simple test class
3. what is @Trasactional -> and its usage ->
4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment