Skip to content

Instantly share code, notes, and snippets.


parayaluyanta parayaluyanta

View GitHub Profile
parayaluyanta / unparsers.scala
Created Oct 12, 2018 — forked from ehoner/unparsers.scala
WIP: This is a translation of the examples in haskell to scala through section 4.2.
View unparsers.scala
// script can be loaded by ammonite (
import $plugin.$ivy.`org.spire-math::kind-projector:0.9.6`
import $ivy.`org.scalaz::scalaz-core:7.2.25`
import scalaz._
import Scalaz._
import scalaz.Maybe.Just
import scala.language.higherKinds
parayaluyanta /
Last active Dec 26, 2017
learnyousomeerlang, erlang


brew install erlang

Tuple datastructure

parayaluyanta /
Last active Sep 1, 2017 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
parayaluyanta /
Last active Sep 12, 2017
TLS, https, tomcat, p12

Server cert

private key

openssl genrsa -out restapi.key 2048                                                                   

Cert Signing Request

parayaluyanta / certificateKeytool.txt
Created Aug 25, 2017 — forked from dahernan/certificateKeytool.txt
generate self signed certificate with keytool
View certificateKeytool.txt
To generate a self-signed SSL certificate using the keytool command on Windows, Mac, or Linux:
1 Open a command prompt or terminal.
2 Run this command:
keytool -genkey -keyalg RSA -alias tomcat -keystore selfsigned.jks -validity <days> -keysize 2048
Where <days> indicate the number of days for which the certificate will be valid.
3 Enter a password for the keystore. Note this password as you require this for configuring the server.
import boto3
import json
client = boto3.client('kinesis')
create_stream = client.create_stream(StreamName='GregorSamsa', ShardCount=150)
streams = client.list_streams(Limit=100)
View JSONObject.scala
import scala.util.parsing.json.JSONObject
* Created by prayagupd
* on 2/16/17.
object Test {
View benchmark-commands.txt
bin/ --zookeeper --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/ --zookeeper --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/ test7 50000000 100 -1 acks=1 buffer.memory=67108864 batch.size=8196
parayaluyanta /
Last active Dec 27, 2019
jenkins, CI, CD, gocd, cicd, ci, cd


sudo wget -O /etc/yum.repos.d/jenkins.repo
sudo rpm --import
sudo yum install jenkins