Skip to content

Instantly share code, notes, and snippets.

💭
Hakuna Matata

Palak Mathur palakmathur

💭
Hakuna Matata
Block or report user

Report or block palakmathur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@palakmathur
palakmathur / tmux.cheat
Created Jun 19, 2019 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
View tmux.cheat
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@palakmathur
palakmathur / gist:b752321e99cc6b3c20181758917e7c50
Created Jan 22, 2019 — forked from rednaxelafx/gist:925323
Correspondence between Sun/Oracle JDK, OpenJDK and HotSpot VM versions
View gist:b752321e99cc6b3c20181758917e7c50

Correspondence between Sun/Oracle JDK, OpenJDK and HotSpot VM versions

build date Sun/Oracle JDK Version OpenJDK Version HotSpot VM Version
2006-11-29 1.6.0-b105 1.6.0-b105
2007-03-14 1.6.0_01-b06 1.6.0_01-b06
2007-06-22 1.6.0_02-b05 1.6.0_02-b05
2007-09-24 1.6.0_03-b05 1.6.0_03-b05
2007-12-14 1.6.0_04-b12 10.0-b19
@palakmathur
palakmathur / scala.rb
Created Jun 21, 2018 — forked from fabiofumarola/scala.rb
Install Scala 2.10 RC3 on OSX
View scala.rb
# to install the latest stable version:
brew install scala --with-docs
# to install scala-2.10.0-RC3:
brew install https://raw.github.com/gist/4118557/scala.rb --with-docs
# to switch versions (from https://github.com/mxcl/homebrew/wiki/External-Commands):
brew switch scala 2.9.2
brew switch scala 2.10.0-RC3
View LearnHaskell - When and Filter
You’re running the REPL with outdated classes: Build module 'HelloKotlin' and restart
Welcome to Kotlin version 1.2.10 (JRE 1.8.0_171-b11)
Type :help for help, :quit for quit
fun whatShouldIDoToday(
mood: String,
weather: String = "sunny",
temperature: Int = 24): String {
View LearnKotlin - Arrays and Loops
val array = Array(5) {it * 2}
println(array.asList())
[0, 2, 4, 6, 8]
import kotlin.math.pow
val array = Array(7) { 1000.0.pow(it)}
val sizes = arrayOf("byte", "kilobyte", "megabyte", "gigabyte",
View LearnKotlin - Variable Assignments
var rainbowColor : String = "Blue"
rainbowColor = "Violet"
rainbowColor
Violet
val blackColor : String = "Black"
blackColor
View keybase.md

Keybase proof

I hereby claim:

  • I am palakmathur on github.
  • I am palakmathur (https://keybase.io/palakmathur) on keybase.
  • I have a public key whose fingerprint is D96D 488E 0DE1 4E80 D70D 0C63 A53E CE9E 59C1 F992

To claim this, I am signing this object:

@palakmathur
palakmathur / gist:8b87ca3853b4492380e0
Last active Mar 9, 2016 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
View gist:8b87ca3853b4492380e0
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@palakmathur
palakmathur / csv_monster.py
Created Jan 26, 2016 — forked from mrosata/csv_monster.py
Improved CSV File merger/File splitter that I created to help with large amounts of .csv work I've been doing.
View csv_monster.py
"""Created by Michael Rosata
Python 2.7
Merge together .csv files. I'm creating this because I have 30 .csv files which need to be concatenated.
I also have many files which need to be split, so I've added splitting functionality to this as well.
"""
import csv
import sys
View InsertClob.java
package in.palakmathur;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
You can’t perform that action at this time.