Skip to content

Instantly share code, notes, and snippets.

View mvfsillva's full-sized avatar
🦁
Hope

Marcus mvfsillva

🦁
Hope
  • Vancouver, BC
View GitHub Profile
@mvfsillva
mvfsillva / github_gpg_key.md
Created November 7, 2018 15:58 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@mvfsillva
mvfsillva / MongoDB_macOS_Sierra.md
Created October 23, 2018 16:47 — forked from nrollr/MongoDB_macOS_Sierra.md
Install MongoDB on Sierra using Homebrew

Install MongoDB on macOS Sierra

This procedure explains how to install MongoDB using Homebrew on macOS Sierra 10.12.
Official MongoDB install documentation: here

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@mvfsillva
mvfsillva / GitCommitEmoji.md
Created August 4, 2018 06:53 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@mvfsillva
mvfsillva / .vimrc
Created November 22, 2017 18:43 — forked from marinalimeira/.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
import requests
import json
AFTER = 1353233754
TOKEN = ' <insert token here> '
#by Akshit Khurana
def get_posts():
"""Returns dictionary of id, first names of people who posted on my wall
between start and end time"""
query = ("SELECT post_id, actor_id, message FROM stream WHERE "
import urllib.request
import json
def save_image(friend):
size = '/picture?width=200&height=200'
url = 'https://graph.facebook.com/'+ friend['id'] + size
image = urllib.request.urlopen(url).read()
f = open(friend['name'] + '.jpg', 'wb')
f.write(image)
f.close()