Skip to content

Instantly share code, notes, and snippets.

View QWxleA's full-sized avatar

Alex QWxleA

View GitHub Profile
@QWxleA
QWxleA / obsidian-web-clipper.js
Created July 27, 2023 17:33 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
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 = "";
/* Optional folder name such as "Clippings/" */
{
"disabled": false,
"toolbar": true,
"wrap-link": {
"label": "Wrap Link",
"binding": "",
"template": "[[$^]]",
"icon": "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <g clip-path=\"url(#clip0_101_2)\"> <path d=\"M0.114075 14.9953V5.10858H3.19611V6.35077H1.72345V13.7492H3.19611V14.9953H0.114075ZM4.61505 14.9953V5.10858H7.69708V6.35077H6.22443V13.7492H7.69708V14.9953H4.61505ZM10.7957 3.47186V16.6281H9.21759V3.47186H10.7957ZM15.4022 5.10858V14.9953H12.3201V13.7492H13.7928V6.35077H12.3201V5.10858H15.4022ZM19.9031 5.10858V14.9953H16.8211V13.7492H18.2938V6.35077H16.8211V5.10858H19.9031Z\" fill=\"white\"/> </g> <defs> <clipPath id=\"clip0_101_2\"> <rect width=\"20\" height=\"20\" fill=\"white\"/> </clipPath> </defs> </svg>"
},
"wrap-highlight": {
@QWxleA
QWxleA / obsidian.templater.quick-capture.js
Created July 26, 2021 20:20 — forked from GitMurf/obsidian.templater.quick-capture.js
Obsidian Quick Capture using templater. Activate from anywhere in your vault to record quick ideas, notes, time logging, etc. The Quick Capture file does NOT need to be open.
<%*
//v1.4: Adding option for including a header for each DNP day to fold
//'first' will add to top of file. 'last' will add to bottom of file
let firstOrLastLine = 'first';
//Name of the Quick Capture file. Do NOT include extension '.md'
let qcFileName = 'Quick Capture';
//Leave this blank if you want to use the default file path location (set to '/' to use root of vault)
@QWxleA
QWxleA / font-stacks.css
Created January 18, 2021 17:22 — forked from don1138/font-stacks.css
CSS Modern Font Stacks
/* Modern Font Stacks */
/* System */
font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
/* Times New Roman-based serif */
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
/* A modern Georgia-based serif */
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
@QWxleA
QWxleA / weechat.service
Created November 12, 2020 16:01 — forked from einarjh/weechat.service
SystemD user service for launching weechat in a screen on boot
# Save as ~/.config/systemd/user/weechat.service
# Remember that you need to allow background processes to keep running
# even when there are no interactive sessions:
# sudo loginctl enable-linger username
# And then:
# systemctl --user daemon-reload && systemctl --user --now enable weechat.service
[Unit]
Description=weechat session
After=bitlbee.service
@QWxleA
QWxleA / PreferredSettings.md
Created April 10, 2020 17:33 — forked from krasCGQ/PreferredSettings.md
My personal prefered settings for encoding media files, especially audio.

Disclaimer

If you decide to follow my settings, I'm not responsible for anything that happens if you decide to go careless and become a priceless dumb. All commands are done in Linux PC using corresponding CLI programs. In Windows, just add .exe after CLI program name.

Free Lossless Audio Codec (FLAC)

I prefer maximum compression as possible with replay gain applied. This command below will silence all warnings, especially when dealing with Hi-Res audios: a.wav: WARNING: Legacy WAVE file has format type 1 but bits-per-sample=24

$ flac --totally-silent --delete-input-file --replay-gain -V8 .wav
@QWxleA
QWxleA / update-aur.sh
Created February 24, 2020 05:20 — forked from Xananax/update-aur.sh
Update all AUR repos
# vi:syntax=sh
#!/usr/bin/env bash
# AUR updated
# Checks all directories for updates, then
# runs makepkg -si for each updated git repo
checkIfRepo(){
stat "$1" > /dev/null || return 1;
cd $1; echo "Checking $1"
git status --porcelain >/dev/null && cd .. || return 1; # A fatal error if $PWD is not a git repos
@QWxleA
QWxleA / rofi-emoji.sh
Created February 19, 2020 18:25 — forked from NearHuscarl/rofi-emoji.sh
Rofi emoji picker
#!/usr/bin/env bash
# Source: https://gist.github.com/Tadly/0741821d3694deaec1ee454a95c591fa
#
# Use rofi to pick emoji because that's what this
# century is about apparently...
#
# Requirements:
# rofi, xsel, xdotool, curl, xmllint
#
# Usage:
@QWxleA
QWxleA / .vimrc
Created September 28, 2018 22:26 — forked from didip/.vimrc
Didip's minimal .vimrc
set backspace=2 " backspace in insert mode works like normal editor
syntax on " syntax highlighting
filetype indent on " activates indenting for files
set autoindent " auto indenting
set number " line numbers
colorscheme desert " colorscheme desert
set nobackup " get rid of anoying ~file
set ignorecase " Ignore case when searching
set hlsearch " Highlight search results
set smartcase " When searching try to be smart about cases
@QWxleA
QWxleA / vmm_howto.md
Created September 23, 2018 12:41 — forked from tvlooy/vmm_howto.md
OpenBSD VMM howto

OpenBSD VMM howto

Setup

/etc/rc.conf.local

apmd_flags="-A"
dhcpd_flags=vether0
vmd_flags=
ntpd_flags="-s"