Skip to content

Instantly share code, notes, and snippets.

View Asseel-Naji's full-sized avatar
🎯
Focusing

Asseel Naji Asseel-Naji

🎯
Focusing
View GitHub Profile
@Asseel-Naji
Asseel-Naji / video_at_current_time.js
Created June 11, 2023 04:51
Get current youtube video at current time URL and send in an API request. Used with tasker/join app + enhancer for YouTube.
/*
Author: Asseel Naji (https://naji.bio)
License: wtfpl (Do What The F*ck You Want To Public License)
---
This script is ready to be used with Join/tasker to grab the current link at the current time and send it to join.
The script can be loaded with "enhancer for youtube plugin" (https://www.mrfdev.com/enhancer-for-youtube), tempermonkey or any plugin that
can run javascript on a youtube site.
@Asseel-Naji
Asseel-Naji / __fish_complete_aws.fish
Created May 18, 2023 01:51
aws cli fish shell auto complete
# This functions exactly like bash aws_completer. add the following code to fish config.
function __fish_complete_aws
env COMP_LINE=(commandline -pc) aws_completer | tr -d ' '
end
complete -c aws -f -a "(__fish_complete_aws)"
@Asseel-Naji
Asseel-Naji / obsidian-web-clipper.js
Last active September 15, 2024 16:18 — forked from kepano/obsidian-web-clipper.js
Prompt_Obsidian Bookmarklet to clip pages
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "Brain";
/* Optional folder name such as "Clippings/" */