###Mostrar quanto de espaço em disco está sendo ocupado
df -h ou df -h .
###Mostrar por pasta quanto de espaço em disco está sendo ocupado (muito útil)
du --max-depth=1 -h /
###Mostrar quanto de espaço em disco está sendo ocupado
df -h ou df -h .
###Mostrar por pasta quanto de espaço em disco está sendo ocupado (muito útil)
du --max-depth=1 -h /
#!/usr/bin/env node | |
const Promise = require('bluebird'); | |
const cmd = require('node-cmd'); | |
const [,, ...args] = process.argv | |
if(!args[0]) { | |
console.log("Informe um nome de usuário") | |
return | |
} |
1 hostname elliot-01 | |
2 echo elliot-01 > /etc/hostname | |
3 bash | |
4 vim /etc/modules-load.d/k8s.conf | |
5 curl -fsSL https://get.docker.com | bash | |
6 docker version | |
7 docker ps | |
8 apt-get update && apt-get install -y apt-transport-https | |
9 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
10 echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list |
No such DSL method 'waituntil' found among steps [ArtifactoryGradleBuild, MavenDescriptorStep, addInteractivePromotion, archive, artifactoryDistributeBuild, artifactoryDownload, artifactoryEditProps, artifactoryGoPublish, artifactoryGoRun, artifactoryMavenBuild, artifactoryNpmInstall, artifactoryNpmPublish, artifactoryPromoteBuild, artifactoryUpload, bat, build, catchError, checkout, collectEnv, collectIssues, conanAddRemote, conanAddUser, deleteDir, deployArtifacts, dir, dockerFingerprintFrom, dockerFingerprintRun, dockerPullStep, dockerPushStep, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, getArtifactoryServer, getContext, git, initConanClient, input, isUnix, junit, library, libraryResource, load, lock, mail, milestone, newArtifactoryServer, newBuildInfo, newGoBuild, newGradleBuild, newMavenBuild, newNpmBuild, node, parallel, powershell, properties, publishBuildInfo, pwd, pwsh, readFile, readTrusted, resolveScm, retry, rtAddInteractivePromotion, rtBuildInfo, rtColl
OBS: O algoritmo possui um bug. Nem todo CPF que ele gera é válido. Necessário corrigir.
(function () {
aleatorio = function () {
aleat = Math.floor(Math.random() * 999);
//o preenchimento dos zeros à esquerda é mais facil com a função padStart da string
return ("" + aleat).padStart(3, '0');
Detalhamento de informações sobre o usuário do AD: | |
net users <nome_usuário> /domain |
#!/usr/bin/env node | |
console.log('yay gist') |
--https://stackoverflow.com/a/52750830/1252947 | |
CREATE TABLE #tempTable1 | |
( | |
pasta VARCHAR(50), | |
subpasta VARCHAR(50) | |
) | |
BULK INSERT #tempTable1 | |
FROM '<CAMINHO COMPLETO>' |
sudo su | |
sudo apt update && apt list --upgradable | |
apt install openjdk-8-jdk | |
apt install maven | |
curl -fsSL https:/get.docker.com | bash | |
docker version | |
docker container run hello-world | |
#Command: java -jar ./schemaspy-6.0.0.jar -configFile C:/Users/pedro/Desktop/schemaspy/schemaspy_config.file | |
# type of database. Run with -dbhelp for details | |
schemaspy.t=mssql08 | |
# optional path to alternative jdbc drivers. | |
#schemaspy.dp=path/to/drivers | |
schemaspy.dp=C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssql-jdbc-7.4.1.jre8.jar # esse jar é baixado do site da microsoft | |
# database properties: host, port number, name user, password | |
schemaspy.host=localhost | |
schemaspy.port=1433 |