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 / 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.
@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 / README.md
Created January 17, 2012 17:32 — forked from eligrey/object-watch.js
watch the changes of some object or attribute
@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 / gil-contribution-week-54.md
Created July 17, 2018 06:42
Gil Contribution Week 54
@melanke
melanke / CoZ-Gil-Contribution-Week65.md
Created October 1, 2018 13:23
CoZ-Gil-Contribution-Week65.md
@melanke
melanke / CoZ-Gil-Contribution-Week64.md
Created September 24, 2018 14:04
CoZ-Gil-Contribution-Week64.md
@melanke
melanke / Gil-Contribution-Week-61.md
Last active September 3, 2018 16:59
Gil Contribution Week 61

Neo-Sharp

Fix #308 - Implement "IsDoubleSpend" method (And GetUnspent method)

Neo Black Sea

Workshop preparation with @ricklock

  • Creation of examples / templates using C#
  • Neo eco-system review (for the presentation)
@melanke
melanke / Gil-Contribution-Week-56.md
Created July 30, 2018 15:40
Gil Contribution Week 56
@melanke
melanke / gil-contribution-week-54.md
Created July 24, 2018 14:56
Gil Contribution Week 55