Skip to content

Instantly share code, notes, and snippets.

View keshavbhatt's full-sized avatar
🏠
Working from home

Keshav Bhatt keshavbhatt

🏠
Working from home
View GitHub Profile
@keshavbhatt
keshavbhatt / How to extract cookies.md
Created October 8, 2022 08:22
Exports all cookies to a Netscape HTTP Cookie File, as used by curl, wget, and youtube-dl, among others
@keshavbhatt
keshavbhatt / freedesktop.org_icons_with_descriptions.txt
Created March 29, 2022 22:56 — forked from peteristhegreat/freedesktop.org_icons_with_descriptions.txt
QIcon::fromTheme, List of icons in gnome theme, in qt standardPixmaps and list on freedesktop.org
# https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html, aggregate list from each section
address-book-new The icon used for the action to create a new address book.
application-exit The icon used for exiting an application. Typically this is seen in the application's menus as File->Quit.
appointment-new The icon used for the action to create a new appointment in a calendaring application.
call-start The icon used for initiating or accepting a call. Should be similar to the standard cellular call pickup icon, a green handset with ear and mouth pieces facing upward.
call-stop The icon used for stopping a current call. Should be similar to the standard cellular call hangup icon, a red handset with ear and mouth pieces facing downward.
contact-new The icon used for the action to create a new contact in an address book application.
document-new The icon used for the action to create a new document.
document-open The icon used for the action to open a document.
document-open-recent T
@keshavbhatt
keshavbhatt / index.js
Created December 7, 2021 13:11
Parse the unicode value using JS.
var x = '\u0e8a\u0eb5\u0ea1\u0e9a\u0ea3\u0eb2';
JSON.parse('"' + x + '"')
@keshavbhatt
keshavbhatt / semantic-commit-messages.md
Created September 29, 2021 11:06 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@keshavbhatt
keshavbhatt / plasma_bg.sh
Created August 31, 2021 20:01
change plasma bg
#!/bin/bash
set -e
scr="qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops(); \
print (allDesktops); \
for (i=0;i<allDesktops.length;i++) {\
@keshavbhatt
keshavbhatt / restart_snapstore
Created July 5, 2021 05:40
Clears snap-store ODRS cache and kills snap store process, useful to force refresh app ratings coming from ODRS service
#!/bin/bash
rm -rf ~/snap/snap-store/common/.cache/gnome-software/odrs/
killall snap-store
@keshavbhatt
keshavbhatt / update_youtube-dl.php
Last active December 30, 2020 07:25
Update youtube-dl (Linux version) using php script, Call the script using CRON job task once a day. Note: change the location of actual bin file, I wrote this for my use case only and thought would worth sharing..
<?
/*
* @author Keshav Bhatt <keshavnrj@gmail.com>
* @datetime 30 December 2020
*/
/* main function to call engine update
* takes $engine(bool) as parameter, pass 1 to update youtube-dl binary and 0 to
* update version file
*/
@keshavbhatt
keshavbhatt / html entities.json
Created November 13, 2020 15:16
html entities codes
[
{
"&AElig;" : "Æ" ,
"&Aacute;" : "Á" ,
"&Acirc;" : "Â" ,
"&Agrave;" : "À" ,
"&Alpha;" : "Α" ,
"&Aring;" : "Å" ,
"&Atilde;" : "Ã" ,
"&Auml;" : "Ä" ,