Skip to content

Instantly share code, notes, and snippets.

View rajibdpi's full-sized avatar
💻
Always try to discover something new

Rajib Ahmed rajibdpi

💻
Always try to discover something new
View GitHub Profile
@rajibdpi
rajibdpi / Net use command.md
Last active March 8, 2022 10:45
Connect to the Network Drives on the CMD using Net Use Command for windows
  1. Open Note app
  2. Create a new text and paste the below line.
  3. NET USE * \\serverpathOrIp\Files Password /user:username /PERSISTENT:YES
  4. save it as share.bat file
@rajibdpi
rajibdpi / Convert numbers to Words - for Bangladesh.js
Last active January 16, 2022 11:33
Convert numbers to Words - for Bangladesh
/**
* Function: convert_number
*
* Description:
* Converts a given integer (in range [0..1T-1], inclusive) into
* alphabetical format ("one", "two", etc.)
*
* @int
*
* @return string
@justaguywhocodes
justaguywhocodes / leetcode.json
Created September 26, 2021 04:37
LeetCode questions converted to JSON
This file has been truncated, but you can view the full file.
[{
"id": "1",
"title": "Two Sum",
"question": "Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.\nYou may assume that each input would have exactly one solution, and you may not use the same element twice.\nYou can return the answer in any order.",
"examples": [
"Input: nums = [2,7,11,15], target = 9",
"Output: [0,1]",
"Output: Because nums[0] + nums[1] == 9, we return [0, 1].",
"Input: nums = [3,2,4], target = 6",
"Output: [1,2]",
@rajibdpi
rajibdpi / Sublime Text 3 (Build 3211) license key.md
Last active July 8, 2024 13:45
Download Sublime Text 3 (Build 3211) 100% working License Key.
@phette23
phette23 / hide-pdf-urls.js
Last active February 19, 2022 16:18
hide 856$u PDFs in Koha if users aren't logged in
// run 1) on opac-detail pages & 2) if no user is signed in
if (!!location.pathname.match('/cgi-bin/koha/opac-detail.pl') && !$('.loggedinusername').length) {
// replace 856$u links with a link to login instead
// this would need to be tweaked if there are multiple URLs per record
$('.results_summary.online_resources a')
.replaceWith('<a href="/cgi-bin/koha/opac-user.pl">login to view PDF</a>')
}
@rajibdpi
rajibdpi / Ubuntu Application Button right to left.md
Created March 2, 2021 18:19
How can move the "Show Applications" button in dock from right to left in Ubuntu Desktop?

This command will move it to the top:

gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true

Use this to undo it:

gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top false

These commands can also be used to move the "Show Applications" button in dock from right to left or vice versa.

@rajibdpi
rajibdpi / Visual Studio 2017 Enterprise & Professional
Created March 26, 2019 01:35 — forked from CHEF-KOCH/Visual Studio 2017 Enterprise & Professional
Visual Studio 2017 Enterprise & Professional key and details
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017
@rajibdpi
rajibdpi / sublimetext.txt
Last active October 15, 2022 09:12
Sublime Text Licence Key Build 3176
----- BEGIN LICENSE -----
sgbteam
Single User License
EA7E-1153259
8891CBB9 F1513E4F 1A3405C1 A865D53F
115F202E 7B91AB2D 0D2A40ED 352B269B
76E84F0B CD69BFC7 59F2DFEF E267328F
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4
969624E7 DC9CD4D5 717FB40C 1B9738CF
20B3C4F1 E917B5B3 87C38D9C ACCE7DD8
@rajibdpi
rajibdpi / 02-after.html
Last active November 27, 2017 06:44 — forked from mikeygee/01-before.html
truncate blog posts in jekyll
<!-- using the split filter -->
{% for post in site.posts limit:10 %}
<div class="post-preview">
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<span class="post-date">{{ post.date | date: "%B %d, %Y" }}</span>
{{ post.content | split:'<!--break-->' | first }}
{% if post.content contains '<!--break-->' %}
<a href="{{ post.url }}">read more</a>
{% endif %}
</div>

Upload images to GitHub

  1. Create a new issue on GitHub.

  2. Drag an image into the comment field.

  3. Wait for the upload process to finish.

  4. Copy the URL and use it in your Markdown files on GitHub.