Skip to content

Instantly share code, notes, and snippets.

Diego Alvarez d1egoaz

  • Shopify
  • Vancouver - Canada
Block or report user

Report or block d1egoaz

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
d1egoaz / boxstarter.ps1
Last active Oct 14, 2017 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <>
# Last Updated: 2017-09-11
# Install boxstarter:
# . { iwr -useb } | iex; get-boxstarter -Force
# You might need to set: Set-ExecutionPolicy RemoteSigned
# Run this boxstarter by calling the following from an **elevated** command-prompt:
d1egoaz / AutomateScalafmtPlugin.scala
Created Mar 13, 2017
AutomateScalafmtPlugin using local ScalafmtBootstrap
View AutomateScalafmtPlugin.scala
import org.scalafmt.sbt.ScalafmtPlugin
import sbt._
import sbt.Keys._
object AutomateScalafmtPlugin extends AutoPlugin {
object autoImport {
def automateScalafmtFor(configurations: Configuration*): Seq[Setting[_]] =
configurations.flatMap { c =>
View ScalafmtBootstrap.scala
import{ByteArrayInputStream, ByteArrayOutputStream, File, PrintStream}
import coursier._
import org.scalafmt.Versions
import scala.collection.immutable.Nil
import scala.collection.mutable
import scala.language.reflectiveCalls
# This script will make WinMerge your default tool for diff and merge.
# It must run inside git bash (on Windows)
# If you experience path issues you should give a try to the gist
# created by markusobrist at
d1egoaz /
Last active Dec 10, 2015
git hook pre-push installation instructions
d1egoaz / pre-push
Created Dec 10, 2015
Scala pre-push git hook that compiles project before pushing it to git server
View pre-push
echo ">> Executing sbt compile before pushing to Git server"
sbt compile
echo ">> Compiles?"
if [ $compiles -eq 0 ]
echo owly
d1egoaz / inject_beanmethod_into_beanproperty.xml
Created May 9, 2012
Inyectar el resultado de un método como una propiedad de un bean en Spring
View inject_beanmethod_into_beanproperty.xml
<bean id="miDataSourceProvider" class="com.algunnamespace.sql.DataSourceProvider">
<bean id="miclaseDao" class="com.d1egoaz.misuperproyecto.dao.MiclaseDaoImpl">
<property name="jdbcDataSource">
<bean factory-bean="miDataSourceProvider" factory-method="getDataSource" />
d1egoaz / nodeMock.js
Last active Aug 29, 2015
simple node express example
View nodeMock.js
var express = require('express');
var request = require('request');
var app = express();
app.all('*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
View FileEncodingTest
package scoverage
import java.nio.charset.{MalformedInputException, CodingErrorAction}
import org.scalatest.FunSuite
import{Source, Codec}
class FileEncodingTest extends FunSuite {
You can’t perform that action at this time.