Skip to content

Instantly share code, notes, and snippets.

Bruno Vieira bmpvieira

Block or report user

Report or block bmpvieira

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View nix-config.nix
# add sound support
hardware.pulseaudio.enable = true;
# to allow control of the screen brightness
hardware.brightnessctl.enable = true;
extraGroups = [
From Ubuntu Live USB
sudo apt update
sudo apt install -y git curl zfsutils-linux
bash <(curl
. $HOME/.nix-profile/etc/profile.d/ # …or open a fresh shell
nix-channel --add nixpkgs
nix-channel --update
bmpvieira /
Created Apr 18, 2017 — forked from blahah/
easily find retracted papers in PubMed, using only bionode-ncbi and jq
# you'll need:
# - bionode-ncbi (
# - jq (
# count the number of retracted papers
bionode-ncbi search pubmed "\"Retracted Publication\"" \
| jq -c 'select(.pubtype[] | inside("Retracted Publication"))'
| wc -l
# get DOIs for all the retracted papers
bmpvieira / streams.js
Last active Apr 7, 2017 — forked from IsmailM/streams.js
Trying to get streams to work
View streams.js
var through = require('through2')
var pumpify = require('pumpify')
var request = require('request')
var getProjects = function (cb) {
var stream = pumpify.obj(
sendRequest() // Returns a JSON object
return stream


Short Link :


The objective of this exercise is to refine the key goals from onboarding and areas of improvement over your next 4 months as a Mozilla Fellow.

View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
bmpvieira /
Created May 26, 2016 — forked from domenic/
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

bmpvieira / cwtool with GUIX
Last active Sep 18, 2015
Put this inside python.scm
View cwtool with GUIX
(define-public python-cwltool
(name "python-cwltool")
(version "1.0.20150916041152")
(method url-fetch)
(uri (string-append
bmpvieira / bionode-request.js
Created Jul 30, 2015
Get stuff from NCBI with custom path
View bionode-request.js
var fs = require('fs')
var ncbi = require('bionode-ncbi')
var request = require('request')
var through = require('through2')
var _ = require('lodash')
var property = 'README.txt'
var requestStream = through.obj(function(obj, enc, next) {
var fileName = _.get(obj, property).split('/')[5]
You can’t perform that action at this time.