Utilizaremos IDE VSCode, por tante, instale a mesma na máquina pelo link.
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
post_install do |installer| | |
# fix xcode 15 DT_TOOLCHAIN_DIR - remove after fix oficially - https://github.com/CocoaPods/CocoaPods/issues/12065 | |
installer.aggregate_targets.each do |target| | |
target.xcconfigs.each do |variant, xcconfig| | |
xcconfig_path = target.client_root + target.xcconfig_relative_path(variant) | |
IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR")) | |
end | |
end | |
installer.pods_project.targets.each do |target| |
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
var redis = require('redis') | |
var Promise = require('promise') | |
const models = require('../../models') | |
const configAWS = async () => { | |
await models.configs.obterConfig() | |
} | |
var client = redis.createClient( | |
configAWS.REDIS_PORT, | |
configAWS.REDIS_HOST | |
) |
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
Download Google Drive files with WGET | |
Example Google Drive download link: | |
https://docs.google.com/open?id=[ID] | |
To download the file with WGET you need to use this link: | |
https://googledrive.com/host/[ID] | |
Example WGET command: |
O objetivo dessa trilha é direcionar os novos 'padawans' (estágiarios, trainne). É de extrema importância que você acompanhe os cursos com foco total. Esteja em concentração e prepare seu território de estudos para que não haja distrações!! Foco Total e vamos lá.
Recomendamos a utilização de VSCODE como editor, POSTMAN para testar apis.
- A importância de aprender javascript e jquery antes de tudo, fazer os dois cursos abaixo (faça os dois, mesmo que seja cansativo, afinal, mesmo depois dos dois você vai continuar não sabendo nada!):
https://youtu.be/ipHuSfOYhwA?list=PLInBAd9OZCzxl38aAYdyoMHVg0xCgxrRx
https://www.youtube.com/watch?v=ftWXUUM5YxU&index=1&list=PLBnXXDBNZQpJKH1Fx2EAbKbG9p_dV_pKW
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
//create dump mongo | |
$ mongodump --host --port --db --username --password --out /path/dump/out | |
//restaure db mongo | |
$ mongorestore --host --port --db --username --password /path/dumps/ |
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
18/06/2018 15:14:25 ERROR: uncaughtException: Cannot read property 'query' of undefined | |
{"date":"Mon Jun 18 2018 15:14:25 GMT-0300 (BRT)","process":{"pid":32563,"uid":1002,"gid":1002,"cwd":"/var/www/manual/madiba-server","execPath":"/usr/bin/nodejs","version":"v7.10.1","argv":["/usr/bin/nodejs","/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js"],"memoryUsage":{"rss":76550144,"heapTotal":47005696,"heapUsed":43150120,"external":2399096}},"os":{"loadavg":[1.8759765625,2.1611328125,1.51220703125],"uptime":1133595},"trace":[{"column":87,"file":"/var/www/manual/madiba-server/controllers/projetos.controllers.js","function":null,"line":357,"method":null,"native":false},{"column":9,"file":"/var/www/manual/madiba-server/node_modules/mysql/lib/Pool.js","function":"Handshake.onConnect [as _callback]","line":58,"method":"onConnect [as _callback]","native":false},{"column":24,"file":"/var/www/manual/madiba-server/node_modules/mysql/lib/protocol/sequences/Sequence.js","function":"Handshake.Sequence.end","line":8 |
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
#!/bin/bash | |
killall Xcode | |
xcrun -k | |
xcodebuild -alltargets clean | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode/* | |
open /Applications/Xcode.app |
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
//cria pasta do projeto | |
$ mkdir todolist | |
$ cd todolist | |
//inicia npm package | |
$ npm init | |
//instalar dependencias | |
$ npm i --save mysql2 |
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
module.exports = { | |
copyAssets: { | |
src: ['{{SRC}}/assets/**/*'], | |
dest: '{{WWW}}/assets' | |
}, | |
copyIndexContent: { | |
src: ['{{SRC}}/index.html', '{{SRC}}/manifest.json', '{{SRC}}/service-worker.js'], | |
dest: '{{WWW}}' | |
}, | |
copyFonts: { |
NewerOlder