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 su | |
#senha do pc | |
su postgres | |
psql banco_a_ser_instalado | |
CREATE EXTENSION IF NOT EXISTS unaccent; | |
CREATE EXTENSION IF NOT EXISTS pg_trgm; |
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
'use strict'; | |
const fs = require('fs'); | |
const getDeVehiculosJSON = require('/home/roger/GIT/get_de_vehiculos.json'); | |
const isArray = /(.+)\.\d\.(.+)/; | |
const result = '/home/roger/GIT/get_de_vehiculos_result.json'; | |
const files = { | |
showHBS: '/home/roger/GIT/newfleet/emberjs/app/templates/client/vehicles/show.hbs', |
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
'use strict'; | |
const fs = require('fs'); | |
const dir = './app/src/models'; | |
const MODEL_NAME = /.+define\('(\w+)'.+/m; | |
const ASSOCIATE = /associate/g; | |
function readdir() { |
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 divisibleAll(numbers, multiple) { | |
for (let i = 0; i < numbers.length; i++) { | |
if (multiple % numbers[i] !== 0) { | |
return false; | |
} | |
} |
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
# Acesso API 1 | |
ssh -i './view-prod.pem' [email protected] -p 41010 | |
# Acesso API 2 | |
ssh -i './view-prod.pem' [email protected] -p 41010 | |
# Jobs 1 | |
ssh -i './view-prod.pem' [email protected] -p 41010 | |
# Jobs 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
'use strict'; | |
Object.defineProperties(Promise, { | |
when: { | |
configurable: false, | |
enumerable: false, | |
writable: false, | |
value: function name(hash) { | |
var $q = []; |
NewerOlder