Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
mkdir -p ~/.ssh
chmod 600 ~/.ssh
echo "$PR_BUILDER_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
# git clone --branch $BRANCH_NAME --depth 1 [email protected]:qualialabs/qualia.git /the-code
@razvvan
razvvan / shopify.md
Created December 26, 2016 15:35 — forked from lambtron/shopify.md
segment event tracking for shopify
title sidebar
Segment Event Tracking for Shopify
Shopify

Segment makes it simple for Shopify merchants to integrate analytics, email marketing, advertising and optimization tools. Rather than installing all your tools individually, you just install Segment once. We collect your data, translate it, and route it to any tool you want to use with the flick of a switch. Using Segment as the single platform to manage and install your third-party services will save you time and money.

The guide below explains how to install Segment in your Shopify store. All you need to get up and running is copy and paste a few snippets of code into your theme editor. (You don't have to edit the code or be versed in JavaScript.) The following guide will show you how, step by step.


@razvvan
razvvan / WIP.md
Last active August 29, 2015 14:21 — forked from till/WIP.md

Register a droplet in AWS OpsWorks

AWS Requirements

  • create a new IAM user and attach the AWS OpsWorks Register Policy
  • for testing: create a new stack on AWS OpsWorks and fetch its ID
  • customize all variables prefixed with YOUR_ from the cloud-config.yml

DigitalOcean

import redis.clients.jedis._
val jedis = new Jedis("localhost")
val filePath = "d:\\Licenta Big Data\\licenta-1.0\\data2\\usersha1-artmbid-artname-plays.tsv"
val javaFile = new java.io.File(filePath)
val encoding = "UTF-8"
val file = io.Source.fromFile(javaFile)(encoding)
var artistList = List.empty[String]
def time[A](a: => A) = {
val now = System.nanoTime
val result = a
val micros = (System.nanoTime - now) / 1000
println("%d microseconds".format(micros))
result
}