Skip to content

Instantly share code, notes, and snippets.

View fran0x's full-sized avatar

Francisco Lopez fran0x

View GitHub Profile
@fran0x
fran0x / cheat-sheet-intellij-idea-ce.md
Last active September 14, 2016 09:52
Cheat Sheet IntelliJ IDEA Community Edition

Cheat Sheet IntelliJ IDEA CE

To install IntelliJ IDEA CE in OS X run brew cask install intellij-idea-ce (requires the almighty Homebrew installed first, and then tap caskroom/versions).

Action Command
Refactor Ctrl + Shift + Alt + T
Rename Refactor Shift + F6
Find Action Command + Shift + d
Find Class Ctrl + N
@fran0x
fran0x / cheat-sheet-imac.md
Last active September 21, 2016 16:05
Cheat Sheet iMac
Action Command
Show Screen Fn + F11
Spotlight Search Command (⌘) + Space bar
Generate Command (⌘) + N
Go to Command (⌘) + O
Take Screenshot Command (⌘) + Shift + 4
Forward Delete Fn + Delete
  • To encrypt: openssl -e des3 -salt -in secrets.txt -out secrets.xxx
@fran0x
fran0x / cheat-sheet-sbt.md
Created August 11, 2016 09:38
Cheat Sheet SBT

Cheat Sheet SBT

To install sbt in OS X run brew install sbt (requires the almighty Homebrew installed first).

Basic commands are the following:

Command Action
Deletes all generated files (in the target directory) clean
Compiles the main sources (in src/main/scala and src/main/java directories) compile
@fran0x
fran0x / Http.scala
Created September 8, 2016 17:53
Simple snippet to retrieve a web in an asynchronous manner
import akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.http.scaladsl.model.{StatusCodes, _}
import akka.http.scaladsl.unmarshalling.Unmarshal
import akka.stream.ActorMaterializer
import scala.concurrent.Future
import scala.util.{Failure, Success, Try}
object Http extends App {
@fran0x
fran0x / setup-python3.md
Last active September 13, 2016 14:45
Setup Python3
brew install python3

pip install cookiecutter # command-line utility to create projects from cookiecutters / project templates
pip install numpy # vectors and matrices in Python
pip install scipy # other scientific computing tools
pip install pandas # dataframes in Python!
pip install jupyter # notebook
@fran0x
fran0x / 00_OSX_Docker_Machine_Setup.md
Created September 13, 2016 15:19 — forked from bitjockey42/00_OSX_Docker_Machine_Setup.md
Use native virtualization on OS X docker with xhyve

What this?

So one of the painful points of using docker on OS X is that you need to run a virtualbox VM, which often suffers from performance issues. With xhyve, a OS X virtualization system, and docker-machine-xhyve you can now have docker use the native OS X hypervisor to run containers.

No more dealing with virtualbox shenanigans!

In this script, I've also set up a way to autoconfigure terminal sessions to load docker's environment vars (dependent on docker-machine) so you do not have to run eval $(docker-machine env whatever) every time you open a new terminal window.

Requirements

@fran0x
fran0x / build.sbt
Created November 20, 2016 19:24 — forked from r-wheeler/build.sbt
build.sbt for stanford NLP
name := "Simple Project"
version := "1.0"
libraryDependencies += "edu.stanford.nlp" % "stanford-corenlp" % "3.3.0"
libraryDependencies += "edu.stanford.nlp" % "stanford-corenlp" % "3.3.0" classifier "models"
@fran0x
fran0x / istio.md
Last active October 8, 2017 07:44
Research on Istio + Spring Boot + Django + Spark
@fran0x
fran0x / polyglot.md
Created October 8, 2017 07:48
Polyglot

K8s + Istio + Spring Boot + Golang? + Spark + ReactJS?

@fran0x
fran0x / spark_k8s.md
Last active October 12, 2017 13:28
Spark in Kubernetes