start new:
tmux
start new with session name:
tmux new -s myname
| { | |
| "extends": "airbnb" | |
| } | |
| { | |
| "libs": [ | |
| "browser", | |
| "jquery" | |
| ], | |
| "loadEagerly": [ | |
| "importantfile.js" | |
| ], | |
| "plugins": { | |
| "requirejs": { |
| server { | |
| listen 80; | |
| server_name www.puga.com.br puga.com.br; | |
| location / { | |
| try_files $uri/ $uri/index.html $uri.html $uri =404; | |
| root /home/marcio/puga.com.br; | |
| } | |
| } |
##git mergetool
In the middle file (future merged file), you can navigate between conflicts with ]c and [c.
Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)
| version: '3' | |
| services: | |
| traefik: | |
| image: marciopuga/traefik:latest | |
| build: ./traefik/. | |
| command: --web --docker --docker.domain=docker.localhost --docker.watch \ | |
| --logLevel=DEBUG \ | |
| --docker.exposedbydefault=false \ | |
| --entryPoints='Name:http Address::80' \ | |
| --defaultEntryPoints='http' |
| docker rmi $(docker images --quiet --filter "dangling=true") |
| Using npm-check-updates | |
| https://github.com/tjunnone/npm-check-updates | |
| `npm install -g npm-check-updates` | |
| `ncu -u` |
| const http = require('http') | |
| const options = { | |
| hostname: 'localhost', | |
| port: 3000, | |
| path: '/path', | |
| method: 'POST', | |
| headers: { | |
| 'Content-Type': 'application/json' | |
| } | |
| } |