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 / Expand_Twitter_Shortlinks.md
Last active January 2, 2025 11:02
Expand Twitter Short Links
@rnjailamba
rnjailamba / export_slack_bookmarks_later_saved_items.js
Last active January 2, 2025 14:03
Export Slack Bookmarks (Now called Later, Previously called Saved Items)
var before_start, after_finished, before_loop, after_element_clicked;
before_start = 10000;
after_finished = before_start;
before_loop = 5000;
after_element_clicked = before_loop - 1000;
var elementsToResize = ['body', 'html', '.p-client_container', '.p-ia4_client_container', '.p-ia4_client', '.p-theme_background', '.p-client_workspace_wrapper', '.p-client_workspace', '.p-client_workspace__layout', '.p-view_contents'];
for (var j = 0; j < elementsToResize.length; j++) {
var elementToResize = elementsToResize[j];
document.querySelector(elementToResize).style.setProperty('max-height', '100%', 'important');
@rnjailamba
rnjailamba / leaving_array.json
Created September 13, 2021 08:34
Leaving Array
{
"modules": [
{
"type": "leaving",
"name": "leaving",
"screens": [
{
"type": "image_text",
"image": "img.com",
"image_text": "Returning to earth momentarily...",
@rnjailamba
rnjailamba / welcome_array.json
Created September 13, 2021 08:33
Welcome Array
{
"modules": [
{
"type": "welcome",
"name": "welcome",
"screens": [
{
"type": "image_text",
"image": "img.com",
"image_text": "Traveling to the Multiverse, one moment please...",
@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}}.",
@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 / 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)
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 / 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
@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/