Skip to content

Instantly share code, notes, and snippets.

View rwp0's full-sized avatar
📚
On one's own way, at one's own pace…

Elvin Aslanov rwp0

📚
On one's own way, at one's own pace…
View GitHub Profile
@rwp0
rwp0 / omnija.txt
Last active February 11, 2025 03:04
Access "Chrome" in Firefox (via the "omni.ja" JAR file in Firefox installation directory)
jar:file:///C:/Users/<USER>/AppData/Local/Firefox%20Nightly/omni.ja!/
# https://firefox-source-docs.mozilla.org/overview/gecko.html#chrome-protocol
@rwp0
rwp0 / jira.yaml
Last active February 12, 2025 01:40
Jira JSPA files described in YAML
- ViewProfile.jspa # User
- name
- Dashboard.jspa # Widgets
- selectPageId
- ConfigurePortalPages.jspa # Manage Dashboards
- view
- filterView
- favourites
- my
- popular
@rwp0
rwp0 / tasker.ps1
Last active January 30, 2025 15:18
Grant Android Permissions to Tasker with Powershell
$app = 'net.dinglisch.android.taskerm'
$permissions = 'READ_LOGS', 'SET_VOLUME_KEY_LONG_PRESS_LISTENER'
cd $env:LOCALAPPDATA\Android\Sdk\platform-tools
foreach ($permission in $permissions) {
.\adb.exe shell `
pm grant $app android.permission.$permission
}
@rwp0
rwp0 / user.js
Last active January 27, 2025 20:35
Mozilla Firefox "user.js" File Holding "about:config" Settings
user_pref('permissions.default.image', 2);
// Disable images
user_pref('browser.urlbar.update2.engineAliasRefresh', true);
// Adds "Add" button in Search Shortcuts table at about:preferences#search
// Useful in setting Google CSE as the default search engine
@rwp0
rwp0 / remove_media.js
Created January 17, 2025 18:34
Remove HTML Media
// ==UserScript==
// @namespace Personal
// @name Remove media
// @description Remove images and videos
// @version 2025-01-17
// @author Elvin Aslanov
// @icon https://www.google.com/s2/favicons?sz=64&domain=wikimedia.org
// @license MIT
// @grant none
@rwp0
rwp0 / url
Last active January 6, 2025 21:03
Copilot within Edge URL
edge://discover-chat-v2/
@rwp0
rwp0 / urls
Last active December 31, 2024 21:59
Access List of Tabs with TItles on Chrome-based Browsers
edge://inspect/#pages
@rwp0
rwp0 / schedule.ps1
Last active November 15, 2024 02:14
Schedule a daily task with PowerShell
$action = New-ScheduledTaskAction -Execute 'powershell.exe' `
-Argument 'Stop-Computer -Force'
$trigger = New-ScheduledTaskTrigger -Daily `
-At '2:30 AM'
$task = Register-ScheduledTask -TaskName 'Shutdown' `
-Description 'Shutting the PC down at night' `
-Action $action `
-Trigger $trigger `
@rwp0
rwp0 / gmail_vs_outlook_unread.md
Created October 29, 2024 16:03
Gmail vs Outlook Unread Messages

Filtering for "unread" messages in Gmail web and mobile application and Outlook (new).

Gmail

is:unread

image

Outlook

REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
"Z:"="\\??\\C:\\Documents and Settings\\All Users\\Shared Documents"