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 / SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'.md
Last active October 5, 2024 17:20
phpMyAdmin Cannot log in to the MySQL server. and it showing SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

phpMyAdmin Cannot log in to the MySQL server. and it showing SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

sudo mysql -u root
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new_password';
@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 August 27, 2024 12:05
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>