Skip to content

Instantly share code, notes, and snippets.

View venkateshk's full-sized avatar

Venkatesh Kavuluri venkateshk

  • PayPal
  • San Jose, CA
View GitHub Profile
@venkateshk
venkateshk / eclipse-mat-for-osx.md
Created October 16, 2022 04:20 — forked from dgroup/eclipse-mat-for-osx.md
Steps to configure the MAT on macOS (osx)
@venkateshk
venkateshk / latency.markdown
Created February 2, 2021 07:44 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@venkateshk
venkateshk / latency.txt
Created February 2, 2021 07:43 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@venkateshk
venkateshk / regex-examples
Created January 1, 2017 20:19
Regex Examples
Metacharacter Negation ^
ls -ld [^a]* : Matches any directory whose name doesn't start with "a"
@venkateshk
venkateshk / intellij-monokai-theme.xml
Created July 22, 2016 02:45 — forked from darekkay/intellij-monokai-theme.xml
Monokai Theme for IntelliJ
<scheme name="Eclectide Monokai" version="124" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_FONT_NAME" value="Consolas" />
<colors>
<option name="ADDED_LINES_COLOR" value="295622" />
<option name="CARET_COLOR" value="bbbbbb" />
<option name="CARET_ROW_COLOR" value="" />
<option name="CONSOLE_BACKGROUND_KEY" value="272822" />
<option name="FILESTATUS_ADDED" value="629755" />
/*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
16:55:46,241 INFO [stdout] (ServerService Thread Pool -- 2) CAL-: 2015/03/16 16:55:46 Established CAL connection to cal.vip.qa.ebay.com/10.108.139.142:1118
16:55:51,136 SEVERE [com.ebay.kernel.service.invocation.helper] (ServerService Thread Pool -- 2) Unable to identify persistent service markdown directory due to missing config root information
16:55:52,087 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 2) JBWEB000264: Marking servlet com.paypal.mds.adserver.AdResource as unavailable
16:55:52,088 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 2) JBWEB000289: Servlet com.paypal.mds.adserver.AdResource threw load() exception: java.lang.IllegalArgumentException: JBAS016069: Error injecting persistence unit into CDI managed bean. Can't find a persistence unit named com.paypal.mds.geoip in deployment mds-web-1.1.0-SNAPSHOT.war
at org.jboss.as.weld.services.bootstrap.WeldJpaInjectionServices
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management