Skip to content

Instantly share code, notes, and snippets.

empty file
@hawkup
hawkup / Start Elixir and Phoenix.md
Last active October 15, 2016 18:42
Start Elixir and Phoenix

Installing

  • Add Erlang Solution
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
  • Install the Erlang/OTP platform and all of its applications
sudo apt-get install esl-erlang
@hawkup
hawkup / Elm.md
Last active December 3, 2016 08:03
Start Elm
@hawkup
hawkup / Elixir.md
Created December 3, 2016 08:09
Elixir on osx

Install by brew

brew update
brew install elixir
@hawkup
hawkup / Install NVM
Last active January 6, 2018 14:30
React Native script
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
@hawkup
hawkup / Install Homebrew
Created April 1, 2017 15:19
React Native script
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@hawkup
hawkup / Install Watchman
Created April 1, 2017 15:26
React Native script
brew install watchman
@hawkup
hawkup / Install React Native CLI
Last active April 1, 2017 15:34
React Native script
npm install -g react-native-cli
@hawkup
hawkup / Install bs-platform
Created January 6, 2018 14:42
Install bs-platform
npm install -g bs-platform
@hawkup
hawkup / simple.js
Last active October 3, 2021 10:29
K6 - Database Load Testing
// https://github.com/imiric/xk6-sql
// https://dev.to/k6/load-testing-sql-databases-with-k6-30ci
// ./k6 run --vus 5 --duration 5s script.js
import sql from 'k6/x/sql';
const db = sql.open("mysql", "username:password@tcp(127.0.0.1)/loadtest");
export function setup() {
db.exec(`