Skip to content

Instantly share code, notes, and snippets.


Vikrum vikrum

View GitHub Profile
vikrum /
Created May 2, 2012
Locks On Locks On Locks
package sandbox;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
import org.apache.commons.lang3.time.StopWatch;
public class LockOnLocksOnLocks {
vikrum / websocketplayground.html
Created Oct 12, 2011
Quick, dirty, in-browser websocket playground
View websocketplayground.html
<!DOCTYPE html>
<html lang="en">
<title>websocket playground</title>
<meta charset="utf-8">
<meta name="description" content="Quick, dirty, and in-browser websocket playground">
<meta name="author" content="@vikrum5000">
<link rel="stylesheet" href="">
<script type="text/javascript" src=""></script>
<style type="text/css">
vikrum /
Created Sep 18, 2014
iHarder Base64 — MIT licensed by author via email Sept. 2014
* <p>
* This file is licensed under the MIT License as read at
* and reproduced here:</p>
* <blockquote>Copyright (c) 2009 Robert Harder.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
vikrum /
Last active Aug 29, 2015
curl debug
curl -so /dev/null -w "url_effective = %{url_effective}\n http_code = %{http_code}\n http_connect = %{http_connect}\n time_total = %{time_total}\n time_namelookup = %{time_namelookup}\n time_connect = %{time_connect}\n time_appconnect = %{time_appconnect}\n time_pretransfer = %{time_pretransfer}\n time_redirect = %{time_redirect}\n time_starttransfer = %{time_starttransfer}\n size_download = %{size_download}\n size_upload = %{size_upload}\n size_header = %{size_header}\n size_request = %{size_request}\n speed_download = %{speed_download}\n speed_upload = %{speed_upload}" https://zzz
vikrum / spin.c
Created Apr 1, 2014
Terminal screensaver/session activity bumper thing.
View spin.c
/* .. spin ..
* $ gcc spin.c -o spin -lncurses -Wall -O3
* vsn - 2006
#include <stdlib.h> // srand
#include <time.h> // time
#include <string.h>

Keybase proof

I hereby claim:

  • I am vikrum on github.
  • I am vikrum ( on keybase.
  • I have a public key whose fingerprint is C7D6 A287 0BF0 3A38 474A 5EC5 3215 E45A E1F4 FD83

To claim this, I am signing this object:

You can’t perform that action at this time.