Skip to content

Instantly share code, notes, and snippets.

View math3vz's full-sized avatar

Matheus Moraes math3vz

  • São Paulo, Brasil
View GitHub Profile

Keybase proof

I hereby claim:

  • I am math3vz on github.
  • I am math3vz (https://keybase.io/math3vz) on keybase.
  • I have a public key ASB1BuVLTdvhOtK9z9egj03Lge3zwtwOlXhMa0Rkw0mwgwo

To claim this, I am signing this object:

@math3vz
math3vz / kube-registry.yaml
Created August 26, 2019 16:17 — forked from coco98/kube-registry.yaml
Docker registry on minikube
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-registry-v0
namespace: kube-system
labels:
k8s-app: kube-registry
version: v0
spec:
replicas: 1
#!/bin/bash
# : ${2?"Usage: $0 [number of days] [base url of elastic]"}
days="30"
baseURL=${2}
indexes=("my-cool-index" "my-not-so-cool-index")
for i in "${indexes[@]}"
[11:14:07] $ cat a.txt 
a
b

[matheusmmo@bbrandsti-07:~]
[11:14:47] $ cat b.txt 
b
c

sed -i '45d' /home/matheusmmo/.ssh/known_hosts

@math3vz
math3vz / config
Created February 2, 2018 18:56
Bitbucket alternative ssh
host bitbucket.org
port 443
hostname altssh.bitbucket.org
host github.com
port 443
hostname ssh.github.com
user git
$ sudo cat ~/.local/share/applications/rdm.desktop
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Redis Desktop Manager
Comment=RDM
Exec=/home/matheusmmo/rdm/bin/linux/release/rdm
Icon=/home/matheusmmo/rdm/src/resources/rdm.png
Terminal=false
Host bitbucket.org
HostName bitbucket.org
User git
IdentityFile ~/.ssh/chave
IdentitiesOnly yes
Host matheus.bitbucket.org
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa
@math3vz
math3vz / sort_by_modified_data.sh
Created April 4, 2017 13:04
Sort by modified date
find storage/app/OCORREN/ -printf "%T+\t%p\n" | sort -r | head -4
@math3vz
math3vz / gist:6cd90f9607360074d374d8ac3118f3b6
Created March 16, 2017 17:09
Change docker default ip
https://gist.githubusercontent.com/fabiorphp/a94e0ea2558b3d10185d6d69d053c2b2/raw/configure_docker0.sh | sudo bash -s - 172.31.0.21/16