This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "name": "Debug Tests JS", | |
| "type": "node", | |
| "request": "launch", | |
| "program": "${workspaceRoot}/node_modules/.bin/jest", | |
| "cwd": "${workspaceRoot}", | |
| "args": ["--projects", "./tests/", "--runInBand"], | |
| "windows": { | |
| "program": "${workspaceFolder}/node_modules/jest/bin/jest" | |
| }, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** gerais **/ | |
| // Request | |
| // curl -X GET --url http://192.168.0.21:3000/ | |
| // curl -X -I --url http://192.168.0.21:80/ -> SEND A HEAD REQUEST TO GET INFO ABOUT WHAT IS RUNNING ON PORT X | |
| /** Nmap | |
| https://nmap.org/book/ | |
| */ | |
| // nmap -sn -n 192.168.0.1/24 | grep 192 | cut -d ' ' -f 5 > ips.txt | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sudo docker network create kibana-network | |
| sudo docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name elasticsearch --net kibana-network elasticsearch:7.6.2 | |
| sudo docker run -d --name kibana --net kibana-network -p 5601:5601 kibana:7.6.2 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function createMongoDB() { | |
| return DatabaseFactory.create({ | |
| type: 'mongodb', | |
| database: 'test-package', | |
| url: 'mongodb://localhost:27017', | |
| options: { | |
| reconnectInterval: 1000, | |
| useNewUrlParser: true | |
| } | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Instal: | |
| # - Chome | |
| # - Terminal terminator | |
| # - git | |
| # - zsh terminal | |
| # - ohmyzsh framework | |
| # - high light terminal | |
| # - visual code | |
| # - docker + docker-compose | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { Func } from 'mocha'; | |
| //Ref: https://code.tutsplus.com/articles/data-structures-with-javascript-tree--cms-23393 | |
| class NodeTree { | |
| readonly name: string; | |
| readonly value: any; | |
| private parent: string | null; | |
| private children: NodeTree[]; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | git flow init -fd && git submodule init && git submodule update && ./hooks/deploy-git-hooks.sh | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sudo nmcli connection import type openvpn file /home/albo-vieira/Downloads/client.ovpn | |
| sudo openvpn --config ~/Downloads/client.ovpn | 
      This file has been truncated, but you can view the full file.
    
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "-LLakloTgTIcJE4Zqody": { | |
| "data": { | |
| "code": "4000", | |
| "message": "User not found", | |
| "type": "ResourceNotFoundException" | |
| }, | |
| "provider": "maxmilhas", | |
| "status": 404, | |
| "user": "felipearimm" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const CLOUD_MESSAGER = { | |
| android: { | |
| messager: 'GCM', | |
| arn: process.env.AWS_SNS_ANDROID_ARN | |
| }, | |
| ios: { | |
| messager: 'APNS', | |
| arn: process.env.AWS_SNS_IOS_ARN | |
| } | |
| }; | 
NewerOlder