Instantly share code, notes, and snippets.
- muneebbug
- 04:06
(UTC +05:00) - muneeburrehman.com
- @muneebbug
muneebbug /CompleteDiscordQuest.md
CreatedSeptember 18, 2024 06:21 — forked fromaamiaa/CompleteDiscordQuest.md
Complete Recent Discord Questmuneebbug /top bots.md
CreatedAugust 12, 2023 05:27 — forked fromadvaith1/top bots.md
The top Discord bots ranked by server countmuneebbug /submit.md
CreatedApril 29, 2023 15:32 — forked fromtanaikech/submit.md
Upload Files to Google Drive using JavascriptAt October 11, 2019, I published a Javascript library to to run the resumable upload for Google Drive. When this is used, the large file can be uploaded. You can also use this js library.
This is a sample script for uploading files to Google Drive using Javascript. The files are uploaded byDrive API v3.gapi.client.drive.files.create() can create an empty file on Google Drive. But it cannot directly upload files including contents. I think that this might not be able to upload files and metadata with the multipart/related, although this might be resolved by the future update. So now, as one of workarounds, I use using XMLHttpRequest.
- This sample usesgapi.
- Before you use this, please enable Drive API at API console and carr
muneebbug /All Product Keys
CreatedNovember 9, 2021 12:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| SQL Server 2017 | |
| ---------------- | |
| Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83 | |
| Developer - 22222-00000-00000-00000-00000 | |
| Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B | |
| Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89 | |
| Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC | |
| https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/ |
muneebbug /shopify-money.js
CreatedJuly 21, 2021 18:44 — forked fromstewartknapman/shopify-money.js
The Shopify.formatMoney method extracted from option_selection.js for stand-alone purposes. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| varShopify=Shopify||{}; | |
| // --------------------------------------------------------------------------- | |
| // Money format handler | |
| // --------------------------------------------------------------------------- | |
| Shopify.money_format="${{amount}}"; | |
| Shopify.formatMoney=function(cents,format){ | |
| if(typeofcents=='string'){cents=cents.replace('.','');} | |
| varvalue=''; | |
| varplaceholderRegex=/\{\{\s*(\w+)\s*\}\}/; | |
| varformatString=(format||this.money_format); |
muneebbug /decryptchromecookies.py
CreatedMay 23, 2021 11:37 — forked fromDakuTree/decryptchromecookies.py
Decrypt Chrome Cookies File (Python 3) - Windows This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| #Based off https://gist.github.com/DakuTree/98c8362fb424351b803e & pieces of https://gist.github.com/jordan-wright/5770442 | |
| fromosimportgetenv | |
| fromshutilimportcopyfile | |
| importsqlite3 | |
| importwin32crypt#https://sourceforge.net/projects/pywin32/ | |
| # Copy Cookies to current folder | |
| copyfile(getenv("APPDATA")+"/../Local/Google/Chrome/User Data/Default/Cookies",'./Cookies') | |
| # Connect to the Database |
muneebbug /decryptchromecookies.py
CreatedMay 23, 2021 11:37
Decrypt Chrome Cookies File (Python 3) - Windows This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| # Based on: | |
| # https://gist.github.com/DakuTree/98c8362fb424351b803e | |
| # https://gist.github.com/jordan-wright/5770442 | |
| # https://gist.github.com/DakuTree/428e5b737306937628f2944fbfdc4ffc | |
| # https://stackoverflow.com/questions/60416350/chrome-80-how-to-decode-cookies | |
| # https://stackoverflow.com/questions/43987779/python-module-crypto-cipher-aes-has-no-attribute-mode-ccm-even-though-pycry | |
| importos | |
| importjson | |
| importbase64 |
muneebbug /ajax-search-form.liquid
CreatedJanuary 31, 2021 10:45 — forked fromatikju/ajax-search-form.liquid
Shopify Ajax Search This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| {% comment %} | |
| This file can be added as a snippet and add it anywhere you want to display | |
| {% endcomment %} | |
| <divid="pageheader"> | |
| <divclass="util-area"> | |
| <divclass="search-box"> | |
| <formclass="search-form"action="/search"method="get"_lpchecked="1"> | |
| <iclass="icon-mag"></i> | |
| <inputtype="text"name="q"placeholder="Search"autocomplete="off"> | |
| <inputtype="submit"value="→"> |