Skip to content

Instantly share code, notes, and snippets.

View nipunarora's full-sized avatar
🎯
Carpe Diem

Nipun Arora nipunarora

🎯
Carpe Diem
View GitHub Profile
@nipunarora
nipunarora / frontend error
Created May 5, 2024 19:59
Turtle frontend error
docker compose up
[+] Building 13.7s (18/39) docker:desktop-linux
=> [development internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 911B 0.0s
=> [production internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 911B
@nipunarora
nipunarora / AsyncCacheUpdate.java
Created September 6, 2021 03:59
An example of how to do a fire and forget pattern in java react
public Flux<Integer> testCacheAsync() {
// flux of 1-10 integers with a delay of 100millis between each element
Flux<Integer> integerFlux = Flux.range(1, 10).delayElements(Duration.ofMillis(200));
/**
* A forget and fire pattern event here. which is executed after collectList() i.e. after the
* flux stream has it's last event collected. After which you can run a blocking task on
* collected list. This is essentially another subscriber on integerFlux
*/
integerFlux
@nipunarora
nipunarora / byobu-keybindings
Created October 24, 2019 14:58
byobu-screen key bindings to modify escape key to ctrl-b
# this goes into ~/.byobu/keybindings
source $BYOBU_PREFIX/share/byobu/keybindings/common
escape "^Bb"
register x "^B"
bindkey "^B"
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@nipunarora
nipunarora / sample.css
Created March 1, 2018 02:51
sample css file
@charset "UTF-8";
/*
Theme Name: Morrison EPUB
Theme URI: http://pressbooks.com/
Description: Named for Toni Morrison, this theme is best for books of literary fiction, memoir, personal non-fiction, poetry and romance.
Version: 1.0.1
Author: PressBooks (Book Oven Inc.)
Author URI: http://pressbooks.com
Copyright 2011-2013 Book Oven Inc. (PressBooks.com) support@pressbooks.com
@nipunarora
nipunarora / named.bst
Created November 14, 2017 21:11
named.bst
%NAME: named.bst
% BibTeX `named' style file for BibTeX version 0.99c, LaTeX version 2.09
% Place it in a file called named.bst in the BibTeX search path. (Placing it
% in the same directory as the LaTeX document should also work.)
% Support for named citations is provided by named.sty
% This version was made by modifying the master file made by
% Oren Patashnik (PATASHNIK@SCORE.STANFORD.EDU)
% Copyright (C) 1985, all rights reserved.
@nipunarora
nipunarora / proxy
Created March 4, 2017 17:24
Pipe Temporary Resource Unavailable
#define _GNU_SOURCE
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
#include <libgen.h>
@nipunarora
nipunarora / ivy.xml
Created June 2, 2016 15:07
ivy.xml for cassandra here ant is unable to resolve com.cloudera.hadoop
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
@nipunarora
nipunarora / ivysettings.xml
Created June 2, 2016 15:06
Apache Ivy Settings for cassandra
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
@nipunarora
nipunarora / Debug.out
Created January 10, 2016 03:36
Debug Output from Logstash for Grok Exception
{:timestamp=>"2016-01-09T22:32:28.528000-0500", :message=>"Using milestone 1 filter plugin 'seq'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin. For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones", :level=>:warn}
{:timestamp=>"2016-01-09T22:32:28.580000-0500", :message=>"Using milestone 2 output plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones", :level=>:warn}
{:timestamp=>"2016-01-09T22:32:28.871000-0500", :message=>"Grok regexp threw exception", :exception=>"63", :level=>:warn}
{:timestamp=>"2016-01-09T22:32:28.876000-0500", :message=>["org.jcodings.specific.UTF8Encoding.length(UTF8Encoding.java:35)", "org.jcodings.specific.BaseUTF8Encoding.mbcToCode(BaseUTF8Encoding.java:91)", "org.jcodings.specific.UTF8Encodi