Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Coding Around 🌳 🌲 📈 📊 🙃

Luis Puerto luispuerto

👨‍💻
Coding Around 🌳 🌲 📈 📊 🙃
Block or report user

Report or block luispuerto

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
@blackgate
blackgate / mbp2011-disable-amd-gpu.md
Last active Aug 25, 2019
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 Jun 19, 2019
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 Jul 23, 2019 — 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 Aug 23, 2019
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

@PurpleBooth
PurpleBooth / README-Template.md
Last active Aug 26, 2019
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You can’t perform that action at this time.