Skip to content

Instantly share code, notes, and snippets.

View mribeirodantas's full-sized avatar
🇧🇷
Addicted to data.

Marcel Ribeiro-Dantas mribeirodantas

🇧🇷
Addicted to data.
View GitHub Profile
### Keybase proof
I hereby claim:
* I am mribeirodantas on github.
* I am mribeirodantas (https://keybase.io/mribeirodantas) on keybase.
* I have a public key ASAD_MkfbzBS7LjoG-HbIfrvIGCoIiGIBdVdweLBCtbengo
To claim this, I am signing this object:
@mribeirodantas
mribeirodantas / get_inactive_friends.R
Last active September 13, 2020 20:11
Get a vector of handle names of people you follow and have not tweeted in the past 90 days.
# install.packages("rtweet")
library(rtweet)
library(dplyr)
library(lubridate)
# Set to your username below
username = 'mribeirodantas'
following = get_friends(user = username)$user_id
get_timeline(user = following, n = 1, check=FALSE) %>%
@mribeirodantas
mribeirodantas / home mode
Created November 5, 2019 09:56
Script to set machine back to home mode
# In my machine, the content below is saved to /usr/local/bin/setup_home_env
# Run with sudo
#!/usr/bin/bash
# Turn off proxy config for package management in Ubuntu
rm -f /etc/apt/apt.conf.d/proxy.conf
# Turn off proxy for R
echo '' > /home/mribeirodantas/.Renviron
@mribeirodantas
mribeirodantas / work mode
Last active November 5, 2019 09:56
Script to set the machine for work
# In my machine, the content below is saved to /usr/local/bin/setup_work_env
# Run with sudo
#!/usr/bin/bash
# Set proxy for package management in Ubuntu
echo 'Acquire {
HTTP::proxy "http://www-cache:3128";
HTTPS::proxy "http://www-cache:3128";
}' > /etc/apt/apt.conf.d/proxy.conf

Keybase proof

I hereby claim:

  • I am mribeirodantas on github.
  • I am mribeirodantas (https://keybase.io/mribeirodantas) on keybase.
  • I have a public key whose fingerprint is C5B9 1E7A BB5B 18E8 CC72 C31D 0749 90F2 445D A221

To claim this, I am signing this object: