###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 /
GIT - Cheat sheet - by Pedro Pinheiro pedrovictor.pinheiro@gmail.com
Instalação e ajuda:
sudo apt-get install git - Instalando o git no Ubuntu
git help - Mostra uma lista de comandos úteis do git e descrições do mesmo
git help command - Mostra detalhes de um comando específico
#!/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');
#Source: https://medium.com/@msalmon00/helpful-python-code-snippets-for-data-exploration-in-pandas-b7c5aed5ecb9 | |
#Code snippets for Pandas | |
import pandas as pd | |
‘’’ | |
Reading Files, Selecting Columns, and Summarizing | |
‘’’ | |
# reading in a file from local computer or directly from a URL | |
# various file formats that can be read in out wrote out | |
‘’’ | |
Format Type Data Description Reader Writer |
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>' |