Skip to content

Instantly share code, notes, and snippets.

View rfahham's full-sized avatar

Ricardo Fahham rfahham

View GitHub Profile
@rfahham
rfahham / alias-kubernetes
Created December 8, 2023 18:08
alias para facilitar o dia-a-dia de quem trabalha com kubernetes
Acrescente as linhas abaixo no arquivo: ~/.zshrc
$ vi ~/.zshrc
alias k="kubectl"
alias kapply="kubectl apply -f"
alias kdel="kubectl delete"
alias kpd="kubectl describe pod"
alias kexec="kubectl exec -it"
alias klogs="kubectl logs"
@rfahham
rfahham / mov2gif.py
Created December 5, 2021 22:30 — forked from satoruhiga/mov2gif.py
convert mov to gif animation
#!/usr/bin/env python
'''
DEPENDENCIES:
$ brew install ffmpeg
$ brew install imagemagick
$ python ./mov2gif.py input.mov output.gif 15
'''
@rfahham
rfahham / gist:2871c6720e4152139dc667b3da1da4cb
Last active August 4, 2018 22:37
Validação de URLs
# !/usr/bin/env python
# -- coding: utf-8 --
# dependências
import requests
import urllib3
import certifi
arq = open('lista_get_com_host.csv', 'r') # arquivo com a lista de urls
arq_200 = open('200_ok.csv', 'w')