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 / basic.html
Created October 18, 2024 09:47
Basic website inspired by https://nat.org/
<html style><!--
--><meta charset=utf-8>
<meta name=description content="Personal Website">
<meta name=twitter:card content=summary>
<meta name=twitter:site content=@twitter_user_name>
<meta name=viewport content="width=device-width, initial-scale=1.0">
<link rel=canonical href=http://personalwebsite.com/>
<style>body{line-height:1.4;font-size:16px;padding:0 10px;margin:50px auto;max-width:650px}#maincontent{max-width:42em;margin:15 auto}</style>
<title>Name</title>
<style id=ctre_styles>@media (prefers-color-scheme:dark){}</style><meta name=referrer content=no-referrer><meta http-equiv=content-security-policy content="default-src 'none'; font-src 'self' data:; img-src 'self' data:; style-src 'unsafe-inline'; media-src 'self' data:; script-src 'unsafe-inline' data:; object-src 'self' data:; frame-src 'self' data:;"><style>img[src="data:,"],source[src="data:,"]{display:none!important}</style></head>
@rnjailamba
rnjailamba / Exiftool.md
Created October 12, 2024 16:54
Exiftool Set PDF Metadata

Exiftool

  • Set title
    • exiftool /Volumes/GoogleDrive/My\ Drive/pdfs/noise/data:\ effects/Jet\ Engine\ Noise\ Reduction.pdf -title="Jet Engine Noise Reduction"
  • View Metadata
    • exiftool /Volumes/GoogleDrive/My\ Drive/pdfs/noise/data:\ effects/Jet\ Engine\ Noise\ Reduction.pdf
  • View title
    • exiftool -title *.pdf
    • exiftool /Volumes/GoogleDrive/My\ Drive/pdfs/noise/data:\ effects/Jet\ Engine\ Noise\ Reduction.pdf -title
  • Set title for batch
  • exiftool '-Title<${FileName;s/.pdf//}' *.pdf
@rnjailamba
rnjailamba / summer_internships.txt
Created October 11, 2024 13:03 — forked from p3jitnath/summer_internships.txt
List of Summer Internships for UG Students
SUMMER INTERNSHIPS LIST
---
RESEARCH INTERNSHIPS FOR UNDERGRADUATE AND GRADUATE STUDENTS
INDIA:
1. SURGE, IIT Kanpur (http://surge.iitk.ac.in/)
2. SPARK, IIT Roorkee (http://spark.iitr.ac.in/)
3. IIT Bombay, Research Internship Program (http://www.iitb.ac.in/en/education/research-internship)(http://www.iitb.ac.in/newacadhome/toTraining.jsp)(https://www.it.iitb.ac.in/summerinternship2020/selectionlist.html)
4. IAS Bangalore, SRFP (https://www.ias.ac.in/)
5. JNCASR, Bangalore, SRFP (http://www.jncasr.ac.in/fe/srfp.php)
@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)