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 / Readme.md
Last active February 5, 2024 06:21
Expand Twitter Short Links

Three ways to expand t.co twitter shortlinks. Copy entire file and run in chrome console to test.

@rnjailamba
rnjailamba / export_slack_bookmarks_later_saved_items.md
Last active February 26, 2024 07:36
Export Slack Bookmarks (Now called Later, Previously called Saved Items)

General instructions

  1. Internet should be constantly atleast 1 mbps
  2. Use chrome and keep the slack bookmarks tab in focus (IMPORTANT or you'll else there can be loss of information) on your current chrome window. Leave the script running on your computer with this tab visible along with another chrome window if you want to work while this runs.
  3. It will take 10 seconds * number of bookmarks (duration) ex. for 100 bookmarks it will take ~15 minutes (if you're confident about very fast internet check the FAQ)
  4. Computer should not sleep while the script runs

Running the script

  1. Launch slack (https://app.slack.com/client/) in chrome, login, select the workspace you want to get the bookmarks from. Select "Later" (new name for bookmarks/ saved items) from the left side menu.
  2. You will automatically be on the "In Progress" tab within the "Later" page. The script is test for "In Progress", you may need to change it for "Archived"/ "Completed"
  3. Open the developer console on chrome via cmd + opti
@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/