Skip to content

Instantly share code, notes, and snippets.

@SirRippovMaple
SirRippovMaple / obsidian-web-clipper.js
Created September 15, 2024 16:18 — forked from Asseel-Naji/obsidian-web-clipper.js
Prompt_Obsidian Bookmarklet to clip pages
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "Brain";
/* Optional folder name such as "Clippings/" */
@SirRippovMaple
SirRippovMaple / script-template.sh
Created December 17, 2020 04:50 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
# source <(curl -L -s https://bit.ly/trumpi-ubuntu-bootstrap)
mkdir -p ~/Downloads
sudo apt install -y git jq
curl -sfL 'https://vault.bitwarden.com/download/?app=cli&platform=linux' > ~/Downloads/bitwarden.zip
sudo unzip ~/Downloads/bitwarden.zip -d /bin
sudo chmod +x /bin/bw
pushd /
curl -sfL https://git.io/chezmoi | sudo sh
popd
#NoEnv
#MaxHotKeysPerInterval 2000
#If GetKeyState("ScrollLock", "T")
; Top row
[::q
p::w
o::e
i::r
u::t
CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=main.cpp hello.cpp factorial.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=hello
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)