Skip to content

Instantly share code, notes, and snippets.

View chcdc's full-sized avatar
🐙

Carlos Carvalho chcdc

🐙
View GitHub Profile
@chcdc
chcdc / get_all_repos.sh
Created March 23, 2023 22:36
This program downloads all the repositories that the user has access to in the organization.
#!/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"
@chcdc
chcdc / .gitignore
Created May 4, 2022 01:04
my-gitignore
# Folder view configuration files
.DS_Store
Desktop.ini
# Thumbnail cache files
._*
Thumbs.db
# Files that might appear on external disks
.Spotlight-V100
apiVersion: v1
kind: Pod
metadata:
name: flask
labels:
app: flask-firstapp
spec:
containers:
- name: flask
image: chcdc/flask-demo-app:latest
SELECT tablespace_name, table_name FROM user_tables;
exit;
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
#!/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
@chcdc
chcdc / te
Created January 15, 2016 04:23
Telegram test
Isto é apenas um teste!
Esse texto está armazenado em gist.github.com
@chcdc
chcdc / check.sh
Last active January 5, 2016 03:15
#!/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