Skip to content

Instantly share code, notes, and snippets.

View melanke's full-sized avatar
The future is already here, it's just not evenly distributed

Gil Lopes Bueno melanke

The future is already here, it's just not evenly distributed
View GitHub Profile
@melanke
melanke / gil-contribution-week-54.md
Created July 17, 2018 06:42
Gil Contribution Week 54
@melanke
melanke / MultiGetSet.js
Created June 19, 2012 20:53
MultiGetSet.JS - Quickly generate getters and setters for multiple attributes
var MultiGetSet = function(opt){
var getType = function(o) {
return ({}).toString.call(o).match(/\s([a-zA-Z]+)/)[1].toLowerCase()
};
if(!opt.public || !opt.private)
return opt.public;
if(opt.handler && opt.handler.init)
@melanke
melanke / README.md
Created January 17, 2012 17:32 — forked from eligrey/object-watch.js
watch the changes of some object or attribute
@melanke
melanke / MLRoundedImageView.java
Created October 25, 2013 17:19
Android Rounded Image
public class MLRoundedImageView extends ImageView {
public MLRoundedImageView(Context context) {
super(context);
}
public MLRoundedImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@melanke
melanke / Git-help.md
Created May 26, 2022 14:01
Configurar Git / Github / SSH / IntelliJ / start-ssh-agent / Putty / Peagent / Sourcetree

Configurar Git / Github / SSH / IntelliJ / start-ssh-agent / Putty / Peagent / Sourcetree

Quando você clona um projeto git pode escolher entre trabalhar com HTTPS ou SSH. Trabalhar com HTTPS é mais prático mas nem sempre é possível, existem alguns mecanismos de segurança que não vão funcionar. Então esse setup é necessário para superar qualquer barreira de permissão:

  • Crie uma nova chave: ssh-keygen -t rsa -C "<seu e-mail logado no github>"
  • Copie o conteúdo do arquivo ~/.ssh/id_rsa.pub
    • Existe uma pasta oculta chamada .ssh dentro da pasta do seu user do windows (C:/Users/seunome/.ssh), é nessa pasta que está este arquivo.
  • Entre nesse link, cadastre uma nova chave e cole oq vc copiou
  • Rode esse código pra testar se funcionou: ssh -T git@github.com
  • Deve mostrar algo como: Hi developius! You've successfully authenticated, but GitHub does not provide shell access.