Skip to content

Instantly share code, notes, and snippets.

View iapain's full-sized avatar

Deepak iapain

View GitHub Profile
@iapain
iapain / bst_merge.py
Created January 18, 2019 12:08
MergeSortedLists created by iapain - https://repl.it/@iapain/MergeSortedLists
#
var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
var duration = 0;
var silence = 0;
var processor = audioCtx.createScriptProcessor(0, 1, 1);
processor.onaudioprocess = function(evt){
duration += evt.inputBuffer.duration;
var input = evt.inputBuffer.getChannelData(0)
, len = input.length
, total = i = 0
, rms;
@iapain
iapain / gist:0d8a0d80a1127d039899
Created November 3, 2014 17:04
mongostat --discover
insert query update delete getmore command flushes mapped vsize res faults locked db idx miss % qr|qw ar|aw netIn netOut conn time repl
192.168.135.177:27017 *0 *0 178 *0 0 1|0 0 146g 292g 1.97g 242 test:77.0% 0 0|0 0|0 156k 16m 15 18:03:52
192.168.154.71:27017 *0 *0 556 *0 0 3|0 0 56.1g 112g 3.81g 0 test:6.7% 0 0|0 0|0 478k 74k 15 18:03:52
192.168.194.10:27017 *0 *0 803 *0 0 3|0 0 58.1g 116g 3.99g 0 test:9.2% 0 0|0 0|0 692k 104k 15 18:03:52
192.168.196.167:27017 *0 *0 626 *0 0 12|0 0 56g 112g 3.83g 168 test:27.9% 0 2|0 0|0 526k 85k 15 18:03:52
192.168.197.9:27017 *0 *0 836 *0 0 3|0 0 56g 112g 4.15g 0 test:12.2% 0 0|0
@iapain
iapain / keybase.md
Created October 26, 2014 11:48
keybase.md

Keybase proof

I hereby claim:

  • I am iapain on github.
  • I am iapain (https://keybase.io/iapain) on keybase.
  • I have a public key whose fingerprint is 855B D01B CF71 0FF9 8E0C 1C41 1B00 19A6 FAE0 D7AD

To claim this, I am signing this object:

@iapain
iapain / .gitconfig
Created February 22, 2013 10:13
dotfiles
[core]
excludesfile = ~/.gitignore
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[push]
default = current
[alias]
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x000000010004a21e in std::__1::__hash_table<int, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<int> >::__deallocate (this=0x7fff5fbfb7e8, __np=0x101010101010101) at __hash_table:951
951 {
(gdb) backtrace
#0 0x000000010004a21e in std::__1::__hash_table<int, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<int> >::__deallocate (this=0x7fff5fbfb7e8, __np=0x101010101010101) at __hash_table:951
#1 0x000000010004fbbd in std::__1::__hash_table<int, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<int> >::~__hash_table (this=0x7fff5fbfb7e8) at __hash_table:910
#2 0x000000010004fb65 in std::__1::__hash_table<int, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<int> >::~__hash_table (this=0x7fff5fbfb7e8) at __hash_table:909
#3 0x000000010004fb45 in std::__1::unordered_set<int, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::al
Linking CXX executable pdf2htmlEX
CMakeFiles/pdf2htmlEX.dir/src/pdf2htmlEX.cc.o: In function `main':
/home/iapain/prj/pdf2htmlEX/src/pdf2htmlEX.cc:167: undefined reference to `error(ErrorCategory, int, char const*, ...)'
CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/general.cc.o: In function `HTMLRenderer':
/home/iapain/prj/pdf2htmlEX/src/HTMLRenderer/general.cc:38: undefined reference to `setErrorCallback(void (*)(void*, ErrorCategory, int, char*), void*)'
CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/general.cc.o: In function `HTMLRenderer::process(PDFDoc*)':
/home/iapain/prj/pdf2htmlEX/src/HTMLRenderer/general.cc:68: undefined reference to `SplashOutputDev::startDoc(PDFDoc*)'
CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/general.cc.o:(.rodata._ZTV12HTMLRenderer[vtable for HTMLRenderer]+0x2a8): undefined reference to `OutputDev::setSoftMaskFromImageMask(GfxState*, Object*, Stream*, int, int, bool, bool, double*)'
CMakeFiles/pdf2htmlEX.dir/src/HTMLRenderer/general.cc.o:(.rodata._ZTV12HTMLRenderer[vtable for HTMLRende
@iapain
iapain / CMakeListLog
Created September 5, 2012 10:31
cmake variables
-- FONTFORGE_CFLAGS=
-- FONTFORGE_CFLAGS_I=
-- FONTFORGE_CFLAGS_OTHER=
-- FONTFORGE_FOUND=1
-- FONTFORGE_INCLUDEDIR=
-- FONTFORGE_INCLUDE_DIRS=
-- FONTFORGE_LDFLAGS=
-- FONTFORGE_LDFLAGS_OTHER=
-- FONTFORGE_LIBDIR=
-- FONTFORGE_LIBRARIES=