Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Coding Around 🌳 🌲 📈 📊 🙃

Luis Puerto luispuerto

👨‍💻
Coding Around 🌳 🌲 📈 📊 🙃
View GitHub Profile
@luispuerto
luispuerto / r_ubuntu.sh
Last active Jul 27, 2020 — forked from ElToro1966/r_ubuntu_18_04.sh
Install R and RStudio on Ubuntu 19.10 with essential libraries for data science. Based on pachamaltese/r_ubuntu_17_10.sh (for Ubuntu 17.10). Note: You need to make sure the default library location - /usr/local/lib/R/site-packages - is writable .
View r_ubuntu.sh
# Add repo to install the last R
sudo apt install apt-transport-https software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu eoan-cran35/'
# Install R
sudo apt update
sudo apt install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev
# Install RStudio
View Makevars
# --------
# RMakevars
# --------
# General note
# - need to repeat options across C++ flavors (e.g., 11, 14)
# Homebrew bin / opt / lib locations
HB=/usr/local/bin
HO=/usr/local/opt
View OpenVPN errors
May 30 20:25:31 ovpn-client1[11506]: TLS: tls_process: killed expiring key
May 30 20:25:31 ovpn-client1[11506]: VERIFY OK: depth=2, C=PA, O=NordVPN, CN=NordVPN Root CA
May 30 20:25:31 ovpn-client1[11506]: VERIFY OK: depth=1, C=PA, O=NordVPN, CN=NordVPN CA4
May 30 20:25:31 ovpn-client1[11506]: VERIFY KU OK
May 30 20:25:31 ovpn-client1[11506]: Validating certificate extended key usage
May 30 20:25:31 ovpn-client1[11506]: ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
May 30 20:25:31 ovpn-client1[11506]: VERIFY EKU OK
May 30 20:25:31 ovpn-client1[11506]: VERIFY OK: depth=0, CN=us4921.nordvpn.com
May 30 20:25:33 ovpn-client1[11506]: Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
May 30 20:25:33 ovpn-client1[11506]: Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
@luispuerto
luispuerto / buttondown.css
Last active May 24, 2020 — forked from ryangray/buttondown.css
A clean, minimal CSS stylesheet for Markdown, Pandoc and MultiMarkdown HTML output.
View buttondown.css
/*
Buttondown
A Markdown/MultiMarkdown/Pandoc HTML output CSS stylesheet
Author: Ryan Gray
Date: 15 Feb 2011
Contributor: Luis Puerto (luiss.puerto@gmail.com)
Revised: Mon, 12 Aug 2019
General style is clean, with minimal re-definition of the defaults or
overrides of user font settings. The body text and header styles are
@luispuerto
luispuerto / syslog.txt
Created May 13, 2020
log of my router
View syslog.txt
May 13 06:31:47 syslog: WLCEVENTD wlceventd_proc_event(401): eth2: Disassoc C0:E8:62:D9:B6:17, status: 0, reason: Disassociated because sending station is leaving (or has left) BSS (8)
May 13 06:31:48 syslog: WLCEVENTD wlceventd_proc_event(420): eth2: Auth C0:E8:62:D9:B6:17, status: 0, reason: d11 RC reserved (0)
May 13 06:31:48 syslog: WLCEVENTD wlceventd_proc_event(449): eth2: Assoc C0:E8:62:D9:B6:17, status: 0, reason: d11 RC reserved (0)
May 13 06:31:49 syslog: WLCEVENTD wlceventd_proc_event(420): wl1.2: Auth D0:D2:B0:84:65:F2, status: 0, reason: d11 RC reserved (0)
May 13 06:31:49 syslog: WLCEVENTD wlceventd_proc_event(449): wl1.2: Assoc D0:D2:B0:84:65:F2, status: 0, reason: d11 RC reserved (0)
May 13 06:31:50 syslog: WLCEVENTD wlceventd_proc_event(420): eth2: Auth F0:D1:A9:0F:63:EC, status: 0, reason: d11 RC reserved (0)
May 13 06:31:50 syslog: WLCEVENTD wlceventd_proc_event(449): eth2: Assoc F0:D1:A9:0F:63:EC, status: 0, reason: d11 RC reserved (0)
May 13 06:31:50 syslog: WLCEVENTD wlceventd_proc_event
View RSQLite-error.r
install.packages("RSQLite")
Installing package into/Users/lpuerto/Library/R/3.x/library
(aslibis unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/RSQLite_2.2.0.tar.gz'
Content type 'application/x-gzip' length 2373785 bytes (2.3 MB)
==================================================
downloaded 2.3 MB
* installing *source* packageRSQLite...
** packageRSQLitesuccessfully unpacked and MD5 sums checked
View R CMD javareconf output
$ R CMD javareconf
*** JAVA_HOME is not a valid path, ignoring
Java interpreter : /usr/bin/java
Java version : 13.0.2
Java home path : /Library/Java/JavaVirtualMachines/openjdk-13.0.2.jdk/Contents/Home
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
trying to compile and link a JNI program
View .gitignore_global
# from: https://github.com/github/gitignore ####################################
# macOS ########################################################################
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
@luispuerto
luispuerto / with armadillo
Created Aug 23, 2019
Building RcppArmadillo with and without Armadillo (homebrew) installed
View with armadillo
Installing package into ‘/Users/lpuerto/Library/R/3.x/library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/RcppArmadillo_0.9.600.4.0.tar.gz'
Content type 'application/x-gzip' length 1360028 bytes (1.3 MB)
==================================================
downloaded 1.3 MB
* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
** using staged installation
View keybase.md

Keybase proof

I hereby claim:

  • I am luispuerto on github.
  • I am lpuerto (https://keybase.io/lpuerto) on keybase.
  • I have a public key ASAqQrhZG39TwECuGN9EtGSNANr-5UV-xVWonxIJQxyhNgo

To claim this, I am signing this object:

You can’t perform that action at this time.