Skip to content

Instantly share code, notes, and snippets.

View primayudantra's full-sized avatar
👋
Hi, Prima here!

Prima Yudantra primayudantra

👋
Hi, Prima here!
View GitHub Profile
@primayudantra
primayudantra / README.md
Created January 15, 2019 09:00 — forked from eliquious/README.md
Golang OpenPGP examples

Building

go build -o goencrypt main.go

Generating Keys

@primayudantra
primayudantra / anjing-tanah.js
Last active December 19, 2018 15:40
anjing tanah
var fs = require('fs');
var axios = require('axios')
let arr = [];
let super_arr = [];
let obj;
async function prima (){
for (i = 1000; i < 3000; i++){
let obj = {}
@primayudantra
primayudantra / install-golang-ubuntu.md
Created November 13, 2018 02:39
Install Golang on Ubuntu

Install Golang

$ sudo apt install golang

Checking Golang version

$ go version
@primayudantra
primayudantra / mysql-docker.txt
Created November 8, 2018 09:02
Install mysql-docker and allow remote access.
https://hub.docker.com/r/mysql/mysql-server/
----
Install
> docker pull mysql:5.7 (Install Mysql version 5.7)
----
Check Image
> docker image ls
@primayudantra
primayudantra / intersection-differences-2-arrays.md
Last active October 9, 2018 08:59
Intersection and Differences with Golang

How to get Intersection and Differences of 2 arrays with golang?

  1. Intersection
package main

import (
      "fmt"
)
@primayudantra
primayudantra / statusCodes
Created October 4, 2018 02:40 — forked from IngmarBoddington/statusCodes
HTTP Status Codes / Verbs List
CONNECT
DELETE
GET
HEAD
OPTIONS
PATCH
POST
PUT
TRACE
@primayudantra
primayudantra / install_elasticsearch_osx.md
Last active July 23, 2018 03:20 — forked from djonsson/install_elasticsearch_osx.md
OS X installation instructions for Elasticsearch + Kibana + Marvel

What is this?

Following this guide will set up a local Elasticsearch with Kibana and Marvel using Homebrew and Homebrew Cask

Prerequisites

If you already have Java installed on your system, skip steps Install Cask and Install Java

If you already have Java and Homebrew installed on your system, skip steps Prerequisites, start at Install Elasticsearch and Kibana after running $ brew update

Install Homebrew

  • $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@primayudantra
primayudantra / install-kafka.txt
Last active July 16, 2018 08:01 — forked from jarrad/install-kafka.txt
Install Kafka on OSX via Homebrew
$> brew cask install java
$> brew install kafka
$> vim ~/bin/kafka
# ~/bin/kafka
#!/bin/bash
zkServer start
kafka-server-start.sh /usr/local/etc/kafka/server.properties
@primayudantra
primayudantra / System Design.md
Created July 3, 2018 12:00 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?

Array<T>

Legend:

  • ✏️ method changes this.
  • 🔒 method does not change this.

Array<T>.prototype.*:

  • concat(...items: (T | Array)[]): T[] 🔒 ES3