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
| #!/usr/bin/env bash | |
| # If you want to debug, uncomment this lines and set DEBUG=True | |
| #if [[ $DEBUG ]]; then | |
| # set -x | |
| #fi | |
| ## Inserts organization | |
| ORG="My_org" |
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
| # Folder view configuration files | |
| .DS_Store | |
| Desktop.ini | |
| # Thumbnail cache files | |
| ._* | |
| Thumbs.db | |
| # Files that might appear on external disks | |
| .Spotlight-V100 |
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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: flask | |
| labels: | |
| app: flask-firstapp | |
| spec: | |
| containers: | |
| - name: flask | |
| image: chcdc/flask-demo-app:latest |
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
| SELECT tablespace_name, table_name FROM user_tables; | |
| exit; |
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
| from kubernetes import client, config | |
| from tabulate import tabulate | |
| from datetime import datetime | |
| config.load_kube_config() | |
| v1 = client.CoreV1Api() | |
| ret = v1.list_pod_for_all_namespaces(watch=False) | |
| headers = ['Namespace', 'Name', 'Status', 'Restart', 'Creation Date'] | |
| table = [] # type: List |
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
| #!/usr/bin/env Python3.5 | |
| # -*- coding: utf-8 -*- | |
| # Carlos Carvalho | |
| # 21/01/2017 | |
| # Copiar/mover arquivos por extensão | |
| # Copiar os arquivos em pdf do diretorio /mnt/DOCS/ | |
| # para o diretorio /mnt/DOCS/pdf | |
| import os,shutil,re |
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
| Isto é apenas um teste! | |
| Esse texto está armazenado em gist.github.com |
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 | |
| now=`date +%Y%m%d-%H%M%S` | |
| fswebcam -F 20 -r 1280x720 --jpeg 100 -D 1 $now.jpeg | |
| sendemail -f carloshccarvalho@hotmail.com -t chenriquecdc@gmail.com -u "Opa! Noticias" -m "Alguem acessou sua maquina agora!" -s smtp.live.com:587 -xu carloshccarvalho@hotmail.com -xp [ Password ] -a $HOME/$now.jpeg |