Skip to content

Instantly share code, notes, and snippets.

@hawkup
hawkup / tools.md
Last active March 27, 2022 09:37
Tools

Volta - JS Toolchains as Code. ⚡

goenv - 🚙 Like pyenv and rbenv, but for Go.

Lens - The Kubernetes IDE

Raycast - lets you control your tools with a few keystrokes. It’s designed to keep you focused.

HTTP Toolkit - is a beautiful & open-source tool for debugging, testing and building with HTTP(S)

@hawkup
hawkup / A-setup.md
Last active January 30, 2022 07:27
Minikube on Mac OS
  1. Install Minikube
brew install minikube // minikube version 1.24.0
  1. Create cluster
# Make sure to setup docker use minimum memory 4096 and cpus 2
minikube start
// OR specific memory and cpu
@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(`
@hawkup
hawkup / Install Play Framework on Ubuntu 14.04.md
Last active May 15, 2019 16:20
Install Play Framework on Ubuntu 14.04

Install Play Framework on Ubuntu 14.04

  1. download file from https://www.typesafe.com/activator/download
  2. move unzipped directory to /usr/local/share
  3. export
export ACTIVATOR_HOME=/usr/local/share/activator-dist-1.3.6
export PATH=$PATH:$ACTIVATOR_HOME/bin
  1. create Play app
@hawkup
hawkup / Install etcd On Ubuntu 14.04.md
Created July 4, 2015 22:06
Install etcd On Ubuntu 14.04
  • Install
curl -L  https://github.com/coreos/etcd/releases/download/v2.1.0-rc.0/etcd-v2.1.0-rc.0-linux-amd64.tar.gz -o etcd-v2.1.0-rc.0-linux-amd64.tar.gz
tar xzvf etcd-v2.1.0-rc.0-linux-amd64.tar.gz
cd etcd-v2.1.0-rc.0-linux-amd64
./etcd
  • by default etcd listening on port 2379 for client communication and on port 2380 for server to server communication

  • Test

@hawkup
hawkup / Install golang ubuntu.md
Last active August 10, 2018 03:56
Installing Golang on ubuntu 14.04

First install gvm

  • install curl
sudo apt-get install curl
  • install git latest version
sudo add-apt-repository ppa:git-core/ppa
@hawkup
hawkup / Install Docker Machine on Ubuntu 14.04.md
Created July 4, 2015 21:43
Install Docker Machine on Ubuntu 14.04
  • download docker-machine to /usr/local/bin
curl -L https://github.com/docker/machine/releases/download/v0.3.0/docker-machine_linux-amd64 > /usr/local/bin/docker-machine
chmod +x /usr/local/bin/docker-machine
  • install docker client
https://gist.github.com/hawkup/6ac5f5b1ab7c761e886d
@hawkup
hawkup / Install Docker on Ubuntu.md
Last active March 28, 2018 19:45
Install Docker on Ubuntu 14.04

Prerequisites

sudo apt-get update

Install

  • get latest docker package
wget -qO- https://get.docker.com/ | sh
@hawkup
hawkup / Install thrift On centos 6.5.md
Last active February 24, 2018 23:57
Install thrift On centos 6.5

Update The system

sudo yum -y update

Install the Platform Development Tools

sudo yum -y groupinstall "Development Tools"
@hawkup
hawkup / Install bs-platform
Created January 6, 2018 14:42
Install bs-platform
npm install -g bs-platform