Skip to content

Instantly share code, notes, and snippets.

View prassee's full-sized avatar
🤔
கற்க கசடறக் கற்பவை கற்றபின் நிற்க அதற்குத் தக - Thirukural

prassee prassee

🤔
கற்க கசடறக் கற்பவை கற்றபின் நிற்க அதற்குத் தக - Thirukural
View GitHub Profile
@prassee
prassee / config.toml
Created May 1, 2024 03:31
helix config
theme = "modus_vivendi"
[editor]
# Show currently open buffers, only when more than one exists.
bufferline = "multiple"
# Highlight all lines with a cursor
cursorline = true
rulers = [110]
# Force the theme to show colors
true-color = true
@prassee
prassee / config.md
Created April 17, 2019 15:11 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

mydata symbol="ETH-BTC",eventmillis=1517616000000,eventmins=1517616000000,exchange="csfx",open=0.10397600,high=0.10750000,low=0.09563200,close=0.10080900,volume=412579.90100000,resolution="1" 151761600000000000
mydata symbol="ETH-BTC",eventmillis=1517875200000,eventmins=1517875200000,exchange="csfx",open=0.10078700,high=0.10257100,low=0.09443100,close=0.10029800,volume=331401.86500000,resolution="1" 151787520000000000
mydata symbol="ETH-BTC",eventmillis=1518134400000,eventmins=1518134400000,exchange="csfx",open=0.10013000,high=0.10155100,low=0.09912900,close=0.10036000,volume=345944.06100000,resolution="1" 151813440000000000
mydata symbol="ETH-BTC",eventmillis=1518393600000,eventmins=1518393600000,exchange="csfx",open=0.10039300,high=0.10055000,low=0.09600000,close=0.09725300,volume=364503.60800000,resolution="1" 151839360000000000
mydata symbol="ETH-BTC",eventmillis=1518652800000,eventmins=1518652800000,exchange="csfx",open=0.09722600,high=0.09738900,low=0.08766200,close=0.08781700,volume=403475.87400000,res
@prassee
prassee / gist:47f92c254ffe41ea41c7adfae26f45b4
Created November 29, 2017 04:53
Converting Future[Option[T]] to Future[T] using transform function
// this is provided by
// "io.github.scala-hamsters" %% "hamsters" % "2.1.2"
// put the above as dependency in build.sbt
import io.github.hamsters.FutureOption
import scala.concurrent.Future
object FutOfOptionsTest {
import io.github.hamsters.FutureOption
@prassee
prassee / gist:39061a7286968173f85459ba757dacc5
Created February 21, 2017 02:00
read from parquet bare metal code
import com.ionos.adx.streaming.AdxEventProcessingConstants
object ReadParquet extends AdxEventProcessingConstants {
def main(args: Array[String]): Unit = {
val parquetPath = conf.get("spark.hdfs.url") + "/lrm/hourlyData/17205/24775980"
import sparkSession.implicits._
val data = sparkSession.read.parquet(parquetPath).toDF()
@prassee
prassee / gist:ee5c98afa5bfc06e359d37f5c13f550a
Last active December 18, 2016 16:05
Str to SHA-512 encrypt
import java.security.MessageDigest
val password = "E4:25:E7:00:05:83:5F"
object StrToSHA512Converter {
def encrypt(pwd: String) = {
val md = MessageDigest.getInstance("SHA-512")
val salt = ""
md.update(salt.getBytes("UTF-8"))
@prassee
prassee / intro to akka
Last active December 11, 2016 02:12
HyScala Dec 2016 - Introduction to Akka : code examples
repo
====
https://github.com/prassee/hyscala-akka-intro-talk
build.sbt
=========
name := "hyscala-akka-intro-talk"
@prassee
prassee / do stuff
Created October 2, 2016 10:26
org mode capture templates
;; org mode config
(setq org-directory "~/todo/tasks")
(setq org-default-notes-file (concat org-directory "/notes.org"))
;; Capture templates for: TODO tasks, Notes, appointments, phone calls, meetings, and org-protocol
(setq org-capture-templates
(quote (("t" "todo" entry (file "~/todo/tasks/refile.org")
"* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
("r" "respond" entry (file "~/todo/tasks/refile.org")
"* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t)
("n" "note" entry (file "~/todo/tasks/refile.org")
Druid Installation and Startup
Installation
http://static.druid.io/artifacts/releases/druid-0.8.2-bin.tar.gz
http://static.druid.io/artifacts/releases/druid-0.8.3-bin.tar.gz
extract druid-0.8.3.tar.gz file
Startup procedure for 0.9.1
package service
import _root_.util.Configurations
import _root_.util.futures.SafeFutures._
import akka.actor.{Actor, ActorSystem, Props}
import com.google.inject.{Inject, Singleton}
import com.typesafe.config.ConfigRenderOptions
import org.joda.time.DateTime
import play.api.Logger
import play.api.libs.json._