Simple overview of use/purpose.
An in-depth paragraph about your project and overview of use.
NAME TITLE | |
abusiveexperiencereport.googleapis.com Abusive Experience Report API | |
acceleratedmobilepageurl.googleapis.com Accelerated Mobile Pages (AMP) URL API | |
accessapproval.googleapis.com Access Approval API | |
accesscontextmanager.googleapis.com Access Context Manager API | |
actions.googleapis.com Actions API | |
adexchangebuyer-json.googleapis.com Ad Exchange Buyer API | |
adexchangebuyer.googleapis.com Ad Exchange Buyer API II | |
adexchangeseller.googleapis.com Ad Exchange Seller API | |
adexperiencereport.googleapis.com Ad Experience Report API |
Esta seção contém os comandos equivalentes entre estes dois sistemas e a avaliação entre ambos. Grande parte dos comandos podem ser usados da mesma forma que no DOS, mas os comandos Linux possuem avanços para utilização neste ambiente multiusuário/multitarefa. | |
DOS Linux Diferenças | |
-------- ------------ -------------------------------------------------- | |
cls clear Sem diferenças. | |
dir ls -la A listagem no Linux possui mais campos (as | |
permissões de acesso) e o total de espaço ocupado | |
no diretório e livre no disco deve ser visto | |
separadamente usando o comando du e df. | |
Permite também listar o conteúdo de diversos |
#!/bin/bash | |
# Set PATH | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# Run the certbot container to renew the certs | |
docker-compose -f /opt/docker/certbot/docker-compose.yml run --rm certbot | |
# Concatenate the resulting certificate chain and the private key and write it to HAProxy's certificate file. | |
cat /opt/docker/certbot/certbot/etc/letsencrypt/live/example.org/{fullchain,privkey}.pem > /opt/docker/haproxy/ssl/example_org.pem |
1 - Applies to MongoDB 3.2 or better and all following operations run on Mongo Shell. | |
You need to confirm your Mongo’s engine is WiredTiger: | |
```sh | |
db.serverStatus().storageEngine | |
// expect output: { "name" : "wiredTiger" } | |
``` | |
2 - Now, execucute show dbs to locate the biggest databases, and then locate the biggest collections execxute: | |
```sh |
function getTopCollectionSizes(limit = 10) { | |
let counter = 0; | |
db.getCollectionNames().map(function(name) { | |
let collectionStats = db.getCollection(name).stats(); | |
let sizeInMB = (collectionStats["size"] / (1024 * 1024)).toFixed(2); // Convert bytes to megabytes | |
let storageSizeInMB = (collectionStats["storageSize"] / (1024 * 1024)).toFixed(2); // Convert bytes to megabytes | |
return { | |
"name": name, |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: disk-checker | |
labels: | |
app: disk-checker | |
spec: | |
selector: | |
matchLabels: | |
app: disk-checker |
Deletar evicted pods
kubectl get pods -n NAMESPACE | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n NAMESPACE
ou
kgp | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
Deletar pods em crash
kubectl delete pod -n NAMESPACE `kubectl get pods -n NAMESPACE | awk '$3 == "CrashLoopBackOff" {print $1}'`
# Install script for Octadesk | |
# Created 01.12.2021 | |
ECHO Active Windows Features | |
ECHO Configure chocolatey | |
choco feature enable -n allowGlobalConfirmation | |
#WINDOWS FEATURES | |
choco install TelnetClient -y -source windowsfeatures |
cd ~ | |
curl -L https://github.com/derailed/k9s/releases/download/v0.21.4/k9s_Linux_x86_64.tar.gz -o k9s | |
tar -xf k9s | |
chmod +x k9s | |
sudo mv ./k9s /usr/local/bin/k9s | |
k9s | |
or | |
clone repo: [email protected]:derailed/k9s.git |