Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Coding Around 🌳 🌲 📈 📊 🙃

Luis Puerto luispuerto

👨‍💻
Coding Around 🌳 🌲 📈 📊 🙃
View GitHub Profile
@ElToro1966
ElToro1966 / r_ubuntu_18_04.sh
Last active Jun 3, 2020 — forked from pachamaltese/r_ubuntu_17_10.sh
Install R and RStudio on Ubuntu 18.04 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_18_04.sh
# 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
cd ~/Downloads
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.2.5001-amd64.deb
sudo gdebi rstudio-1.2.5001-amd64.deb
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile
@blackgate
blackgate / mbp2011-disable-amd-gpu.md
Last active Jun 22, 2020
Macbook Pro 2011 - Disable AMD GPU
View mbp2011-disable-amd-gpu.md
@angelamancini
angelamancini / quiver-to-evernote.rb
Created May 20, 2017
Converts Quiver notebook exports to Evernote *.enex files. Only tested with text and code cells. This *was not tested* with any other cell types.
View quiver-to-evernote.rb
# Before running this script, go to Quiver and export all notebooks into json/quiver format
# Place them in a folder called `exports` in the same directory as this script.
# In terminal, run `ruby quiver-to-evernote.rb`
# Check for presence of required gems.
# If not present, install the gems
["rubygems", "sanitize"].each do |gem|
begin
gem "#{gem}"
rescue Gem::LoadError
`gem install #{gem}`
@seandavi
seandavi / debian_rstudio_server_install.sh
Last active Jul 6, 2018
Install rstudio server on debian
View debian_rstudio_server_install.sh
#!/bin/bash
sudo apt-get install -y libcurl4-openssl-dev libxml2-dev libssl-dev
sudo apt-get install -y r-base r-base-dev
sudo apt-get install -y gdebi-core
wget https://download2.rstudio.org/rstudio-server-1.0.136-amd64.deb
sudo gdebi --non-interactive rstudio-server-1.0.136-amd64.deb
# rstudio will be running on port 8787
@gobinathm
gobinathm / shallow_update_git.md
Created Mar 6, 2017
Fix for Remote rejected shallow update not allowed after changing Git remote URL
View shallow_update_git.md

Some Time there is a shallow update not allowed issue in your cloned GIT repo.

This means that you have to unshallow your repository. To do so you will need to add your old remote again.

git remote add origin <path-to-old-remote> After that we use git fetch to fetch the remaining history from the old remote (as suggested in this answer).

git fetch --unshallow origin And now you should be able to push into your new remote repository.

@jweisber
jweisber / mac-terminal
Last active Dec 11, 2017
Open iTerm from Rstudio: replace /Applications/RStudio.app/Contents/MacOS/mac-terminal (see http://tinyurl.com/jvf6lbx, which is now out of date).
View mac-terminal
#!/usr/bin/osascript
on run argv
set dir to quoted form of (first item of argv)
if application "iTerm" is running then
set wasRunning to true
else
set wasRunning to false
end if
@gwinstanley
gwinstanley / fix-rJava.sh
Last active Apr 16, 2020
Script to configure rJava correctly on macOS
View fix-rJava.sh
#!/usr/bin/env bash
# Script to configure rJava correctly on macOS.
# Check R is available.
RP=$(which R)
if [ $? -ne 0 ]; then
>&2 echo "Unable to find R executable; please ensure it is installed correctly."
exit 1
fi
@idleberg
idleberg / sublime-text-macos-context-menu.md
Last active Jun 16, 2020 — forked from vincentmac/sublime-text-osx-context-menu.md
“Open in Sublime Text” in macOS context-menu
View sublime-text-macos-context-menu.md

Open in Sublime Text

  • Open Automator
  • Create a new Service
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"
  • Set “Pass input” to as arguments
  • Save as Open in Sublime Text
View Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@lukas-h
lukas-h / license-badges.md
Last active Jul 8, 2020
Markdown License Badges for your Project
View license-badges.md

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  

Translations: (No guarantee that the translations are up-to-date)

You can’t perform that action at this time.