Skip to content

Instantly share code, notes, and snippets.


Patricio López Juri lopezjurip

View GitHub Profile
lopezjurip / Python3.sublime-build
Last active Aug 29, 2015
Sublime Text 3 - Python3 (OSX)
View Python3.sublime-build
"cmd": ["python3", "-u", "$file"],
"selector": "source.python",
"file_regex": "file \"(...*?)\", line ([0-9]+)",
"encoding": "utf8"
lopezjurip / TypeScript.sublime-build
Created Jun 3, 2015
Sublime Text 3 - TypeScript ES6 (OSX)
View TypeScript.sublime-build
"cmd": ["tsc", "--target ES6", "--declaration", "--module amd", "--sourceMap", "$file"],
"selector": "source.ts"
lopezjurip / Markdownt to Tex
Created Jun 8, 2015
[Pandoc] Markdown to PDF
View Markdownt to Tex
pandoc --from=markdown_github --highlight-style=tango --output=README.tex --to=latex --standalone
lopezjurip / Cpp.sublime-build
Last active Jun 11, 2018
Sublime Text 3 - C++ Compile and run (OSX)
View Cpp.sublime-build
"cmd": ["g++ $file -o $file_base_name -I/usr/local/include ; ./$file_base_name"],
"selector": "source.c++",
"shell": true
lopezjurip /
Last active Feb 11, 2020
Write to NTFS on OSX Yosemite and El Capitan

OUTDATED, see comments below

Install Homebrew:

ruby -e "$(curl -fsSL"

Update Homebrew formulae:

brew update
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
lopezjurip /
Last active Oct 13, 2021
Install Chocolatey on Windows 10 | Install git and Python3 (with pip)

Install Chocolatey on Windows 10

First, you have to run Powershell as administrator. Then type the following:

Set-ExecutionPolicy Unrestricted

Accept to continue.

Then we install Chocolatey:

lopezjurip /
Created Sep 1, 2015
Update and clean pip packages
pip3 install --upgrade pip; pip install --upgrade pip; pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U; pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U; rm -rf ~/Library/Caches/pip
lopezjurip / main.js
Created Sep 4, 2015
Repartidor web js
View main.js
var turn = 0;
console.log(['LosExtraterrestresMusicales', 'Rupie', 'TheTeam', 'Veritas',
'YisusPlusOne', 'ImaginApp', 'Nebuchadnezzar', 'Rock',
'InternalServerError', 'String.random', 'ZipCity2000',
'PW:Software', 'ToPa', 'tqzptscsaj',]
.sort(.5 - Math.random())
.reduce(function(previous, current) {
previous[['pato', 'thomas', 'pedro'][turn++ % 3]].push(current);
return previous;
}, {pato: [], thomas: [], pedro: []}));
lopezjurip /
Created Sep 9, 2015
Azure CLI - Create Docker

With BrewCask:

brew cask install azure-cli

Quickly access to Microsoft Azure and download settings file:

azure account download