This file contains 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
How to install macOS High Sierra on VirtualBox on Windows 10 | |
https://techsprobe.com/macos-high-sierra/ | |
https://wikitake.com/download-macos-high-sierra-vmware-virtualbox-image-2/ | |
https://wikitake.com/how-to-install-macos-high-sierra-on-virtualbox-on-windows/ | |
cd "C:\Program Files\Oracle\VirtualBox\" |
This file contains 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 getStackTrace () { | |
let stack | |
try { | |
throw new Error('') | |
} catch (error) { | |
stack = error.stack || '' | |
} | |
stack = stack.split('\n').map((line) => line.trim()) | |
return stack.splice(stack[0] == 'Error' ? 2 : 1) |
This file contains 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 axios from 'axios'; | |
const instance = axios.create({ | |
baseURL: 'https://baseurl', | |
headers: { | |
'Content-Type': 'application/json' | |
} | |
}); | |
instance.interceptors.response.use((interceptedRequest) => { |
This file contains 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 { performance } = require('perf_hooks'); | |
const app = express(); | |
const logRequestStart = (req, res, next) => { | |
var t0 = performance.now(); | |
console.info(`\n\n\n${req.method} ${req.originalUrl}\n\n`); | |
res.on('finish', () => { | |
var t1 = performance.now(); | |
// console.log("Call to doSomething took " + + " milliseconds.") | |
console.info(`\n\n\n\n [FINISH] ${req.method} ${req.originalUrl} ${res.statusCode} ${res.statusMessage}; ${res.get('Content-Length') || 0}b sent IN ${((t1 - t0) / 1000).toFixed(2)} SECONDS\n\n\n`) |
This file contains 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
josiel@josiel-pc:~$ react-native init AwesomeRNProject | |
This will walk you through creating a new React Native project in /home/josiel/AwesomeRNProject | |
Installing react-native... | |
Consider installing yarn to make this faster: https://yarnpkg.com | |
npm notice created a lockfile as package-lock.json. You should commit this file. | |
npm WARN react-native@0.57.3 requires a peer of react@16.6.0-alpha.8af6728 but none is installed. You must install peer dependencies yourself. | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) | |
+ react-native@0.57.3 |
This file contains 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
################################################# | |
########### 01 - Explorando o RStudio ########### | |
################################################# | |
setwd("/media/josiel/PENDRIVE/Linguagem_r/DesenvolvimetoR.R | |
") | |
getwd() | |
# Informa??es sobre a sess?o | |
sessionInfo() |
This file contains 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
<?php | |
function mod($dividendo,$divisor) | |
{ | |
return round($dividendo - (floor($dividendo/$divisor)*$divisor)); | |
} | |
function cpf($compontos) | |
{ | |
$n1 = rand(0,9); |
This file contains 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
mysqldump -u root -p -d DBNAME > ~/"DBNAME_nodata_$(date +"%Y_%m_%d_%I_%M_%p" | |
).sql" |
This file contains 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
mysqldump -u root -p --no-create-db --no-create-info DBNAME > ~/DBNAME_noddl_$(date +%Y_%m_%d_%I_%M_%p).sql |
This file contains 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
mysqldump -u root -p dbname > ~/"dbname_$(date +"%Y_%m_%d_%I_%M_%p" | |
).sql" | |