Skip to content

Instantly share code, notes, and snippets.

View rnjailamba's full-sized avatar
🎯
Focusing

Rnjai Lamba rnjailamba

🎯
Focusing
View GitHub Profile
@rnjailamba
rnjailamba / solrMysqlSetup.md
Last active March 16, 2024 14:10
Solr + Mysql + Data Import Handler + Delta Import Handler [ Version 5.5.0 of solr ]
@rnjailamba
rnjailamba / agGrid.txt
Last active April 25, 2016 12:05
Aggrid Sample
<!--<a href="./FreightCost/upload"><h3>UPLOAD FILE<h3>-->
<head>
<?php echo $this->Html->css('ag-grid.min'); ?>
<?php echo $this->Html->css('ag-grid-theme-blue.min'); ?>
<?php echo $this->Html->css('odometer-theme-car'); ?>
<style>
/* Paste this css to your style sheet file or under head tag */
/* This only works with JavaScript,
if it's not present, don't show loader */
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Node-Link Tree</title>
<link href="interactive_tree.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.2"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.27.2"></script>
@rnjailamba
rnjailamba / Rasp.txt
Last active July 17, 2016 10:59
RaspberryPi3 Install HP Laptop Window7 2016 latest
Following this in general -http://diyhacking.com/connect-raspberry-pi-to-laptop-display/
1. SD card not readable - solved by http://goo.gl/lqaZ2H
Download first link.
2. The ethernet cable was connected from laptop to pi but the wireless internet was not getting shared over local area connection -
solved by http://goo.gl/MOfaZV
To do -
http://stackoverflow.com/questions/16040128/hook-up-raspberry-pi-via-ethernet-to-laptop-without-router
https://www.raspberrypi.org/blog/use-your-desktop-or-laptop-screen-and-keyboard-with-your-pi/
@rnjailamba
rnjailamba / guide.txt
Created January 1, 2017 07:31
Debugging BotFrameWork(Microsoft/ Luis.ai) in Node.js using VSCode
https://blogs.msdn.microsoft.com/sarahsays/2016/06/01/microsoft-bot-framework-part-2/
https://docs.botframework.com/en-us/node/builder/guides/debug-locally-with-vscode/#navtitle
function saveResourcesToS3($file_Path, $content, $type){
$bucket = $this->aws_s3_bucket;
$key = 'resources'.'/'.$this->application_version . $file_Path;
$base_put_array = [
'Bucket' => $bucket,
'Key' => $key,
'Body' => $content,
'ACL' => 'public-read',
];
@rnjailamba
rnjailamba / Error of concern and Verification
Last active March 27, 2021 11:49
Reproduce accessToken verification
Unhandled rejection TypeError: Unable to generate certificate due to
StatusCodeError: 404 - "{\"message\":\"User pool us-east-2_76f5a0711ca3408d81e145b2321ea4e5 does not exist.\"}"
at /Users/rnjai/Desktop/auth/node_modules/cognito-express/lib/strategy.js:42:23
at tryCatcher (/Users/rnjai/Desktop/auth/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/rnjai/Desktop/auth/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/rnjai/Desktop/auth/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/rnjai/Desktop/auth/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/rnjai/Desktop/auth/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/Users/rnjai/Desktop/auth/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/Users/rnjai/Desktop/auth/node_modules/bluebird/js/release/async.js:86:9)
@rnjailamba
rnjailamba / prejoin_array.json
Created September 13, 2021 08:32
Prejoin Array
{
"modules": [
{
"type": "prejoin",
"name": "breathe",
"screens": [
{
"type": "carla_text_two_levels",
"gray_text_top": "Okay, let’s start the session by taking three deep breaths so that we can relax.",
"gray_text_below": "Follow my count...",
@rnjailamba
rnjailamba / room_array.json
Created September 13, 2021 08:33
Room Array
{
"modules": [
{
"type": "room",
"name": "room_welcome",
"screens": [
{
"type": "carla_text_two_levels",
"gray_text_top": "{{session_id.round_id.room_id.user_id.name}}, meet {{session_id.round_id.room_id.other_user_id.name}}.",
"gray_text_below": "{{session_id.round_id.room_id.other_user_id.name}}, meet {{session_id.round_id.room_id.user_id.name}}.",